Fixed comments that referred to an incorrect location.

This commit is contained in:
henri 2012-01-26 09:25:05 +00:00
parent 74785f0591
commit 63f3fc4954
2 changed files with 2 additions and 2 deletions

View file

@ -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;

View file

@ -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;