/freebsd-current/sbin/ipf/libipf/ |
H A D | printifname.c | 14 printifname(char *format, char *name, void *ifp) argument 17 if ((ifp == NULL) && strcmp(name, "-") && strcmp(name, "*"))
|
/freebsd-current/sys/netpfil/ipfw/ |
H A D | ip_fw_bpf.c | 61 ipfw_bpf_ioctl(struct ifnet *ifp, u_long cmd, caddr_t addr) argument 68 ipfw_bpf_output(struct ifnet *ifp, struct mbuf *m, argument 78 ipfw_clone_destroy(struct ifnet *ifp) argument 81 if (ifp->if_hdrlen == ETHER_HDR_LEN) 87 bpfdetach(ifp); 88 if_detach(ifp); 89 if_free(ifp); 95 struct ifnet *ifp; local 97 ifp = if_alloc(IFT_PFLOG); 98 if (ifp 121 struct ifnet *ifp; local 147 struct ifnet *ifp = V_log_if; local 157 struct ifnet *ifp = V_log_if; local [all...] |
/freebsd-current/sys/net/ |
H A D | if_dead.c | 45 ifdead_output(struct ifnet *ifp, struct mbuf *m, const struct sockaddr *sa, argument 54 ifdead_input(struct ifnet *ifp, struct mbuf *m) argument 61 ifdead_start(struct ifnet *ifp) argument 67 ifdead_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) argument 74 ifdead_resolvemulti(struct ifnet *ifp, struct sockaddr **llsa, argument 83 ifdead_qflush(struct ifnet *ifp) argument 89 ifdead_transmit(struct ifnet *ifp, struct mbuf *m) argument 97 ifdead_get_counter(struct ifnet *ifp, ift_counter cnt) argument 104 ifdead_snd_tag_alloc(struct ifnet *ifp, union if_snd_tag_alloc_params *params, argument 111 ifdead_ratelimit_query(struct ifnet *ifp __unuse 128 if_dead(struct ifnet *ifp) argument [all...] |
H A D | ifq.c | 45 drbr_enqueue(struct ifnet *ifp, struct buf_ring *br, struct mbuf *m) argument 49 if (ALTQ_IS_ENABLED(&ifp->if_snd)) { 50 IFQ_ENQUEUE(&ifp->if_snd, m, error); 52 if_inc_counter((ifp), IFCOUNTER_OQDROPS, 1); 63 drbr_putback(struct ifnet *ifp, struct buf_ring *br, struct mbuf *m_new) argument 69 if (ifp != NULL && ALTQ_IS_ENABLED(&ifp->if_snd)) { 74 IFQ_DRV_PREPEND(&ifp->if_snd, m_new); 81 drbr_peek(struct ifnet *ifp, struct buf_ring *br) argument 84 if (ifp ! 98 drbr_flush(struct ifnet *ifp, struct buf_ring *br) argument 109 drbr_dequeue(struct ifnet *ifp, struct buf_ring *br) argument 121 drbr_advance(struct ifnet *ifp, struct buf_ring *br) argument 130 drbr_dequeue_cond(struct ifnet *ifp, struct buf_ring *br, int (*func) (struct mbuf *, void *), void *arg) argument 153 drbr_empty(struct ifnet *ifp, struct buf_ring *br) argument 161 drbr_needs_enqueue(struct ifnet *ifp, struct buf_ring *br) argument 169 drbr_inuse(struct ifnet *ifp, struct buf_ring *br) argument [all...] |
H A D | if.c | 244 void (*ng_ether_link_state_p)(struct ifnet *ifp, int state); 245 void (*lagg_linkstate_p)(struct ifnet *ifp, int state); 247 void (*carp_linkstate_p)(struct ifnet *ifp); 251 int (*carp_forus_p)(struct ifnet *ifp, u_char *dhost); 252 int (*carp_output_p)(struct ifnet *ifp, struct mbuf *m, 262 struct ifaddr *(*carp_iamatch6_p)(struct ifnet *ifp, struct in6_addr *taddr6); 263 caddr_t (*carp_macmatch6_p)(struct ifnet *ifp, struct mbuf *m, 280 static int if_transmit_default(struct ifnet *ifp, struct mbuf *m); 368 struct ifnet *ifp; local 375 ifp 386 struct ifnet *ifp; local 399 struct ifnet *ifp; local 442 if_link_ifnet(struct ifnet *ifp) argument 454 if_unlink_ifnet(struct ifnet *ifp, bool vmove) argument 480 struct ifnet *ifp, *nifp; local 534 struct ifnet *ifp; local 635 struct ifnet *ifp = __containerof(ctx, struct ifnet, if_epoch_ctx); local 663 if_free(struct ifnet *ifp) argument 697 if_ref(struct ifnet *ifp) argument 707 if_try_ref(struct ifnet *ifp) argument 714 if_rele(struct ifnet *ifp) argument 723 ifq_init(struct ifaltq *ifq, struct ifnet *ifp) argument 767 if_attach(struct ifnet *ifp) argument 777 if_hw_tsomax_common(if_t ifp, struct ifnet_hw_tsomax *pmax) argument 806 if_hw_tsomax_update(if_t ifp, struct ifnet_hw_tsomax *pmax) argument 825 if_attach_internal(struct ifnet *ifp, bool vmove) argument 971 struct ifnet *ifp; local 980 if_attachdomain1(struct ifnet *ifp) argument 1011 if_purgeaddrs(struct ifnet *ifp) argument 1070 if_purgemaddrs(struct ifnet *ifp) argument 1093 if_detach(struct ifnet *ifp) argument 1118 if_detach_internal(struct ifnet *ifp, bool vmove) argument 1266 if_vmove(struct ifnet *ifp, struct vnet *new_vnet) argument 1317 if_vmove_loan(struct thread *td, struct ifnet *ifp, char *ifname, int jid) argument 1389 struct ifnet *ifp; local 1448 if_addgroup(struct ifnet *ifp, const char *groupname) argument 1518 _if_delgroup_locked(struct ifnet *ifp, struct ifg_list *ifgl, const char *groupname) argument 1561 if_delgroup(struct ifnet *ifp, const char *groupname) argument 1583 if_delgroups(struct ifnet *ifp) argument 1601 if_getgroup(struct ifgroupreq *ifgr, struct ifnet *ifp) argument 1686 if_get_counter_default(struct ifnet *ifp, ift_counter cnt) argument 1699 if_inc_counter(struct ifnet *ifp, ift_counter cnt, int64_t inc) argument 1711 if_data_copy(struct ifnet *ifp, struct if_data *ifd) argument 1839 struct ifnet *ifp; local 1884 struct ifnet *ifp; local 1914 struct ifnet *ifp; local 1944 struct ifnet *ifp; local 2033 ifaof_ifpforaddr(const struct sockaddr *addr, struct ifnet *ifp) argument 2110 link_init_sdl(struct ifnet *ifp, struct sockaddr *paddr, u_char iftype) argument 2129 if_unroute(struct ifnet *ifp, int flag, int fam) argument 2159 if_link_state_change(struct ifnet *ifp, int link_state) argument 2174 struct ifnet *ifp; local 2213 if_down(struct ifnet *ifp) argument 2225 if_up(struct ifnet *ifp) argument 2240 if_qflush(struct ifnet *ifp) argument 2270 struct ifnet *ifp; local 2291 struct ifnet *ifp; local 2457 ifhwioctl(u_long cmd, struct ifnet *ifp, caddr_t data, struct thread *td) argument 2933 struct ifnet *ifp; local 3137 if_rename(struct ifnet *ifp, char *new_name) argument 3207 if_setflag(struct ifnet *ifp, int flag, int pflag, int *refcount, int onswitch) argument 3278 ifpromisc(struct ifnet *ifp, int pswitch) argument 3304 struct ifnet *ifp; local 3405 if_allmulti(struct ifnet *ifp, int onswitch) argument 3412 if_findmulti(struct ifnet *ifp, const struct sockaddr *sa) argument 3439 if_allocmulti(struct ifnet *ifp, struct sockaddr *sa, struct sockaddr *llsa, int mflags) argument 3542 if_addmulti(struct ifnet *ifp, struct sockaddr *sa, struct ifmultiaddr **retifma) argument 3670 struct ifnet *ifp; local 3692 if_delmulti(struct ifnet *ifp, struct sockaddr *sa) argument 3721 if_delallmulti(struct ifnet *ifp) argument 3747 struct ifnet *ifp; local 3799 if_delmulti_locked(struct ifnet *ifp, struct ifmultiaddr *ifma, int detaching) argument 3886 if_setlladdr(struct ifnet *ifp, const u_char *lladdr, int len) argument 3949 if_requestencap_default(struct ifnet *ifp, struct if_encap_req *req) argument 3982 if_tunnel_check_nesting(struct ifnet *ifp, struct mbuf *m, uint32_t cookie, int limit) argument 4018 if_gethwaddr(struct ifnet *ifp, struct ifreq *ifr) argument 4040 if_initname(struct ifnet *ifp, const char *name, int unit) argument 4051 if_vlog(struct ifnet *ifp, int pri, const char *fmt, va_list ap) argument 4062 if_printf(struct ifnet *ifp, const char *fmt, ...) argument 4073 if_log(struct ifnet *ifp, int pri, const char *fmt, ...) argument 4084 if_start(struct ifnet *ifp) argument 4095 if_transmit_default(struct ifnet *ifp, struct mbuf *m) argument 4110 if_handoff(struct ifqueue *ifq, struct mbuf *m, struct ifnet *ifp, int adjust) argument 4170 if_setbaudrate(struct ifnet *ifp, uint64_t baudrate) argument 4180 if_getbaudrate(const if_t ifp) argument 4186 if_setcapabilities(if_t ifp, int capabilities) argument 4193 if_setcapabilitiesbit(if_t ifp, int setbit, int clearbit) argument 4201 if_getcapabilities(const if_t ifp) argument 4207 if_setcapenable(if_t ifp, int capabilities) argument 4214 if_setcapenablebit(if_t ifp, int setcap, int clearcap) argument 4222 if_setcapabilities2(if_t ifp, int capabilities) argument 4229 if_setcapabilities2bit(if_t ifp, int setbit, int clearbit) argument 4237 if_getcapabilities2(const if_t ifp) argument 4243 if_setcapenable2(if_t ifp, int capabilities2) argument 4250 if_setcapenable2bit(if_t ifp, int setcap, int clearcap) argument 4258 if_getdname(const if_t ifp) argument 4264 if_setdname(if_t ifp, const char *dname) argument 4270 if_name(if_t ifp) argument 4276 if_setname(if_t ifp, const char *name) argument 4286 if_togglecapenable(if_t ifp, int togglecap) argument 4293 if_getcapenable(const if_t ifp) argument 4299 if_togglecapenable2(if_t ifp, int togglecap) argument 4306 if_getcapenable2(const if_t ifp) argument 4312 if_getdunit(const if_t ifp) argument 4318 if_getindex(const if_t ifp) argument 4324 if_getidxgen(const if_t ifp) argument 4330 if_getdescr(if_t ifp) argument 4336 if_setdescr(if_t ifp, char *descrbuf) argument 4360 if_getalloctype(const if_t ifp) argument 4366 if_setlastchange(if_t ifp) argument 4378 if_setdev(if_t ifp, void *dev) argument 4384 if_setdrvflagbits(if_t ifp, int set_flags, int clear_flags) argument 4393 if_getdrvflags(const if_t ifp) argument 4399 if_setdrvflags(if_t ifp, int flags) argument 4406 if_setflags(if_t ifp, int flags) argument 4413 if_setflagbits(if_t ifp, int set, int clear) argument 4421 if_getflags(const if_t ifp) argument 4427 if_clearhwassist(if_t ifp) argument 4434 if_sethwassistbits(if_t ifp, int toset, int toclear) argument 4443 if_sethwassist(if_t ifp, int hwassist_bit) argument 4450 if_gethwassist(const if_t ifp) argument 4456 if_togglehwassist(if_t ifp, int toggle_bits) argument 4463 if_setmtu(if_t ifp, int mtu) argument 4470 if_notifymtu(if_t ifp) argument 4479 if_getmtu(const if_t ifp) argument 4485 if_getmtu_family(const if_t ifp, int family) argument 4503 if_lladdr_count(if_t ifp) argument 4522 if_t ifp; local 4561 struct ifnet *ifp; local 4610 if_t ifp; local 4640 if_foreach_lladdr(if_t ifp, iflladdr_cb_t cb, void *cb_arg) argument 4662 if_llmaddr_count(if_t ifp) argument 4679 if_maddr_empty(if_t ifp) argument 4686 if_foreach_llmaddr(if_t ifp, iflladdr_cb_t cb, void *cb_arg) argument 4708 if_foreach_addr_type(if_t ifp, int type, if_addr_cb_t cb, void *cb_arg) argument 4729 ifa_iter_start(if_t ifp, struct ifa_iter *iter) argument 4761 if_setsoftc(if_t ifp, void *softc) argument 4768 if_getsoftc(const if_t ifp) argument 4774 if_setrcvif(struct mbuf *m, if_t ifp) argument 4794 if_sendq_empty(if_t ifp) argument 4800 if_getifaddr(const if_t ifp) argument 4806 if_getamcount(const if_t ifp) argument 4812 if_setsendqready(if_t ifp) argument 4819 if_setsendqlen(if_t ifp, int tx_desc_count) argument 4827 if_setnetmapadapter(if_t ifp, struct netmap_adapter *na) argument 4833 if_getnetmapadapter(if_t ifp) argument 4839 if_vlantrunkinuse(if_t ifp) argument 4845 if_init(if_t ifp, void *ctx) argument 4851 if_input(if_t ifp, struct mbuf* sendmp) argument 4857 if_transmit(if_t ifp, struct mbuf *m) argument 4863 if_resolvemulti(if_t ifp, struct sockaddr **srcs, struct sockaddr *dst) argument 4872 if_ioctl(if_t ifp, u_long cmd, void *data) argument 4881 if_dequeue(if_t ifp) argument 4890 if_sendq_prepend(if_t ifp, struct mbuf *m) argument 4897 if_setifheaderlen(if_t ifp, int len) argument 4904 if_getlladdr(const if_t ifp) argument 4916 if_vlancap(if_t ifp) argument 4922 if_sethwtsomax(if_t ifp, u_int if_hw_tsomax) argument 4929 if_sethwtsomaxsegcount(if_t ifp, u_int if_hw_tsomaxsegcount) argument 4936 if_sethwtsomaxsegsize(if_t ifp, u_int if_hw_tsomaxsegsize) argument 4943 if_gethwtsomax(const if_t ifp) argument 4949 if_gethwtsomaxsegcount(const if_t ifp) argument 4955 if_gethwtsomaxsegsize(const if_t ifp) argument 4961 if_setinitfn(if_t ifp, if_init_fn_t init_fn) argument 4967 if_setinputfn(if_t ifp, if_input_fn_t input_fn) argument 4973 if_getinputfn(if_t ifp) argument 4979 if_setioctlfn(if_t ifp, if_ioctl_fn_t ioctl_fn) argument 4985 if_setoutputfn(if_t ifp, if_output_fn_t output_fn) argument 4991 if_setstartfn(if_t ifp, if_start_fn_t start_fn) argument 4997 if_getstartfn(if_t ifp) argument 5003 if_settransmitfn(if_t ifp, if_transmit_fn_t start_fn) argument 5009 if_gettransmitfn(if_t ifp) argument 5015 if_setqflushfn(if_t ifp, if_qflush_fn_t flush_fn) argument 5021 if_setsndtagallocfn(if_t ifp, if_snd_tag_alloc_t alloc_fn) argument 5027 if_snd_tag_alloc(if_t ifp, union if_snd_tag_alloc_params *params, struct m_snd_tag **mstp) argument 5036 if_setgetcounterfn(if_t ifp, if_get_counter_t fn) argument 5042 if_setreassignfn(if_t ifp, if_reassign_fn_t fn) argument 5048 if_setratelimitqueryfn(if_t ifp, if_ratelimit_query_t fn) argument 5054 if_setdebugnet_methods(if_t ifp, struct debugnet_methods *m) argument 5060 if_getmaclabel(if_t ifp) argument 5066 if_setmaclabel(if_t ifp, struct label *label) argument 5072 if_gettype(if_t ifp) argument 5078 if_getllsoftc(if_t ifp) argument 5084 if_setllsoftc(if_t ifp, void *llsoftc) argument 5090 if_getlinkstate(if_t ifp) argument 5096 if_getbroadcastaddr(if_t ifp) argument 5102 if_setbroadcastaddr(if_t ifp, const uint8_t *addr) argument 5108 if_getnumadomain(if_t ifp) argument 5114 if_getcounter(if_t ifp, ift_counter counter) argument 5120 if_altq_is_enabled(if_t ifp) argument 5126 if_getvnet(if_t ifp) argument 5132 if_getafdata(if_t ifp, int af) argument 5138 if_getfib(if_t ifp) argument 5144 if_getaddrlen(if_t ifp) argument 5150 if_getbpf(if_t ifp) argument 5156 if_getvlantrunk(if_t ifp) argument 5162 if_getpcp(if_t ifp) argument 5168 if_getl2com(if_t ifp) argument 5175 if_show_ifnet(struct ifnet *ifp) argument 5236 struct ifnet *ifp; local [all...] |
H A D | if_private.h | 127 void (*if_bridge_linkstate)(struct ifnet *ifp); 193 #define IF_AFDATA_LOCK_INIT(ifp) \ 194 mtx_init(&(ifp)->if_afdata_lock, "if_afdata", NULL, MTX_DEF) 196 #define IF_AFDATA_WLOCK(ifp) mtx_lock(&(ifp)->if_afdata_lock) 197 #define IF_AFDATA_WUNLOCK(ifp) mtx_unlock(&(ifp)->if_afdata_lock) 198 #define IF_AFDATA_LOCK(ifp) IF_AFDATA_WLOCK(ifp) 199 #define IF_AFDATA_UNLOCK(ifp) IF_AFDATA_WUNLOC [all...] |
H A D | if_edsc.c | 81 /* static void edsc_input(struct ifnet *ifp, struct mbuf *m); would be here */ 82 static int edsc_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data); 83 static void edsc_start(struct ifnet *ifp); 97 struct ifnet *ifp; local 104 ifp = sc->sc_ifp = if_alloc(IFT_ETHER); 105 if (ifp == NULL) { 110 ifp->if_softc = sc; 115 if_initname(ifp, edscname, unit); 121 ifp->if_flags = IFF_BROADCAST | IFF_MULTICAST | IFF_SIMPLEX; 129 ifp 172 edsc_clone_destroy(struct ifnet *ifp) argument 207 edsc_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data) argument 252 edsc_start(struct ifnet *ifp) argument [all...] |
H A D | if_var.h | 44 * (*ifp->if_output)(ifp, m, dst, ro) 355 typedef void (*ifnet_event_fn)(void *, if_t ifp, int event); 398 #define TOEDEV(ifp) if_getllsoftc(ifp) 399 #define SETTOEDEV(ifp, sc) if_setllsoftc((ifp), (sc)) 539 int if_simloop(if_t ifp, struct mbuf *m, int af, int hlen); 541 typedef void *if_com_alloc_t(u_char type, if_t ifp); 549 uint64_t if_setbaudrate(if_t ifp, uint64_ [all...] |
H A D | if_disc.c | 83 struct ifnet *ifp; local 87 ifp = sc->sc_ifp = if_alloc(IFT_LOOP); 88 if (ifp == NULL) { 93 ifp->if_softc = sc; 94 if_initname(ifp, discname, unit); 95 ifp->if_mtu = DSMTU; 106 ifp->if_flags = IFF_LOOPBACK | IFF_MULTICAST; 107 ifp->if_drv_flags = IFF_DRV_RUNNING; 108 ifp->if_ioctl = discioctl; 109 ifp 120 disc_clone_destroy(struct ifnet *ifp) argument 175 discoutput(struct ifnet *ifp, struct mbuf *m, const struct sockaddr *dst, struct route *ro) argument 204 discioctl(struct ifnet *ifp, u_long cmd, caddr_t data) argument [all...] |
H A D | if_mib.c | 72 struct ifnet *ifp; local 83 ifp = ifnet_byindex_ref(name[0]); 85 if (ifp == NULL) 95 strlcpy(ifmd.ifmd_name, ifp->if_xname, sizeof(ifmd.ifmd_name)); 97 ifmd.ifmd_pcount = ifp->if_pcount; 98 if_data_copy(ifp, &ifmd.ifmd_data); 100 ifmd.ifmd_flags = ifp->if_flags | ifp->if_drv_flags; 101 ifmd.ifmd_snd_len = ifp->if_snd.ifq_len; 102 ifmd.ifmd_snd_maxlen = ifp [all...] |
H A D | if_loop.c | 92 static int looutput(struct ifnet *ifp, struct mbuf *m, 106 lo_clone_destroy(struct if_clone *ifc, struct ifnet *ifp, uint32_t flags) argument 108 if (ifp->if_dunit == 0 && (flags & IFC_F_FORCE) == 0) 113 KASSERT(V_loif != ifp, ("%s: destroying lo0", __func__)); 116 bpfdetach(ifp); 117 if_detach(ifp); 118 if_free(ifp); 127 struct ifnet *ifp; local 129 ifp = if_alloc(IFT_LOOP); 130 if (ifp 208 looutput(struct ifnet *ifp, struct mbuf *m, const struct sockaddr *dst, struct route *ro) argument 290 if_simloop(struct ifnet *ifp, struct mbuf *m, int af, int hlen) argument 377 loioctl(struct ifnet *ifp, u_long cmd, caddr_t data) argument [all...] |
/freebsd-current/sbin/routed/ |
H A D | if.c | 95 if_link(struct interface *ifp) argument 99 LIST_INSERT_HEAD(&ifnet, ifp, int_list); 101 hifp = AHASH(ifp->int_addr); 102 ifp->int_ahash_prev = hifp; 103 if ((ifp->int_ahash = *hifp) != NULL) 104 (*hifp)->int_ahash_prev = &ifp->int_ahash; 105 *hifp = ifp; 107 if (ifp->int_if_flags & IFF_BROADCAST) { 108 hifp = BHASH(ifp->int_brdaddr); 109 ifp 138 struct interface *ifp, *possible = NULL; local 175 struct interface *ifp; local 203 struct interface *ifp; local 229 struct interface *ifp, *maybe; local 288 ripv1_mask_net(naddr addr, struct interface *ifp) argument 339 ripv1_mask_host(naddr addr, struct interface *ifp) argument 381 struct interface *ifp; local 409 check_remote(struct interface *ifp) argument 439 ifdel(struct interface *ifp) argument 519 if_sick(struct interface *ifp) argument 534 if_bad(struct interface *ifp) argument 566 if_ok(struct interface *ifp, const char *type) argument 649 struct interface ifs, ifs0, *ifp, *ifp1; local 1250 check_net_syn(struct interface *ifp) argument 1297 addrouteforif(struct interface *ifp) argument [all...] |
H A D | rdisc.c | 90 #define PREF(p, ifp) ((int)(p) <= ((ifp)->int_metric+(ifp)->int_adj_outmetric)\ 92 : (p) - ((ifp)->int_metric+(ifp)->int_adj_outmetric)) 103 struct interface *ifp, 120 ifp ? ifp->int_name : "?", 137 ifp ? ifp 100 trace_rdisc(const char *act, naddr from, naddr to, struct interface *ifp, union ad_u *p, u_int len) argument 160 set_rdisc_mg(struct interface *ifp, int on) argument 250 struct interface *ifp; local 358 if_bad_rdisc(struct interface *ifp) argument 378 if_ok_rdisc(struct interface *ifp) argument 396 struct interface *ifp; local 448 struct interface *ifp; local 561 parse_ad(naddr from, naddr gate, n_long pref, u_short life, struct interface *ifp) argument 684 send_rdisc(union ad_u *p, int p_size, struct interface *ifp, naddr dst, int type) argument 751 trace_rdisc(msg, (ifp ? ifp->int_addr : 0), rsin.sin_addr.s_addr, ifp, local 771 send_adv(struct interface *ifp, naddr dst, int type) argument 807 struct interface *ifp; local 847 struct interface *ifp; local 886 ck_icmp(const char *act, naddr from, struct interface *ifp, naddr to, union ad_u *p, u_int len) argument 944 struct interface *ifp; local [all...] |
/freebsd-current/sys/dev/liquidio/ |
H A D | lio_ioctl.c | 48 static int lio_set_rx_csum(if_t ifp, uint32_t data); 49 static int lio_set_tso4(if_t ifp); 50 static int lio_set_tso6(if_t ifp); 51 static int lio_set_lro(if_t ifp); 52 static int lio_change_mtu(if_t ifp, int new_mtu); 53 static int lio_set_mcast_list(if_t ifp); 54 static inline enum lio_ifflags lio_get_new_flags(if_t ifp); 65 lio_change_dev_flags(if_t ifp) argument 68 struct lio *lio = if_getsoftc(ifp); 77 nctrl.ncmd.s.param1 = lio_get_new_flags(ifp); 96 lio_ioctl(if_t ifp, u_long cmd, caddr_t data) argument 213 lio_set_tso4(if_t ifp) argument 232 lio_set_tso6(if_t ifp) argument 251 lio_set_rx_csum(if_t ifp, uint32_t data) argument 278 lio_set_lro(if_t ifp) argument 340 lio_change_mtu(if_t ifp, int new_mtu) argument 423 lio_set_mac(if_t ifp, uint8_t *p) argument 467 lio_get_new_flags(if_t ifp) argument 511 lio_set_mcast_list(if_t ifp) argument [all...] |
H A D | lio_ioctl.h | 37 int lio_ioctl(if_t ifp, u_long cmd, caddr_t data); 39 void lio_stop(if_t ifp); 41 int lio_set_mac(if_t ifp, uint8_t *p);
|
/freebsd-current/usr.bin/systat/ |
H A D | ifstat.c | 106 #define IN_col2 (showpps ? ifp->if_in_curpps : ifp->if_in_curtraffic) 107 #define OUT_col2 (showpps ? ifp->if_out_curpps : ifp->if_out_curtraffic) 109 ifp->if_in_pps_peak : ifp->if_in_traffic_peak) 111 ifp->if_out_pps_peak : ifp->if_out_traffic_peak) 113 ifp->if_mib.ifmd_data.ifi_ipackets : ifp 206 struct if_stat *ifp = NULL; local 268 struct if_stat *ifp = NULL, *temp_var; local 369 format_device_name(struct if_stat *ifp) argument 425 struct if_stat *ifp = NULL; local [all...] |
/freebsd-current/sys/compat/linuxkpi/common/include/linux/ |
H A D | if_vlan.h | 43 is_vlan_dev(struct ifnet *ifp) argument 45 return (if_gettype(ifp) == IFT_L2VLAN); 49 vlan_dev_vlan_id(struct ifnet *ifp) argument 52 if (VLAN_TAG(ifp, &vtag) == 0)
|
/freebsd-current/contrib/bsnmp/snmp_mibII/ |
H A D | mibII_interfaces.c | 71 struct mibif *ifp; local 74 if ((ifp = mib_find_if(ifc->ifindex)) == NULL) 80 strlcpy(ifr.ifr_name, ifp->name, sizeof(ifr.ifr_name)); 82 syslog(LOG_ERR, "GIFFLAGS(%s): %m", ifp->name); 98 strlcpy(ifr1.ifr_name, ifp->name, sizeof(ifr1.ifr_name)); 100 syslog(LOG_ERR, "GIFFLAGS(%s): %m", ifp->name); 105 syslog(LOG_ERR, "SIFFLAGS(%s): %m", ifp->name); 108 (void)mib_fetch_ifmib(ifp); 112 ifc->rb_traps = ifp->trap_enable; 113 ifp 194 struct mibif *ifp = NULL; local 369 struct mibif *ifp = NULL; local [all...] |
H A D | mibII.c | 148 struct mibif *ifp; local 150 TAILQ_FOREACH(ifp, &mibif_list, link) 151 if (ifp->index == idx) 152 return (ifp); 159 struct mibif *ifp; local 161 TAILQ_FOREACH(ifp, &mibif_list, link) 162 if (ifp->sysindex == sysindex) 163 return (ifp); 170 struct mibif *ifp; local 172 TAILQ_FOREACH(ifp, 255 mib_next_if(const struct mibif *ifp) argument 264 mib_if_admin(struct mibif *ifp, int up) argument 291 link_trap(struct mibif *ifp, int up) argument 308 fetch_generic_mib(struct mibif *ifp, const struct ifmibdata *old) argument 370 struct mibif *ifp; local 440 mib_fetch_ifmib(struct mibif *ifp) argument 590 mib_first_ififa(const struct mibif *ifp) argument 678 get_physaddr(struct mibif *ifp, struct sockaddr_dl *sdl, u_char *ptr) argument 737 mibif_free(struct mibif *ifp) argument 819 struct mibif *ifp; local 889 notify_newif(struct mibif *ifp) argument 904 check_llbcast(struct mibif *ifp) argument 932 struct mibif *ifp, *ifp1; local 1008 struct mibif *ifp; local 1042 struct mibif *ifp; local 1516 struct mibif *ifp; local 1535 struct mibif *ifp; local 1559 struct mibif *ifp; local 1580 struct mibif *ifp; local 1610 struct mibif *ifp; local 1633 struct mibif *ifp; local 1818 struct mibif *ifp; local 1852 mibif_notify(struct mibif *ifp, const struct lmodule *mod, mibif_notify_f func, void *data) argument 1865 struct mibif *ifp = arg; local [all...] |
/freebsd-current/sys/netgraph/ |
H A D | ng_eiface.c | 82 struct ifnet *ifp; /* per-interface network data */ member in struct:ng_eiface_private 93 static void ng_eiface_start(struct ifnet *ifp); 94 static int ng_eiface_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data); 96 static void ng_eiface_print_ioctl(struct ifnet *ifp, int cmd, caddr_t data); 134 ng_eiface_ioctl(struct ifnet *ifp, u_long command, caddr_t data) argument 136 const priv_p priv = (priv_p)ifp->if_softc; 141 ng_eiface_print_ioctl(ifp, command, data); 146 error = ether_ioctl(ifp, command, data); 157 if (ifp->if_flags & IFF_UP) { 158 if (!(ifp 204 struct ifnet *ifp = sc->ifp; local 218 struct ifnet *ifp = arg1; local 291 ng_eiface_start(struct ifnet *ifp) argument 311 ng_eiface_print_ioctl(struct ifnet *ifp, int command, caddr_t data) argument 344 ng_eiface_mediachange(struct ifnet *ifp) argument 360 ng_eiface_mediastatus(struct ifnet *ifp, struct ifmediareq *ifmr) argument 385 struct ifnet *ifp; local 452 struct ifnet *ifp = priv->ifp; local 477 struct ifnet *const ifp = priv->ifp; local 580 struct ifnet *const ifp = priv->ifp; local 617 struct ifnet *const ifp = priv->ifp; local [all...] |
H A D | ng_iface.c | 118 struct ifnet *ifp; /* Our interface */ member in struct:ng_iface_private 132 static void ng_iface_start(struct ifnet *ifp); 133 static int ng_iface_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data); 134 static int ng_iface_output(struct ifnet *ifp, struct mbuf *m0, 136 static void ng_iface_bpftap(struct ifnet *ifp, 138 static int ng_iface_send(struct ifnet *ifp, struct mbuf *m, 141 static void ng_iface_print_ioctl(struct ifnet *ifp, int cmd, caddr_t data); 280 ng_iface_ioctl(struct ifnet *ifp, u_long command, caddr_t data) argument 286 ng_iface_print_ioctl(ifp, command, data); 291 ifp 348 ng_iface_output(struct ifnet *ifp, struct mbuf *m, const struct sockaddr *dst, struct route *ro) argument 396 ng_iface_start(struct ifnet *ifp) argument 418 ng_iface_bpftap(struct ifnet *ifp, struct mbuf *m, sa_family_t family) argument 433 ng_iface_send(struct ifnet *ifp, struct mbuf *m, sa_family_t sa) argument 482 ng_iface_print_ioctl(struct ifnet *ifp, int command, caddr_t data) argument 521 struct ifnet *ifp; local 605 struct ifnet *const ifp = priv->ifp; local 687 struct ifnet *const ifp = priv->ifp; local [all...] |
/freebsd-current/sys/dev/ena/ |
H A D | ena_datapath.h | 36 void ena_qflush(if_t ifp); 37 int ena_mq_start(if_t ifp, struct mbuf *m);
|
/freebsd-current/sys/dev/firewire/ |
H A D | if_fwe.c | 99 fwe_poll(if_t ifp, enum poll_cmd cmd, int count) argument 104 if (!(if_getdrvflags(ifp) & IFF_DRV_RUNNING)) 107 fwe = ((struct fwe_eth_softc *)if_getsoftc(ifp))->fwe; 138 if_t ifp; local 180 ifp = fwe->eth_softc.ifp = if_alloc(IFT_ETHER); 181 if (ifp == NULL) { 185 if_setsoftc(ifp, &fwe->eth_softc); 187 if_initname(ifp, device_get_name(dev), unit); 188 if_setinitfn(ifp, fwe_ini 212 if_t ifp = fwe->eth_softc.ifp; local 250 if_t ifp; local 276 if_t ifp = fwe->eth_softc.ifp; local 351 fwe_ioctl(if_t ifp, u_long cmd, caddr_t data) argument 423 if_t ifp; local 447 fwe_start(if_t ifp) argument 487 fwe_as_output(struct fwe_softc *fwe, if_t ifp) argument 551 if_t ifp; local [all...] |
/freebsd-current/sys/dev/ntb/if_ntb/ |
H A D | if_ntb.c | 84 if_t ifp; member in struct:ntb_net_queue 94 if_t ifp; member in struct:ntb_net_ctx 108 static int ntb_ioctl(if_t ifp, u_long command, caddr_t data); 109 static int ntb_transmit(if_t ifp, struct mbuf *m); 117 static void ntb_qflush(if_t ifp); 133 if_t ifp; local 138 ifp = sc->ifp = if_gethandle(IFT_ETHER); 139 if (ifp == NULL) { 143 if_initname(ifp, device_get_nam 224 if_t ifp = sc->ifp; local 233 ntb_ioctl(if_t ifp, u_long command, caddr_t data) argument 295 ntb_ifmedia_upd(struct ifnet *ifp) argument 307 ntb_ifmedia_sts(struct ifnet *ifp, struct ifmediareq *ifmr) argument 320 if_t ifp = q->ifp; local 355 ntb_transmit(if_t ifp, struct mbuf *m) argument 404 ntb_qflush(if_t ifp) argument 438 if_t ifp = q->ifp; local [all...] |
/freebsd-current/sys/ofed/include/rdma/ |
H A D | ib_addr_freebsd.h | 39 if_t ifp; local 50 ifp = ifa->ifa_ifp; 51 if_ref(ifp); 53 ifp = NULL; 56 return (ifp); 67 if_t ifp; local 83 ifp = ifa->ifa_ifp; 84 if_ref(ifp); 86 ifp = NULL; 89 return (ifp); [all...] |