INET Framework for OMNeT++/OMNEST
ip.h.txt File Reference
#include "lwip/opt.h"
#include "lwip/def.h"
#include "lwip/pbuf.h"
#include "lwip/ip_addr.h"
#include "lwip/err.h"
#include "lwip/netif.h"

Classes

struct  ip_hdr
 

Macros

#define __LWIP_IP_H__
 
#define IP_HLEN   40
 
#define IP_PROTO_ICMP   58
 
#define IP_PROTO_UDP   17
 
#define IP_PROTO_UDPLITE   136
 
#define IP_PROTO_TCP   6
 
#define IP_HDRINCL   NULL
 
#define IP_PCB_ADDRHINT
 
#define IP_PCB
 
#define IPH_PROTO(hdr)   (iphdr->nexthdr)
 
#define ip_current_netif()   NULL
 
#define ip_current_header()   NULL
 

Functions

void ip_init (void)
 
struct netif * ip_route (struct ip_addr *dest)
 
void ip_input (struct pbuf *p, struct netif *inp)
 
err_t ip_output (struct pbuf *p, struct ip_addr *src, struct ip_addr *dest, u8_t ttl, u8_t proto)
 
err_t ip_output_if (struct pbuf *p, struct ip_addr *src, struct ip_addr *dest, u8_t ttl, u8_t proto, struct netif *netif)
 

Macro Definition Documentation

◆ __LWIP_IP_H__

#define __LWIP_IP_H__

◆ ip_current_header

#define ip_current_header ( )    NULL

◆ ip_current_netif

#define ip_current_netif ( )    NULL

◆ IP_HDRINCL

#define IP_HDRINCL   NULL

◆ IP_HLEN

#define IP_HLEN   40

◆ IP_PCB

#define IP_PCB
Value:
struct ip_addr local_ip; \
struct ip_addr remote_ip; \
/* Socket options */ \
u16_t so_options; \
/* Type Of Service */ \
u8_t tos; \
/* Time To Live */ \
u8_t ttl; \
/* link layer address resolution hint */ \
IP_PCB_ADDRHINT

◆ IP_PCB_ADDRHINT

#define IP_PCB_ADDRHINT

◆ IP_PROTO_ICMP

#define IP_PROTO_ICMP   58

◆ IP_PROTO_TCP

#define IP_PROTO_TCP   6

◆ IP_PROTO_UDP

#define IP_PROTO_UDP   17

◆ IP_PROTO_UDPLITE

#define IP_PROTO_UDPLITE   136

◆ IPH_PROTO

#define IPH_PROTO (   hdr)    (iphdr->nexthdr)

Function Documentation

◆ ip_init()

void ip_init ( void  )

◆ ip_input()

void ip_input ( struct pbuf *  p,
struct netif *  inp 
)

◆ ip_output()

err_t ip_output ( struct pbuf *  p,
struct ip_addr src,
struct ip_addr dest,
u8_t  ttl,
u8_t  proto 
)

◆ ip_output_if()

err_t ip_output_if ( struct pbuf *  p,
struct ip_addr src,
struct ip_addr dest,
u8_t  ttl,
u8_t  proto,
struct netif *  netif 
)

◆ ip_route()

struct netif* ip_route ( struct ip_addr dest)
ip_addr
Definition: ip_addr.h.txt:47