Changeset View
Changeset View
Standalone View
Standalone View
sys/net/if_dead.c
Show First 20 Lines • Show All 94 Lines • ▼ Show 20 Lines | |||||
static uint64_t | static uint64_t | ||||
ifdead_get_counter(struct ifnet *ifp, ift_counter cnt) | ifdead_get_counter(struct ifnet *ifp, ift_counter cnt) | ||||
{ | { | ||||
return (0); | return (0); | ||||
} | } | ||||
static int | |||||
ifdead_snd_tag_alloc(struct ifnet *ifp, union if_snd_tag_alloc_params *params, | |||||
struct m_snd_tag **ppmt) | |||||
{ | |||||
return (EOPNOTSUPP); | |||||
} | |||||
static int | |||||
ifdead_snd_tag_modify(struct m_snd_tag *pmt, union if_snd_tag_modify_params *params) | |||||
{ | |||||
return (EOPNOTSUPP); | |||||
} | |||||
static int | |||||
ifdead_snd_tag_query(struct m_snd_tag *pmt, union if_snd_tag_query_params *params) | |||||
{ | |||||
return (EOPNOTSUPP); | |||||
} | |||||
static void | |||||
ifdead_snd_tag_free(struct m_snd_tag *pmt) | |||||
{ | |||||
} | |||||
void | void | ||||
if_dead(struct ifnet *ifp) | if_dead(struct ifnet *ifp) | ||||
{ | { | ||||
ifp->if_output = ifdead_output; | ifp->if_output = ifdead_output; | ||||
ifp->if_input = ifdead_input; | ifp->if_input = ifdead_input; | ||||
ifp->if_start = ifdead_start; | ifp->if_start = ifdead_start; | ||||
ifp->if_ioctl = ifdead_ioctl; | ifp->if_ioctl = ifdead_ioctl; | ||||
ifp->if_resolvemulti = ifdead_resolvemulti; | ifp->if_resolvemulti = ifdead_resolvemulti; | ||||
ifp->if_qflush = ifdead_qflush; | ifp->if_qflush = ifdead_qflush; | ||||
ifp->if_transmit = ifdead_transmit; | ifp->if_transmit = ifdead_transmit; | ||||
ifp->if_get_counter = ifdead_get_counter; | ifp->if_get_counter = ifdead_get_counter; | ||||
ifp->if_snd_tag_alloc = ifdead_snd_tag_alloc; | |||||
ifp->if_snd_tag_modify = ifdead_snd_tag_modify; | |||||
ifp->if_snd_tag_query = ifdead_snd_tag_query; | |||||
ifp->if_snd_tag_free = ifdead_snd_tag_free; | |||||
} | } |