const char * name
Protocol name.
int printf(const char *fmt,...)
Write a formatted string to the console.
uint8_t net_dest[MAX_NET_ADDR_LEN]
Network-layer destination address.
struct net_protocol * net_protocol
Network-layer protocol.
struct list_head neighbours
The neighbour cache.
const char * name
Protocol name.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
struct neighbour_discovery * discovery
Neighbour discovery protocol (if any)
#define list_for_each_entry(pos, head, member)
Iterate over entries in a list.
const char *(* ntoa)(const void *net_addr)
Transcribe network-layer address.
static struct net_device * netdev
uint8_t ll_dest[MAX_LL_ADDR_LEN]
Link-layer destination address.
A network-layer protocol.
char name[NETDEV_NAME_LEN]
Name of this network device.
void nstat(void)
Print neighbour table.
struct net_device * netdev
Network device.
const char *(* ntoa)(const void *ll_addr)
Transcribe link-layer address.
struct ll_protocol * ll_protocol
Link-layer protocol.
static int neighbour_has_ll_dest(struct neighbour *neighbour)
Test if neighbour cache entry has a valid link-layer address.