From 63f3fc4954986aa00983b1b67a37951506078353 Mon Sep 17 00:00:00 2001 From: henri Date: Thu, 26 Jan 2012 09:25:05 +0000 Subject: [PATCH] Fixed comments that referred to an incorrect location. --- nsock/src/nsock_pcap.c | 2 +- tcpip.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nsock/src/nsock_pcap.c b/nsock/src/nsock_pcap.c index a52ff1862..2bbf69750 100644 --- a/nsock/src/nsock_pcap.c +++ b/nsock/src/nsock_pcap.c @@ -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; diff --git a/tcpip.cc b/tcpip.cc index 8e2c151b0..1e8a6bddb 100644 --- a/tcpip.cc +++ b/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;