upload tcpdump file to ftp server

tcpdump -w - | curl -u FTPUSER:FTPPASS ftp://ftpserver/where/ever/dump.pcap -T -

For wireshark format:

tcpdump -s 65535 -w - | curl -u FTPUSER:FTPPASS ftp://ftpserver/where/ever/dump.pcap -T -

ssh user@host "tcpdump -i tap0 -w -" | wireshark -k -i -

https://www.wireshark.org/docs/wsug_html_chunked/AppToolstcpdump.html

http://unix.stackexchange.com/questions/28188/how-to-upload-tcpdumps-in-realtime-to-ftp