LibXenon
Bare-metal Xbox 360 homebrew library
Loading...
Searching...
No Matches
Data Structures | Macros | Functions | Variables
ip_addr.h File Reference
#include "lwip/opt.h"
Include dependency graph for ip_addr.h:

Go to the source code of this file.

Data Structures

struct  ip_addr
 
struct  ip_addr2
 

Macros

#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

◆ IP6_ADDR

#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)
unsigned int u32_t
Definition: cc.h:42
#define htonl(x)
Definition: def.h:79
ip_addr_t ipaddr
Definition: network.c:23
u8 c
Definition: xenos_edid.h:7

Definition at line 71 of file ip_addr.h.

◆ IP_ADDR_ANY

#define IP_ADDR_ANY   0

Definition at line 41 of file ip_addr.h.

◆ ip_addr_debug_print

#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));
#define X32_F
Definition: cc.h:53
#define ntohl(x)
Definition: def.h:80
#define LWIP_DEBUGF(debug, message)
Definition: debug.h:95

Definition at line 82 of file ip_addr.h.

Function Documentation

◆ ip_addr_cmp()

u8_t ip_addr_cmp ( struct ip_addr addr1,
struct ip_addr addr2 
)

Definition at line 49 of file ip6_addr.c.

◆ ip_addr_isany()

u8_t ip_addr_isany ( struct ip_addr addr)

Definition at line 68 of file ip6_addr.c.

◆ ip_addr_netcmp()

u8_t ip_addr_netcmp ( struct ip_addr addr1,
struct ip_addr addr2,
struct ip_addr mask 
)

Definition at line 38 of file ip6_addr.c.

◆ ip_addr_set()

void ip_addr_set ( struct ip_addr dest,
struct ip_addr src 
)

Definition at line 58 of file ip6_addr.c.

Variable Documentation

◆ PACK_STRUCT_STRUCT

PACK_STRUCT_END PACK_STRUCT_BEGIN struct ip_addr2 PACK_STRUCT_STRUCT