修复ip分片跳转BUG.

This commit is contained in:
lijia
2018-11-16 15:21:57 +08:00
parent e601cdb8ca
commit e3fca62644
4 changed files with 19 additions and 16 deletions

View File

@@ -137,18 +137,6 @@ ether_print(netdissect_options *ndo,
int llc_hdrlen;
ep = (const struct ether_header *)p;
/* 2017-01-06 lijia add, <20>dz<EFBFBD><C7B3><EFBFBD>Ethernet<65><74><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʾ */
switch(ntohs(ep->ether_length_type)){
case ETHERTYPE_IP:
case ETHERTYPE_IPV6:
case ETHERTYPE_8021Q:
case ETHERTYPE_ARP:
break;
default:
return;
}
if (caplen < ETHER_HDRLEN) {
ND_PRINT((ndo, "[|ether]"));