aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/pcap-common.c
diff options
context:
space:
mode:
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2011-11-13 00:04:49 +0000
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>2011-11-13 00:04:49 +0000
commit35d26e2dcba7965fc9795e4937554e902e98ecb0 (patch)
tree4ebadbae4cc76d34bf726ed9ca65202a0ef4cf0c /wiretap/pcap-common.c
parent3aaeef6f36e6fc09acac5a252cd87413f08d2e59 (diff)
Clean up white space.
Note that we don't need to set the FCS length, but might as well do so anyway. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39816 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'wiretap/pcap-common.c')
-rw-r--r--wiretap/pcap-common.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/wiretap/pcap-common.c b/wiretap/pcap-common.c
index ac7c05defd..19d6c3f555 100644
--- a/wiretap/pcap-common.c
+++ b/wiretap/pcap-common.c
@@ -372,12 +372,10 @@ static const struct {
{ 235, WTAP_ENCAP_DVBCI },
/* MUX27010 */
{ 236, WTAP_ENCAP_MUX27010 },
-
-
- /* netANALYZER pseudo header */
- { 240, WTAP_ENCAP_NETANALYZER },
- /* netANALYZER pseudo header in transparent mode */
- { 241, WTAP_ENCAP_NETANALYZER_TRANSPARENT },
+ /* netANALYZER pseudo-header followed by Ethernet with CRC */
+ { 240, WTAP_ENCAP_NETANALYZER },
+ /* netANALYZER pseudo-header in transparent mode */
+ { 241, WTAP_ENCAP_NETANALYZER_TRANSPARENT },
/*
@@ -1674,8 +1672,13 @@ pcap_read_post_process(int file_type, int wtap_encap,
break;
case WTAP_ENCAP_NETANALYZER:
- pseudo_header->eth.fcs_len = 4;
- break;
+ /*
+ * Not strictly necessary, as the netANALYZER
+ * dissector calls the "Ethernet with FCS"
+ * dissector, but we might as well set it.
+ */
+ pseudo_header->eth.fcs_len = 4;
+ break;
default:
break;