summaryrefslogtreecommitdiff
path: root/packet-smpp.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-03-09 23:07:26 +0000
committerGuy Harris <guy@alum.mit.edu>2002-03-09 23:07:26 +0000
commit7d77975a145af88705fb131591f3188210ba8d59 (patch)
treed99e650e546c162c194f9b15b0fa12411ceff084 /packet-smpp.c
parent56902650875cd87e16ccbd9207f4041311421dc5 (diff)
downloadwireshark-7d77975a145af88705fb131591f3188210ba8d59.tar.gz
Sigh. Tcpdump cannot handle capture files with a snapshot length of 0,
as BPF filters return either 0 if they fail or the snapshot length if they succeed, and a snapshot length of 0 means success is indistinguishable from failure and the filter expression would reject all packets. Now that a snapshot length of 0, inside Ethereal, means "snapshot length unknown", we have to, when opening a libpcap file for output, make the snapshot length some non-zero value. We make it WTAP_MAX_PACKET_SIZE, in case some program uses the snapshot length as a buffer size. (That doesn't help if there are packets with more than 65535 bytes of data; if there are, we'd need to raise WTAP_MAX_PACKET_SIZE just to make those files readable in Ethereal in any case.) svn path=/trunk/; revision=4905
Diffstat (limited to 'packet-smpp.c')
0 files changed, 0 insertions, 0 deletions