/[lwip]/lwip/src/core/ipv6/ip6_addr.c
ViewVC logotype

Diff of /lwip/src/core/ipv6/ip6_addr.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by likewise, Thu Nov 25 13:33:07 2004 UTC revision 1.9 by christiaans, Fri Nov 25 12:03:39 2005 UTC
# Line 34  Line 34 
34  #include "lwip/inet.h"  #include "lwip/inet.h"
35    
36    
37  int  u8_t
38  ip_addr_netcmp(struct ip_addr *addr1, struct ip_addr *addr2,  ip_addr_netcmp(struct ip_addr *addr1, struct ip_addr *addr2,
39                  struct ip_addr *mask)                  struct ip_addr *mask)
40  {  {
# Line 45  ip_addr_netcmp(struct ip_addr *addr1, st Line 45  ip_addr_netcmp(struct ip_addr *addr1, st
45                    
46  }  }
47    
48  int  u8_t
49  ip_addr_cmp(struct ip_addr *addr1, struct ip_addr *addr2)  ip_addr_cmp(struct ip_addr *addr1, struct ip_addr *addr2)
50  {  {
51    return(addr1->addr[0] == addr2->addr[0] &&    return(addr1->addr[0] == addr2->addr[0] &&
# Line 64  ip_addr_set(struct ip_addr *dest, struct Line 64  ip_addr_set(struct ip_addr *dest, struct
64    dest->addr[3] = src->addr[3];*/    dest->addr[3] = src->addr[3];*/
65  }  }
66    
67  int  u8_t
68  ip_addr_isany(struct ip_addr *addr)  ip_addr_isany(struct ip_addr *addr)
69  {  {
70    if (addr == NULL) return 1;    if (addr == NULL) return 1;
# Line 76  ip_addr_isany(struct ip_addr *addr) Line 76  ip_addr_isany(struct ip_addr *addr)
76  void  void
77  ip_addr_debug_print(struct ip_addr *addr)  ip_addr_debug_print(struct ip_addr *addr)
78  {  {
79    printf("%lx:%lx:%lx:%lx:%lx:%lx:%lx:%lx",    printf("%"X32_F":%"X32_F":%"X32_F":%"X32_F":%"X32_F":%"X32_F":%"X32_F":%"X32_F",
80           ntohl(addr->addr[0]) >> 16 & 0xffff,           ntohl(addr->addr[0]) >> 16 & 0xffff,
81           ntohl(addr->addr[0]) & 0xffff,           ntohl(addr->addr[0]) & 0xffff,
82           ntohl(addr->addr[1]) >> 16 & 0xffff,           ntohl(addr->addr[1]) >> 16 & 0xffff,

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26