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  
   {  
      u_char ip_hl:4;  
      u_char ip_v:4;  
      u_char ip_tos;  
      short ip_len;  
      u_short ip_id;  
      short ip_off;  
      u_char ip_ttl;  
      u_char ip_p;  
      u_short ip_sum;  
      u_long ip_src;  
      u_long ip_dst;  
   }  

Typedef NutIpFilterFunc

typedef int (*NutIpFilterFunc)(u_long)