File nut/include/net/if_var.h


Included Files


Preprocessor definitions

#define _NET_IF_VAR_H_

#define ATF_REM 0x01

#define ATF_COM 0x02

#define ATF_PERM 0x04

#define SIOCSIFMTU 0x1001

#define SIOCGIFMTU 0x1002

#define SIOCSIFFLAGS 0x1003

#define SIOCGIFFLAGS 0x1004

#define SIOCSIFADDR 0x1005

#define SIOCGIFADDR 0x1006


Typedef ARPENTRY

typedef struct _ARPENTRY ARPENTRY
See: Type struct _ARPENTRY

Type struct _ARPENTRY

struct _ARPENTRY
struct _ARPENTRY  
   {  
      ARPENTRY* ae_next;  
      uint32_t ae_ip;  
      uint8_t ae_ha[6];  
      uint8_t ae_flags;  
      uint8_t ae_outdated;  
      HANDLE ae_tq;  
   }  

Typedef MCASTENTRY

typedef struct _MCASTENTRY MCASTENTRY
See: Type struct _MCASTENTRY

Type struct _MCASTENTRY

struct _MCASTENTRY
struct _MCASTENTRY  
   {  
      MCASTENTRY* mca_next;  
      uint8_t mca_ha[6];  
      uint32_t mca_ip;  
   }  

Typedef IFNET

typedef struct ifnet IFNET
See: Type struct ifnet

Type struct ifnet

struct ifnet
struct ifnet  
   {  
      uint8_t if_type;  
      uint32_t if_flags;  
      uint8_t if_mac[6];  
      uint32_t if_local_ip;  
      uint32_t if_remote_ip;  
      uint32_t if_mask;  
      uint16_t if_mtu;  
      uint16_t if_pkt_id;  
      ARPENTRY* arpTable;  
      MCASTENTRY* if_mcast;  
      void (*if_recv)(NUTDEVICE*,NETBUF*);  
      int (*if_send)(NUTDEVICE*,NETBUF*);  
      int (*if_output)(NUTDEVICE*,uint16_t,uint8_t*,NETBUF*);  
      int (*if_ioctl)(NUTDEVICE*,int,void*);  
   }