]> The Tcpdump Group git mirrors - libpcap/commitdiff
Clean up some comments.
authorGuy Harris <[email protected]>
Fri, 6 Feb 2015 23:00:46 +0000 (15:00 -0800)
committerGuy Harris <[email protected]>
Fri, 6 Feb 2015 23:00:46 +0000 (15:00 -0800)
gencode.c

index 949d1ce436f4a77a27ced044f2049bbaea1cfa12..b76c9f33c0734519d8326d2ef158075fa0add86b 100644 (file)
--- a/gencode.c
+++ b/gencode.c
@@ -164,16 +164,16 @@ static struct block *root;
 
 /*
  * Value passed to gen_load_a() to indicate what the offset argument
- * is relative to.
+ * is relative to the beginning of.
  */
 enum e_offrel {
-       OR_PACKET,      /* relative to the beginning of the packet */
-       OR_LINK,        /* relative to the beginning of the link-layer header */
-       OR_LINKPL,      /* relative to the end of the link-layer header */
-       OR_NET,         /* relative to the network-layer header */
-       OR_NET_NOSNAP,  /* relative to the network-layer header, with no SNAP header at the link layer */
-       OR_TRAN_IPV4,   /* relative to the transport-layer header, with IPv4 network layer */
-       OR_TRAN_IPV6    /* relative to the transport-layer header, with IPv6 network layer */
+       OR_PACKET,      /* full packet data */
+       OR_LINK,        /* link-layer header */
+       OR_LINKPL,      /* link-layer payload */
+       OR_NET,         /* network-layer header */
+       OR_NET_NOSNAP,  /* network-layer header, with no SNAP header at the link layer */
+       OR_TRAN_IPV4,   /* transport-layer header, with IPv4 network layer */
+       OR_TRAN_IPV6    /* transport-layer header, with IPv6 network layer */
 };
 
 #ifdef INET6