|
RTEMS CPU Kit with SuperCore
4.11.3
|
#include <sys/param.h>#include <sys/queue.h>#include <sys/mbuf.h>#include <sys/systm.h>#include <sys/proc.h>#include <sys/socket.h>#include <sys/socketvar.h>#include <sys/protosw.h>#include <sys/kernel.h>#include <sys/ioctl.h>#include <errno.h>#include <sys/syslog.h>#include <sys/sysctl.h>#include <net/if.h>#include <net/if_dl.h>#include <net/if_types.h>#include <net/if_var.h>#include <net/radix.h>#include <net/route.h>
Macros | |
| #define | _offsetof(t, m) ((uintptr_t)((void*)&((t *)0)->m)) |
| #define | ROUNDUP(a) (1 + (((a) - 1) | (sizeof(long) - 1))) |
| #define | equal(a1, a2) (bcmp((caddr_t)(a1), (caddr_t)(a2), ((struct sockaddr *)(a1))->sa_len) == 0) |
Functions | |
| void | ifinit (void *) |
| void | if_attach (struct ifnet *ifp) |
| struct ifaddr * | ifa_ifwithaddr (struct sockaddr *addr) |
| struct ifaddr * | ifa_ifwithdstaddr (struct sockaddr *addr) |
| struct ifaddr * | ifa_ifwithnet (struct sockaddr *addr) |
| struct ifaddr * | ifaof_ifpforaddr (struct sockaddr *addr, struct ifnet *ifp) |
| void | if_down (struct ifnet *ifp) |
| void | if_up (struct ifnet *ifp) |
| struct ifnet * | ifunit (char *name) |
| int | ifioctl (struct socket *so, u_long cmd, caddr_t data, struct proc *p) |
| int | ifpromisc (struct ifnet *ifp, int pswitch) |
| SYSCTL_NODE (_net, PF_LINK, link, CTLFLAG_RW, 0, "Link layers") | |
| SYSCTL_NODE (_net_link, 0, generic, CTLFLAG_RW, 0, "Generic link-management") | |
Variables | |
| int | ifqmaxlen = IFQ_MAXLEN |
| struct ifnet * | ifnet |
| int | if_index = 0 |
| struct ifaddr ** | ifnet_addrs |
1.8.13