Network Interface Structure Management Routines

The FreeBSD kernel provides the following functions for working with ifnet structures:

#include <net/if.h>
#include <net/if_types.h>
#include <net/if_var.h>

struct ifnet *
if_alloc(u_char type);

void
if_initname(struct ifnet *ifp, const char *name, int unit); void if_attach(struct ifnet *ifp); void if_detach(struct ...

Get FreeBSD Device Drivers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.