April 2012
Intermediate to advanced
352 pages
8h
English
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_chartype); void if_initname(struct ifnet
*ifp, const char
*name, int
unit); void if_attach(struct ifnet *ifp); void if_detach(struct ...