File nut/include/netinet/ip.h


Included Files


Preprocessor definitions

#define _NETINET_IP_H_

#define IPVERSION 4

#define IP_DF 0x4000

#define IP_MF 0x2000

#define IP_OFFMASK 0x1fff

#define IPOPT_EOL 0

#define IPOPT_NOP 1

#define IPOPT_RR 7

#define IPOPT_TS 68

#define IPOPT_SECURITY 130

#define IPOPT_LSRR 131

#define IPOPT_SATID 136

#define IPOPT_SSRR 137

#define IPOPT_OPTVAL 0

#define IPOPT_OLEN 1

#define IPOPT_OFFSET 2

#define IPOPT_MINOFF 4

#define MAXTTL 255

#define IPDEFTTL 64

#define IPFRAGTTL 60

#define IPTTLDEC 1


Typedef IPHDR

typedef struct ip IPHDR
See: Type struct ip

Type struct ip

struct ip
struct ip  
   {  
      uint8_t ip_hl:4;  
      uint8_t ip_v:4;  
      uint8_t ip_tos;  
      short ip_len;  
      uint16_t ip_id;  
      short ip_off;  
      uint8_t ip_ttl;  
      uint8_t ip_p;  
      uint16_t ip_sum;  
      uint32_t ip_src;  
      uint32_t ip_dst;  
   }  

Typedef NutIpFilterFunc

typedef int (*NutIpFilterFunc)(uint32_t)

External Variables

ip_demux
extern int (*ip_demux)(NUTDEVICE*,NETBUF*)