diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-07-06 02:07:49 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2010-07-06 02:07:49 +0000 |
commit | d5135803d4021ef6fb2d69394cd28fdd665a8bca (patch) | |
tree | 7bd3bb8bb4c1e9c0d76ae1b9aecee520247d52ff /nuttx/include/net | |
parent | 33a5e114296b488163bca2acc27b244c8f75e36d (diff) | |
download | px4-nuttx-d5135803d4021ef6fb2d69394cd28fdd665a8bca.tar.gz px4-nuttx-d5135803d4021ef6fb2d69394cd28fdd665a8bca.tar.bz2 px4-nuttx-d5135803d4021ef6fb2d69394cd28fdd665a8bca.zip |
More IGMP header file stuff
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2776 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/net')
-rwxr-xr-x | nuttx/include/net/uip/uip-igmp.h | 5 | ||||
-rw-r--r-- | nuttx/include/net/uip/uip.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/nuttx/include/net/uip/uip-igmp.h b/nuttx/include/net/uip/uip-igmp.h index 869a7e762..7ad105ec3 100755 --- a/nuttx/include/net/uip/uip-igmp.h +++ b/nuttx/include/net/uip/uip-igmp.h @@ -67,6 +67,11 @@ #define IGMPv3_MEMBERSHIP_REPORT 0x22 /* IGMP Ver. 3 Membership Report */ #define IGMP_LEAVE_GROUP 0x17 /* Leave Group */ +/* Header sizes */ + +#define UIP_IGMPH_LEN 4 /* Size of IGMP header */ +#define UIP_IPIGMPH_LEN (UIP_IGMPH_LEN + UIP_IPH_LEN) /* Size of IP + IGMP header */ + /**************************************************************************** * Public Types ****************************************************************************/ diff --git a/nuttx/include/net/uip/uip.h b/nuttx/include/net/uip/uip.h index fccfebe31..4589838a0 100644 --- a/nuttx/include/net/uip/uip.h +++ b/nuttx/include/net/uip/uip.h @@ -137,6 +137,7 @@ #define UIP_APPDATA_SIZE (CONFIG_NET_BUFSIZE - UIP_LLH_LEN - UIP_TCPIP_HLEN) #define UIP_PROTO_ICMP 1 +#define UIP_PROTO_IGMP 2 #define UIP_PROTO_TCP 6 #define UIP_PROTO_UDP 17 #define UIP_PROTO_ICMP6 58 |