Changeset View
Changeset View
Standalone View
Standalone View
sys/net/if.c
Show First 20 Lines • Show All 75 Lines • ▼ Show 20 Lines | |||||
#include <net/radix.h> | #include <net/radix.h> | ||||
#include <net/route.h> | #include <net/route.h> | ||||
#include <net/vnet.h> | #include <net/vnet.h> | ||||
#if defined(INET) || defined(INET6) | #if defined(INET) || defined(INET6) | ||||
#include <net/ethernet.h> | #include <net/ethernet.h> | ||||
#include <netinet/in.h> | #include <netinet/in.h> | ||||
#include <netinet/in_var.h> | #include <netinet/in_var.h> | ||||
#include <netinet/in_pcb.h> | |||||
#include <netinet/ip.h> | #include <netinet/ip.h> | ||||
#include <netinet/ip_carp.h> | #include <netinet/ip_carp.h> | ||||
#ifdef INET | #ifdef INET | ||||
#include <netinet/if_ether.h> | #include <netinet/if_ether.h> | ||||
#endif /* INET */ | #endif /* INET */ | ||||
#ifdef INET6 | #ifdef INET6 | ||||
#include <netinet6/in6_var.h> | #include <netinet6/in6_var.h> | ||||
#include <netinet6/in6_ifattach.h> | #include <netinet6/in6_ifattach.h> | ||||
▲ Show 20 Lines • Show All 164 Lines • ▼ Show 20 Lines | |||||
void | void | ||||
if_start(struct ifnet *ifp) | if_start(struct ifnet *ifp) | ||||
{ | { | ||||
(*(ifp)->if_start)(ifp); | (*(ifp)->if_start)(ifp); | ||||
} | } | ||||
void | |||||
if_rexmt_start(int qid, int nqs) | |||||
{ | |||||
#if defined(INET6) || defined(INET) | |||||
inp_rexmt_start(qid, nqs); | |||||
#endif | |||||
} | |||||
/* | /* | ||||
* Backwards compatibility interface for drivers | * Backwards compatibility interface for drivers | ||||
* that have not implemented it | * that have not implemented it | ||||
*/ | */ | ||||
static int | static int | ||||
if_transmit(struct ifnet *ifp, struct mbuf *m) | if_transmit(struct ifnet *ifp, struct mbuf *m) | ||||
{ | { | ||||
int error; | int error; | ||||
▲ Show 20 Lines • Show All 82 Lines • Show Last 20 Lines |