RTEMS CPU Kit with SuperCore  4.11.3
Macros | Functions | Variables
if.c File Reference
#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>
Include dependency graph for if.c:

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 ifaddrifa_ifwithaddr (struct sockaddr *addr)
 
struct ifaddrifa_ifwithdstaddr (struct sockaddr *addr)
 
struct ifaddrifa_ifwithnet (struct sockaddr *addr)
 
struct ifaddrifaof_ifpforaddr (struct sockaddr *addr, struct ifnet *ifp)
 
void if_down (struct ifnet *ifp)
 
void if_up (struct ifnet *ifp)
 
struct ifnetifunit (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 ifnetifnet
 
int if_index = 0
 
struct ifaddr ** ifnet_addrs