| /src/sbin/routed/ |
| if.c | 104 if_link(struct interface *ifp) 108 ifp->int_prev = &ifnet; 109 ifp->int_next = ifnet; 111 ifnet->int_prev = &ifp->int_next; 112 ifnet = ifp; 114 hifp = AHASH(ifp->int_addr); 115 ifp->int_ahash_prev = hifp; 116 if ((ifp->int_ahash = *hifp) != 0) 117 (*hifp)->int_ahash_prev = &ifp->int_ahash; 118 *hifp = ifp; 156 struct interface *ifp, *possible = 0; local in function:ifwithaddr 193 struct interface *ifp; local in function:ifwithname 221 struct interface *ifp; local in function:ifwithindex 247 struct interface *ifp, *maybe; local in function:iflookup 399 struct interface *ifp; local in function:check_dup 696 struct interface ifs, ifs0, *ifp, *ifp1; local in function:ifinit [all...] |
| rdisc.c | 102 #define PREF(p, ifp) ((n_long)(p) <= (n_long)((ifp)->int_metric \ 103 + (ifp)->int_adj_outmetric) \ 105 : (p) - ((ifp)->int_metric + (ifp)->int_adj_outmetric)) 116 struct interface *ifp, 133 ifp ? ifp->int_name : "?", 150 ifp ? ifp->int_name : "?" 264 struct interface *ifp; local in function:set_supplier 410 struct interface *ifp; local in function:del_rdisc 462 struct interface *ifp; local in function:rdisc_sort 835 struct interface *ifp; local in function:rdisc_adv 875 struct interface *ifp; local in function:rdisc_sol 974 struct interface *ifp; local in function:read_d [all...] |
| main.c | 112 struct interface *ifp; local in function:main 530 for (ifp = ifnet; n > 0 && 0 != ifp; ifp = ifp->int_next) { 531 if (ifp->int_rip_sock >= 0 532 && FD_ISSET(ifp->int_rip_sock, ibitsp)) { 533 read_rip(ifp->int_rip_sock, ifp); 565 struct interface *ifp; local in function:fix_select 687 struct interface *ifp; local in function:rip_off [all...] |
| /src/sys/net/ |
| if_vether.c | 62 struct ifnet *ifp; local in function:vether_clone_create 75 ifp = &sc->sc_ec.ec_if; 76 if_initname(ifp, ifc->ifc_name, unit); 77 ifp->if_softc = sc; 78 ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; 80 ifp->if_extflags = IFEF_MPSAFE; 82 ifp->if_ioctl = vether_ioctl; 83 ifp->if_start = vether_start; 84 ifp->if_stop = vether_stop; 85 ifp->if_init = vether_init [all...] |
| if_stats.h | 62 #define IF_STAT_GETREF(ifp) _NET_STAT_GETREF((ifp)->if_stats) 63 #define IF_STAT_PUTREF(ifp) _NET_STAT_PUTREF((ifp)->if_stats) 66 if_statinc(ifnet_t *ifp, if_stat_t x) 68 SDT_PROBE3(sdt, net, interface, stat, ifp, x, +1); 69 _NET_STATINC((ifp)->if_stats, x); 73 if_statinc_ref(ifnet_t *ifp, net_stat_ref_t nsr, if_stat_t x) 75 SDT_PROBE3(sdt, net, interface, stat, ifp, x, +1); 80 if_statdec(ifnet_t *ifp, if_stat_t x [all...] |
| if_loop.c | 177 struct ifnet *ifp; local in function:loop_clone_create 179 ifp = if_alloc(IFT_LOOP); 181 if_initname(ifp, ifc->ifc_name, unit); 183 ifp->if_mtu = LOMTU; 184 ifp->if_flags = IFF_LOOPBACK | IFF_MULTICAST; 186 ifp->if_extflags = IFEF_MPSAFE; 188 ifp->if_ioctl = loioctl; 189 ifp->if_output = looutput; 191 ifp->if_start = lostart; 193 ifp->if_type = IFT_LOOP [all...] |
| if.c | 169 * XXX reusing (ifp)->if_snd->ifq_lock rather than having another spin mutex 177 #define IF_LINK_STATE_CHANGE_LOCK(ifp) \ 178 mutex_enter((ifp)->if_snd.ifq_lock) 179 #define IF_LINK_STATE_CHANGE_UNLOCK(ifp) \ 180 mutex_exit((ifp)->if_snd.ifq_lock) 375 if_free(ifnet_t *ifp) 378 kmem_free(ifp, sizeof(ifnet_t)); 382 if_initname(struct ifnet *ifp, const char *name, int unit) 385 (void)snprintf(ifp->if_xname, sizeof(ifp->if_xname) 842 struct ifnet *ifp = ipq->ipq_ifp; local in function:if_percpuq_softint 1049 struct ifnet *ifp = ids->ids_ifp; local in function:if_deferred_start_softint 1164 struct ifnet *ifp; local in function:if_attachdomain 1561 struct ifnet *ifp = (struct ifnet *)v; local in function:if_delroute_matcher 1576 struct ifnet *ifp; local in function:if_clone_create 1602 struct ifnet *ifp; local in function:if_clone_destroy 1905 struct ifnet *ifp; local in function:ifa_ifwithaddr 1948 struct ifnet *ifp; local in function:ifa_ifwithdstaddr 1990 struct ifnet *ifp; local in function:ifa_ifwithnet 2196 struct ifnet *ifp; local in function:link_rtrequest 2403 struct ifnet *ifp = container_of(work, struct ifnet, if_link_work); local in function:if_link_state_change_work 2488 struct ifnet *ifp = rt->rt_ifp; local in function:p2p_rtrequest 2656 struct ifnet *ifp = arg; local in function:if_slowtimo_intr 2678 struct ifnet *ifp = isd->isd_ifp; local in function:if_slowtimo_work 2701 struct ifnet *ifp = node.sysctl_data; local in function:sysctl_if_watchdog 2896 struct ifnet *ifp; local in function:ifunit 2934 struct ifnet *ifp; local in function:if_get 3000 ifnet_t *ifp; local in function:if_byindex 3016 ifnet_t *ifp; local in function:if_get_byindex 3032 ifnet_t *ifp; local in function:if_get_bylla 3455 struct ifnet *ifp; local in function:doifioctl 3655 struct ifnet *ifp; local in function:ifconf 4061 struct ifnet *ifp; local in function:if_sdl_sysctl [all...] |
| if_faith.c | 138 struct ifnet *ifp; local in function:faith_clone_create 140 ifp = if_alloc(IFT_FAITH); 142 if_initname(ifp, ifc->ifc_name, unit); 144 ifp->if_mtu = FAITHMTU; 146 ifp->if_flags = /* IFF_LOOPBACK */ IFF_BROADCAST | IFF_MULTICAST; 147 ifp->if_ioctl = faithioctl; 148 ifp->if_output = faithoutput; 149 ifp->if_type = IFT_FAITH; 150 ifp->if_hdrlen = 0; 151 ifp->if_addrlen = 0 [all...] |
| if_arcsubr.c | 108 * Assumes that ifp is actually pointer to arccom structure. 111 arc_output(struct ifnet *ifp, struct mbuf *m0, const struct sockaddr *dst, 123 if ((ifp->if_flags & (IFF_UP|IFF_RUNNING)) != (IFF_UP|IFF_RUNNING)) 127 ac = (struct arccom *)ifp; 131 myself = *CLLADDR(ifp->if_sadl); 137 IFQ_CLASSIFY(&ifp->if_snd, m, dst->sa_family); 148 else if (ifp->if_flags & IFF_NOARP) 150 else if ((error = arpresolve(ifp, rt, m, dst, &adst, 156 (ifp->if_flags & IFF_SIMPLEX)) 158 if (ifp->if_flags & IFF_LINK0) [all...] |
| if_ieee1394subr.c | 85 ieee1394_output(struct ifnet *ifp, struct mbuf *m0, const struct sockaddr *dst, 100 if ((ifp->if_flags & (IFF_UP|IFF_RUNNING)) != (IFF_UP|IFF_RUNNING)) 107 IFQ_CLASSIFY(&ifp->if_snd, m0, dst->sa_family); 139 (error = arpresolve(ifp, rt, m0, dst, hwdst, 143 if ((m0->m_flags & M_BCAST) && (ifp->if_flags & IFF_SIMPLEX)) 162 memcpy(hwdst->iha_uid, ifp->if_broadcastaddr, 163 MIN(IEEE1394_ADDR_LEN, ifp->if_addrlen)); 166 error = nd6_resolve(ifp, rt, m0, dst, hwdst->iha_uid, 179 rt_unhandled(__func__, ifp, dst); 184 looutput(ifp, mcopy, dst, rt) [all...] |
| /src/sys/netcan/ |
| if_canloop.c | 108 struct ifnet *ifp; local in function:canloop_clone_create 110 ifp = if_alloc(IFT_OTHER); 112 if_initname(ifp, ifc->ifc_name, unit); 114 ifp->if_flags = IFF_LOOPBACK; 116 ifp->if_extflags = IFEF_MPSAFE; 118 ifp->if_ioctl = canloop_ioctl; 119 ifp->if_start = canloop_ifstart; 120 can_ifattach(ifp); 122 ifp->if_mowner = malloc(sizeof(struct mowner), M_DEVBUF, 124 strlcpy(ifp->if_mowner->mo_name, ifp->if_xname [all...] |
| /src/usr.bin/rump_dhcpclient/ |
| main.c | 60 get_hwaddr(struct interface *ifp) 67 strlcpy(iflr.iflr_name, ifp->name, sizeof(iflr.iflr_name)); 84 memcpy(ifp->hwaddr, sdl->sdl_data+strlen(ifp->name), ETHER_ADDR_LEN); 85 ifp->hwlen = ETHER_ADDR_LEN; 86 ifp->family = ARPHRD_ETHER; 93 send_discover(struct interface *ifp) 102 mlen = make_message(&dhcp, ifp, DHCP_DISCOVER); 104 if (send_raw_packet(ifp, ETHERTYPE_IP, udp, ulen) == -1) 109 send_request(struct interface *ifp) 231 struct interface *ifp; local in function:main [all...] |
| /src/sys/arch/usermode/dev/ |
| if_veth.c | 104 struct ifnet *ifp = &sc->sc_ec.ec_if; local in function:veth_attach 129 strlcpy(ifp->if_xname, device_xname(self), IFNAMSIZ); 130 ifp->if_softc = sc; 131 ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST; 132 ifp->if_ioctl = veth_ioctl; 133 ifp->if_watchdog = veth_watchdog; 134 ifp->if_start = veth_start; 135 ifp->if_init = veth_init; 136 ifp->if_stop = veth_stop; 137 IFQ_SET_MAXLEN(&ifp->if_snd, IFQ_MAXLEN) 201 struct ifnet *ifp = &sc->sc_ec.ec_if; local in function:veth_softrx 246 struct ifnet *ifp = &sc->sc_ec.ec_if; local in function:veth_softtx [all...] |
| /src/usr.bin/systat/ |
| ifstat.c | 114 #define IN_col2 (showpps ? ifp->if_in_curpps : ifp->if_in_curtraffic) 115 #define OUT_col2 (showpps ? ifp->if_out_curpps : ifp->if_out_curtraffic) 117 ifp->if_in_pps_peak : ifp->if_in_traffic_peak) 119 ifp->if_out_pps_peak : ifp->if_out_traffic_peak) 121 ifp->if_mib.ifdr_data.ifi_ipackets : ifp->if_mib.ifdr_data.ifi_ibytes 214 struct if_stat *ifp = NULL; local in function:showifstat 267 struct if_stat *ifp = NULL; local in function:fetchifstat 406 struct if_stat *ifp = NULL; local in function:sort_interface_list [all...] |
| /src/sys/rump/net/lib/libvirtif/ |
| if_virt.c | 74 virtif_create(struct ifnet *ifp) 78 struct virtif_sc *sc = ifp->if_softc; 82 panic("%s: already created", ifp->if_xname); 93 ether_ifattach(ifp, enaddr); 95 aprint_normal_ifnet(ifp, "Ethernet address %s\n", enaddrstr); 97 IFQ_SET_READY(&ifp->if_snd); 106 struct ifnet *ifp; local in function:virtif_clone 111 ifp = &sc->sc_ec.ec_if; 113 if_initname(ifp, VIF_NAME, num); 114 ifp->if_softc = sc 339 struct ifnet *ifp = &sc->sc_ec.ec_if; local in function:VIF_DELIVERPKT [all...] |
| /src/sys/net/npf/ |
| if_npflog.c | 92 npflog_ioctl(ifnet_t *ifp, u_long cmd, void *data) 94 npflog_softc_t *sc = ifp->if_softc; 100 ifp->if_flags |= (IFF_UP | IFF_RUNNING); 103 error = ifioctl_common(ifp, cmd, data); 114 ifnet_t *ifp; local in function:npflog_clone_create 119 ifp = &sc->sc_if; 120 ifp->if_softc = sc; 122 if_initname(ifp, "npflog", unit); 123 ifp->if_type = IFT_OTHER; 124 ifp->if_dlt = DLT_NULL [all...] |
| /src/sys/dev/pci/ |
| if_enavar.h | 354 struct ifnet *ifp; /* set to point to sc_ec */ member in struct:ena_adapter 450 #define if_getcapenable(ifp) (ifp)->if_capenable 451 #define if_setcapenable(ifp, s) SET((ifp)->if_capenable, s) 452 #define if_getcapabilities(ifp) (ifp)->if_capabilities 453 #define if_setcapabilities(ifp, s) SET((ifp)->if_capabilities, s) 454 #define if_setcapabilitiesbit(ifp, s, c) do { [all...] |
| /src/sys/dist/pf/net/ |
| if_pflog.c | 130 struct ifnet *ifp; local in function:pflog_clone_create 141 ifp = &pflogif->sc_if; 142 snprintf(ifp->if_xname, sizeof ifp->if_xname, "pflog%d", unit); 143 ifp->if_softc = pflogif; 144 ifp->if_mtu = PFLOGMTU; 145 ifp->if_ioctl = pflogioctl; 146 ifp->if_output = pflogoutput; 147 ifp->if_start = pflogstart; 148 ifp->if_type = IFT_PFLOG [all...] |
| /src/sys/dev/ofw/ |
| ofnet.c | 108 struct ifnet *ifp = &of->sc_ethercom.ec_if; local in function:ofnet_attach 130 strlcpy(ifp->if_xname, device_xname(of->sc_dev), IFNAMSIZ); 131 ifp->if_softc = of; 132 ifp->if_start = ofnet_start; 133 ifp->if_ioctl = ofnet_ioctl; 134 ifp->if_watchdog = ofnet_watchdog; 135 ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX; 136 IFQ_SET_READY(&ifp->if_snd); 138 if_attach(ifp); 139 ether_ifattach(ifp, myaddr) 147 struct ifnet *ifp = &of->sc_ethercom.ec_if; local in function:ofnet_read 253 struct ifnet *ifp = &of->sc_ethercom.ec_if; local in function:ofnet_init [all...] |
| /src/sys/netinet6/ |
| in6_ifattach.c | 93 get_hostid_ifid(struct ifnet *ifp, struct in6_addr *in6) 169 in6_get_hw_ifid(struct ifnet *ifp, struct in6_addr *in6) 181 IFADDR_READER_FOREACH(ifa, ifp) { 188 if (sdl == NULL || ifa == ifp->if_dl || ifa == ifp->if_hwdl) { 193 if (ifa == ifp->if_hwdl) 201 switch (ifp->if_type) { 213 switch (ifp->if_type) { 311 struct ifnet *ifp; local in function:get_ifid 330 IFNET_READER_FOREACH(ifp) { [all...] |
| nd6_rtr.c | 59 struct ifnet *ifp; local in function:nd6_rtr_cache 70 ifp = m_get_rcvif_psref(m, &psref); 71 if (ifp == NULL) 78 IN6_PRINT(ip6bufd, &ip6->ip6_dst), if_name(ifp)); 95 m_put_rcvif_psref(ifp, &psref); 113 m_put_rcvif_psref(ifp, &psref); 133 if (lladdr && ((ifp->if_addrlen + 2 + 7) & ~7) != lladdrlen) { 137 ifp->if_addrlen, 143 nd6_cache_lladdr(ifp, &saddr6, lladdr, lladdrlen, icmp6_type, 0); 146 m_put_rcvif_psref(ifp, &psref) [all...] |
| /src/sys/arch/amiga/dev/ |
| zz9k_if.c | 98 static void zzif_start(struct ifnet *ifp); 100 static int zzif_ioctl(struct ifnet *ifp, u_long cmd, void *data); 128 struct ifnet *ifp = &sc->sc_ethercom.ec_if; local in function:zzif_attach 179 memcpy(ifp->if_xname, device_xname(sc->sc_dev), IFNAMSIZ); 180 ifp->if_softc = sc; 181 ifp->if_ioctl = zzif_ioctl; 182 ifp->if_start = zzif_start; 183 ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX; 184 ifp->if_mtu = ETHERMTU; 187 if_attach(ifp); 203 struct ifnet *ifp = &sc->sc_ethercom.ec_if; local in function:zzif_init 216 struct ifnet *ifp = &sc->sc_ethercom.ec_if; local in function:zzif_stop 295 struct ifnet *ifp = &sc->sc_ethercom.ec_if; local in function:zzif_intr [all...] |
| /src/sys/dev/usb/ |
| usbnet.c | 162 uno_stop(struct usbnet *un, struct ifnet *ifp, int disable) 164 KASSERTMSG(IFNET_LOCKED(ifp), "%s", ifp->if_xname); 166 (*un->un_ops->uno_stop)(ifp, disable); 170 uno_ioctl(struct usbnet *un, struct ifnet *ifp, u_long cmd, void *data) 173 KASSERTMSG(cmd != SIOCADDMULTI, "%s", ifp->if_xname); 174 KASSERTMSG(cmd != SIOCDELMULTI, "%s", ifp->if_xname); 175 KASSERTMSG(IFNET_LOCKED(ifp), "%s", ifp->if_xname); 178 return (*un->un_ops->uno_ioctl)(ifp, cmd, data) 293 struct ifnet * const ifp = usbnet_ifp(un); local in function:usbnet_enqueue 324 struct ifnet * const ifp = usbnet_ifp(un); local in function:usbnet_input 415 struct ifnet * const ifp = usbnet_ifp(un); local in function:usbnet_txeof 829 struct ifnet * const ifp = usbnet_ifp(un); local in function:usbnet_init_rx_tx 1018 struct ifnet *ifp = &ec->ec_if; local in function:usbnet_ifflags_cb 1063 struct ifnet * const ifp = usbnet_ifp(un); local in function:usbnet_ispromisc 1282 struct ifnet * const ifp = usbnet_ifp(un); local in function:usbnet_tick_task 1487 struct ifnet * const ifp = usbnet_ifp(un); local in function:usbnet_attach_mii 1520 struct ifnet * const ifp = usbnet_ifp(un); local in function:usbnet_attach_ifp 1580 struct ifnet * const ifp = usbnet_ifp(un); local in function:usbnet_detach 1659 struct ifnet * const ifp = usbnet_ifp(un); local in function:usbnet_activate [all...] |
| /src/sys/netinet/ |
| in_offload.h | 55 #define IN_NEED_CHECKSUM(ifp, csum_flags) \ 56 (__predict_true(((ifp)->if_flags & IFF_LOOPBACK) == 0 || \
|
| in_selsrc.h | 30 void *in_selsrc_domifattach(struct ifnet *ifp); 31 void in_selsrc_domifdetach(struct ifnet *ifp, void *aux);
|