Changeset View
Changeset View
Standalone View
Standalone View
sys/net/if_var.h
Show First 20 Lines • Show All 567 Lines • ▼ Show 20 Lines | |||||
int if_getdunit(const if_t ifp); | int if_getdunit(const if_t ifp); | ||||
int if_getindex(const if_t ifp); | int if_getindex(const if_t ifp); | ||||
int if_getidxgen(const if_t ifp); | int if_getidxgen(const if_t ifp); | ||||
const char *if_getdname(const if_t ifp); | const char *if_getdname(const if_t ifp); | ||||
void if_setdname(if_t ifp, const char *name); | void if_setdname(if_t ifp, const char *name); | ||||
const char *if_name(if_t ifp); | const char *if_name(if_t ifp); | ||||
int if_setname(if_t ifp, const char *name); | int if_setname(if_t ifp, const char *name); | ||||
int if_rename(if_t ifp, char *new_name); | int if_rename(if_t ifp, char *new_name); | ||||
const char *if_getdescr(if_t ifp); | |||||
void if_setdescr(if_t ifp, char *descrbuf); | void if_setdescr(if_t ifp, char *descrbuf); | ||||
char *if_allocdescr(size_t sz, int malloc_flag); | char *if_allocdescr(size_t sz, int malloc_flag); | ||||
void if_freedescr(char *descrbuf); | void if_freedescr(char *descrbuf); | ||||
void if_setlastchange(if_t ifp); | |||||
int if_getalloctype(const if_t ifp); | int if_getalloctype(const if_t ifp); | ||||
int if_gettype(const if_t ifp); | int if_gettype(const if_t ifp); | ||||
int if_setdev(if_t ifp, void *dev); | int if_setdev(if_t ifp, void *dev); | ||||
int if_setdrvflagbits(if_t ifp, int if_setflags, int clear_flags); | int if_setdrvflagbits(if_t ifp, int if_setflags, int clear_flags); | ||||
int if_getdrvflags(const if_t ifp); | int if_getdrvflags(const if_t ifp); | ||||
int if_setdrvflags(if_t ifp, int flags); | int if_setdrvflags(if_t ifp, int flags); | ||||
int if_getlinkstate(if_t ifp); | int if_getlinkstate(if_t ifp); | ||||
int if_clearhwassist(if_t ifp); | int if_clearhwassist(if_t ifp); | ||||
▲ Show 20 Lines • Show All 41 Lines • ▼ Show 20 Lines | |||||
caddr_t if_getlladdr(const if_t ifp); | caddr_t if_getlladdr(const if_t ifp); | ||||
struct vnet *if_getvnet(const if_t ifp); | struct vnet *if_getvnet(const if_t ifp); | ||||
void *if_gethandle(u_char); | void *if_gethandle(u_char); | ||||
void if_bpfmtap(if_t ifp, struct mbuf *m); | void if_bpfmtap(if_t ifp, struct mbuf *m); | ||||
void if_etherbpfmtap(if_t ifp, struct mbuf *m); | void if_etherbpfmtap(if_t ifp, struct mbuf *m); | ||||
void if_vlancap(if_t ifp); | void if_vlancap(if_t ifp); | ||||
int if_transmit(if_t ifp, struct mbuf *m); | int if_transmit(if_t ifp, struct mbuf *m); | ||||
void if_init(if_t ifp, void *ctx); | void if_init(if_t ifp, void *ctx); | ||||
int if_ioctl(if_t ifp, u_long cmd, void *data); | |||||
int if_resolvemulti(if_t ifp, struct sockaddr **, struct sockaddr *); | int if_resolvemulti(if_t ifp, struct sockaddr **, struct sockaddr *); | ||||
uint64_t if_getcounter(if_t ifp, ift_counter counter); | uint64_t if_getcounter(if_t ifp, ift_counter counter); | ||||
struct label *if_getmaclabel(if_t ifp); | struct label *if_getmaclabel(if_t ifp); | ||||
void if_setmaclabel(if_t ifp, struct label *label); | void if_setmaclabel(if_t ifp, struct label *label); | ||||
struct bpf_if *if_getbpf(if_t ifp); | struct bpf_if *if_getbpf(if_t ifp); | ||||
uint8_t if_getpcp(if_t ifp); | uint8_t if_getpcp(if_t ifp); | ||||
void *if_getl2com(if_t ifp); | void *if_getl2com(if_t ifp); | ||||
struct ifvlantrunk *if_getvlantrunk(if_t ifp); | struct ifvlantrunk *if_getvlantrunk(if_t ifp); | ||||
Show All 27 Lines | |||||
/* Opaque iterator structure for iterating over interfaces. */ | /* Opaque iterator structure for iterating over interfaces. */ | ||||
struct if_iter { | struct if_iter { | ||||
void *context[4]; | void *context[4]; | ||||
}; | }; | ||||
if_t if_iter_start(struct if_iter *); | if_t if_iter_start(struct if_iter *); | ||||
if_t if_iter_next(struct if_iter *); | if_t if_iter_next(struct if_iter *); | ||||
void if_iter_finish(struct if_iter *); | void if_iter_finish(struct if_iter *); | ||||
struct ifa_iter { | |||||
void *context[4]; | |||||
}; | |||||
struct ifaddr *ifa_iter_start(if_t ifp, struct ifa_iter *iter); | |||||
struct ifaddr *ifa_iter_next(struct ifa_iter *iter); | |||||
void ifa_iter_finish(struct ifa_iter *iter); | |||||
/* Functions */ | /* Functions */ | ||||
void if_setinitfn(if_t ifp, if_init_fn_t); | void if_setinitfn(if_t ifp, if_init_fn_t); | ||||
void if_setinputfn(if_t ifp, if_input_fn_t); | void if_setinputfn(if_t ifp, if_input_fn_t); | ||||
if_input_fn_t if_getinputfn(if_t ifp); | if_input_fn_t if_getinputfn(if_t ifp); | ||||
void if_setioctlfn(if_t ifp, if_ioctl_fn_t); | void if_setioctlfn(if_t ifp, if_ioctl_fn_t); | ||||
void if_setoutputfn(if_t ifp, if_output_fn_t); | void if_setoutputfn(if_t ifp, if_output_fn_t); | ||||
void if_setstartfn(if_t ifp, if_start_fn_t); | void if_setstartfn(if_t ifp, if_start_fn_t); | ||||
Show All 35 Lines |