mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
Fixed comments that referred to an incorrect location.
This commit is contained in:
parent
74785f0591
commit
63f3fc4954
2 changed files with 2 additions and 2 deletions
|
|
@ -269,7 +269,7 @@ int nsock_pcap_get_l3_offset(pcap_t *pt, int *dl) {
|
|||
fatal("Cannot obtain datalink information: %s", pcap_geterr(pt));
|
||||
|
||||
/* XXX NOTE:
|
||||
* if a new offset ever exceeds the current max (24), adjust max_link_headersz in tcpip.h */
|
||||
* if a new offset ever exceeds the current max (24), adjust MAX_LINK_HEADERSZ in libnetutil/netutil.h */
|
||||
switch(datalink) {
|
||||
case DLT_EN10MB: offset = 14; break;
|
||||
case DLT_IEEE802: offset = 22; break;
|
||||
|
|
|
|||
2
tcpip.cc
2
tcpip.cc
|
|
@ -1534,7 +1534,7 @@ char *readip_pcap(pcap_t *pd, unsigned int *len, long to_usec,
|
|||
fatal("Cannot obtain datalink information: %s", pcap_geterr(pd));
|
||||
|
||||
/* NOTE: IF A NEW OFFSET EVER EXCEEDS THE CURRENT MAX (24), ADJUST
|
||||
MAX_LINK_HEADERSZ in tcpip.h */
|
||||
MAX_LINK_HEADERSZ in libnetutil/netutil.h */
|
||||
switch (datalink) {
|
||||
case DLT_EN10MB:
|
||||
offset = 14;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue