mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Add offset for DLT_IPNET (seen on Solaris).
This commit is contained in:
parent
131dccc5d2
commit
f0d97d0e9a
1 changed files with 5 additions and 0 deletions
5
tcpip.cc
5
tcpip.cc
|
|
@ -1598,6 +1598,11 @@ char *readip_pcap(pcap_t *pd, unsigned int *len, long to_usec,
|
|||
case DLT_LINUX_SLL:
|
||||
offset = 16;
|
||||
break;
|
||||
#endif
|
||||
#ifdef DLT_IPNET
|
||||
case DLT_IPNET:
|
||||
offset = 24;
|
||||
break;
|
||||
#endif
|
||||
default:
|
||||
p = (char *) pcap_next(pd, &head);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue