修复ip分片跳转BUG.
This commit is contained in:
@@ -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]"));
|
||||
|
||||
Reference in New Issue
Block a user