AquilaOS documentation
How it works, and its code
Loading...
Searching...
No Matches
netif Struct Reference

A network interface (net/netif.c): a device that sends and receives Ethernet frames, and its IPv4 configuration. More...

#include <netif.h>

Data Structures

struct  [struct].stats

Data Fields

char name [8]
uint8_t mac [6]
uint16_t mtu
int flags
uint32_t ip
uint32_t netmask
uint32_t gateway
int(*) transmit (struct netif *netif, struct netbuf *nb)
void * priv
struct  stats
struct netif * next

Detailed Description

A network interface (net/netif.c): a device that sends and receives Ethernet frames, and its IPv4 configuration.

Definition at line 16 of file netif.h.

Field Documentation

◆ flags

◆ gateway

uint32_t netif::gateway

Definition at line 24 of file netif.h.

Referenced by ipv4_output(), ipv4_route(), netif_config(), and route().

◆ ip

◆ mac

uint8_t netif::mac[6]

◆ mtu

uint16_t netif::mtu

Definition at line 19 of file netif.h.

Referenced by ifreq_request(), loopback_init(), netif_register(), our_mss(), and set_mss().

◆ name

char netif::name[8]

◆ netmask

uint32_t netif::netmask

◆ next

struct netif* netif::next

Definition at line 37 of file netif.h.

Referenced by ifconf(), ipv4_is_local(), ipv4_route(), netif_find(), netif_index(), netif_register(), and route().

◆ priv

void* netif::priv

Definition at line 30 of file netif.h.

Referenced by e1000_probe().

◆ stats

◆ transmit

int(*) netif::transmit(struct netif *netif, struct netbuf *nb)

Definition at line 28 of file netif.h.

Referenced by e1000_probe(), loopback_init(), netif_output(), and netif_register().


The documentation for this struct was generated from the following file: