-fix tcp header definition
authorChristian Grothoff <christian@grothoff.org>
Thu, 26 Jan 2012 18:29:59 +0000 (18:29 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 26 Jan 2012 18:29:59 +0000 (18:29 +0000)
src/include/gnunet_tun_lib.h

index b02c6c02ea434cf084113501a43fe599cb5f54a1..2a66b67e79126f01d2aff534a263aa77d6d7aa14 100644 (file)
@@ -111,11 +111,23 @@ struct GNUNET_TUN_TcpHeader
   unsigned dpt:16 GNUNET_PACKED;
   unsigned seq:32 GNUNET_PACKED;
   unsigned ack:32 GNUNET_PACKED;
-  unsigned off:4 GNUNET_PACKED;
+  /**
+   * Reserved.
+   */
   unsigned rsv:4 GNUNET_PACKED;
+  /**
+   * Number of 32-bit words in TCP header.
+   */
+  unsigned off:4 GNUNET_PACKED;
   unsigned flg:8 GNUNET_PACKED;
+  /**
+   * Window size.
+   */
   unsigned wsz:16 GNUNET_PACKED;
   unsigned crc:16 GNUNET_PACKED;
+  /**
+   * Urgent pointer.
+   */
   unsigned urg:16 GNUNET_PACKED;
 };