diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-11-23 21:16:43 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-11-23 21:16:43 +0000 |
commit | fa64306fac12fed8522ab0facdb2cd7f211b2d30 (patch) | |
tree | 612152ea399908ad1a2d2306c2e7a35154aaf96c /nuttx/include/net/uip/uip.h | |
parent | 789f463db7fc2a1613374fb8ea45cdba6cc77136 (diff) | |
download | px4-nuttx-fa64306fac12fed8522ab0facdb2cd7f211b2d30.tar.gz px4-nuttx-fa64306fac12fed8522ab0facdb2cd7f211b2d30.tar.bz2 px4-nuttx-fa64306fac12fed8522ab0facdb2cd7f211b2d30.zip |
Removed unused uIP files
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@403 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/include/net/uip/uip.h')
-rw-r--r-- | nuttx/include/net/uip/uip.h | 48 |
1 files changed, 19 insertions, 29 deletions
diff --git a/nuttx/include/net/uip/uip.h b/nuttx/include/net/uip/uip.h index e2f171253..c662e2ccf 100644 --- a/nuttx/include/net/uip/uip.h +++ b/nuttx/include/net/uip/uip.h @@ -370,25 +370,14 @@ extern void uip_send(struct uip_driver_s *dev, const void *buf, int len); * * Construct an IP address from four bytes. * - * This function constructs an IP address of the type that uIP handles - * internally from four bytes. The function is handy for specifying IP - * addresses to use with e.g. the uip_connect() function. - * - * Example: - * - * uip_ipaddr_t ipaddr; - * struct uip_conn *c; - * - * uip_ipaddr(&ipaddr, 192,168,1,2); - * c = uip_connect(&ipaddr, HTONS(80)); - * - * addr A pointer to a uip_ipaddr_t variable that will be - * filled in with the IP address. - * - * addr0 The first octet of the IP address. - * addr1 The second octet of the IP address. - * addr2 The third octet of the IP address. - * addr3 The forth octet of the IP address. + * This function constructs an IPv4 address in network byte order. + * + * addr A pointer to a uip_ipaddr_t variable that will be + * filled in with the IPv4 address. + * addr0 The first octet of the IPv4 address. + * addr1 The second octet of the IPv4 address. + * addr2 The third octet of the IPv4 address. + * addr3 The forth octet of the IPv4 address. */ #define uip_ipaddr(addr, addr0, addr1, addr2, addr3) \ @@ -409,16 +398,17 @@ extern void uip_send(struct uip_driver_s *dev, const void *buf, int len); * This function constructs an IPv6 address. */ -#define uip_ip6addr(addr, addr0,addr1,addr2,addr3,addr4,addr5,addr6,addr7) do { \ - ((uint16*)(addr))[0] = HTONS((addr0)); \ - ((uint16*)(addr))[1] = HTONS((addr1)); \ - ((uint16*)(addr))[2] = HTONS((addr2)); \ - ((uint16*)(addr))[3] = HTONS((addr3)); \ - ((uint16*)(addr))[4] = HTONS((addr4)); \ - ((uint16*)(addr))[5] = HTONS((addr5)); \ - ((uint16*)(addr))[6] = HTONS((addr6)); \ - ((uint16*)(addr))[7] = HTONS((addr7)); \ - } while(0) +#define uip_ip6addr(addr, addr0,addr1,addr2,addr3,addr4,addr5,addr6,addr7) \ + do { \ + ((uint16*)(addr))[0] = HTONS((addr0)); \ + ((uint16*)(addr))[1] = HTONS((addr1)); \ + ((uint16*)(addr))[2] = HTONS((addr2)); \ + ((uint16*)(addr))[3] = HTONS((addr3)); \ + ((uint16*)(addr))[4] = HTONS((addr4)); \ + ((uint16*)(addr))[5] = HTONS((addr5)); \ + ((uint16*)(addr))[6] = HTONS((addr6)); \ + ((uint16*)(addr))[7] = HTONS((addr7)); \ + } while(0) /* Copy an IP address to another IP address. * |