INET Framework for OMNeT++/OMNEST
ip_addr.h.txt File Reference
#include "lwip/opt.h"

Classes

struct  ip_addr
 
struct  ip_addr2
 

Macros

#define __LWIP_IP_ADDR_H__
 
#define IP_ADDR_ANY   0
 
#define IP6_ADDR(ipaddr, a, b, c, d, e, f, g, h)
 
#define ip_addr_debug_print(debug, ipaddr)
 

Functions

u8_t ip_addr_netcmp (struct ip_addr *addr1, struct ip_addr *addr2, struct ip_addr *mask)
 
u8_t ip_addr_cmp (struct ip_addr *addr1, struct ip_addr *addr2)
 
void ip_addr_set (struct ip_addr *dest, struct ip_addr *src)
 
u8_t ip_addr_isany (struct ip_addr *addr)
 

Variables

PACK_STRUCT_BEGIN struct ip_addr PACK_STRUCT_STRUCT
 

Macro Definition Documentation

#define __LWIP_IP_ADDR_H__
#define IP6_ADDR (   ipaddr,
  a,
  b,
  c,
  d,
  e,
  f,
  g,
 
)
Value:
do { (ipaddr)->addr[0] = htonl((u32_t)((a & 0xffff) << 16) | (b & 0xffff)); \
(ipaddr)->addr[1] = htonl(((c & 0xffff) << 16) | (d & 0xffff)); \
(ipaddr)->addr[2] = htonl(((e & 0xffff) << 16) | (f & 0xffff)); \
(ipaddr)->addr[3] = htonl(((g & 0xffff) << 16) | (h & 0xffff)); } while(0)
const value< double, compose< units::m, pow< units::s,-1 > > > c(299792458)
u32_t htonl(u32_t n)
const value< double, units::C > e(1.602176487e-19)
milli< kg >::type g
Definition: Units.h:900
uint32_t u32_t
Definition: cc.h:39
const value< double, compose< units::J, units::s > > h(6.62606896e-34)
value< double, units::m > b
Definition: Units.h:1054
#define IP_ADDR_ANY   0
#define ip_addr_debug_print (   debug,
  ipaddr 
)
Value:
LWIP_DEBUGF(debug, ("%"X32_F":%"X32_F":%"X32_F":%"X32_F":%"X32_F":%"X32_F":%"X32_F":%"X32_F"\n", \
(ntohl(ipaddr->addr[0]) >> 16) & 0xffff, \
ntohl(ipaddr->addr[0]) & 0xffff, \
(ntohl(ipaddr->addr[1]) >> 16) & 0xffff, \
ntohl(ipaddr->addr[1]) & 0xffff, \
(ntohl(ipaddr->addr[2]) >> 16) & 0xffff, \
ntohl(ipaddr->addr[2]) & 0xffff, \
(ntohl(ipaddr->addr[3]) >> 16) & 0xffff, \
ntohl(ipaddr->addr[3]) & 0xffff));
u32_t ntohl(u32_t n)
#define LWIP_DEBUGF(debug, message)
Definition: debug.h:98

Function Documentation

u8_t ip_addr_cmp ( struct ip_addr addr1,
struct ip_addr addr2 
)
u8_t ip_addr_isany ( struct ip_addr addr)
u8_t ip_addr_netcmp ( struct ip_addr addr1,
struct ip_addr addr2,
struct ip_addr mask 
)
void ip_addr_set ( struct ip_addr dest,
struct ip_addr src 
)

Variable Documentation

PACK_STRUCT_END PACK_STRUCT_BEGIN struct ip_addr2 PACK_STRUCT_STRUCT