HomeSort by: relevance | last modified time | path
    Searched refs:ifp (Results 1 - 25 of 558) sorted by relevancy

1 2 3 4 5 6 7 8 91011>>

  /src/external/bsd/ipf/dist/lib/
printifname.c 15 printifname(format, name, ifp)
17 void *ifp;
20 if ((ifp == NULL) && strcmp(name, "-") && strcmp(name, "*"))
  /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
193 struct interface *ifp; local
221 struct interface *ifp; local
247 struct interface *ifp, *maybe; local
399 struct interface *ifp; local
696 struct interface ifs, ifs0, *ifp, *ifp1; local
    [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
410 struct interface *ifp; local
462 struct interface *ifp; local
835 struct interface *ifp; local
875 struct interface *ifp; local
974 struct interface *ifp; local
    [all...]
  /src/external/gpl3/binutils/dist/gprof/
gmon_io.h 33 extern int gmon_io_read_vma (FILE *ifp, bfd_vma *valp);
34 extern int gmon_io_read_32 (FILE *ifp, unsigned int *valp);
35 extern int gmon_io_read (FILE *ifp, char *buf, size_t n);
36 extern int gmon_io_write_vma (FILE *ifp, bfd_vma val);
37 extern int gmon_io_write_32 (FILE *ifp, unsigned int val);
38 extern int gmon_io_write_8 (FILE *ifp, unsigned int val);
39 extern int gmon_io_write (FILE *ifp, char *buf, size_t n);
  /src/external/gpl3/binutils.old/dist/gprof/
gmon_io.h 33 extern int gmon_io_read_vma (FILE *ifp, bfd_vma *valp);
34 extern int gmon_io_read_32 (FILE *ifp, unsigned int *valp);
35 extern int gmon_io_read (FILE *ifp, char *buf, size_t n);
36 extern int gmon_io_write_vma (FILE *ifp, bfd_vma val);
37 extern int gmon_io_write_32 (FILE *ifp, unsigned int val);
38 extern int gmon_io_write_8 (FILE *ifp, unsigned int val);
39 extern int gmon_io_write (FILE *ifp, char *buf, size_t n);
  /src/sys/net/
if_vether.c 62 struct ifnet *ifp; local
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
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)
841 struct ifnet *ifp = ipq->ipq_ifp; local
1048 struct ifnet *ifp = ids->ids_ifp; local
1163 struct ifnet *ifp; local
1558 struct ifnet *ifp = (struct ifnet *)v; local
1573 struct ifnet *ifp; local
1599 struct ifnet *ifp; local
1902 struct ifnet *ifp; local
1945 struct ifnet *ifp; local
1987 struct ifnet *ifp; local
2193 struct ifnet *ifp; local
2345 struct ifnet *ifp = container_of(work, struct ifnet, if_link_work); local
2445 struct ifnet *ifp = rt->rt_ifp; local
2613 struct ifnet *ifp = arg; local
2635 struct ifnet *ifp = isd->isd_ifp; local
2658 struct ifnet *ifp = node.sysctl_data; local
2853 struct ifnet *ifp; local
2891 struct ifnet *ifp; local
2957 ifnet_t *ifp; local
2973 ifnet_t *ifp; local
2989 ifnet_t *ifp; local
3412 struct ifnet *ifp; local
3612 struct ifnet *ifp; local
4018 struct ifnet *ifp; local
    [all...]
  /src/external/bsd/dhcpcd/dist/src/
ipv4ll.h 56 #define IPV4LL_STATE(ifp) \
57 ((struct ipv4ll_state *)(ifp)->if_data[IF_DATA_IPV4LL])
58 #define IPV4LL_CSTATE(ifp) \
59 ((const struct ipv4ll_state *)(ifp)->if_data[IF_DATA_IPV4LL])
60 #define IPV4LL_STATE_RUNNING(ifp) \
61 (IPV4LL_CSTATE((ifp)) && !IPV4LL_CSTATE((ifp))->down && \
62 (IPV4LL_CSTATE((ifp))->addr != NULL))
ipv4ll.c 63 ipv4ll_pickaddr(struct interface *ifp)
68 state = IPV4LL_STATE(ifp);
87 } while (ipv4_findaddr(ifp->ctx, &addr) != NULL);
90 setstate(ifp->ctx->randomstate);
95 ipv4ll_subnetroute(rb_tree_t *routes, struct interface *ifp)
101 assert(ifp != NULL);
102 if ((state = IPV4LL_STATE(ifp)) == NULL ||
106 if ((rt = rt_new(ifp)) == NULL)
121 ipv4ll_defaultroute(rb_tree_t *routes, struct interface *ifp)
127 assert(ifp != NULL)
325 struct interface *ifp = arg; local
419 struct interface *ifp = arg; local
521 struct interface *ifp; local
543 struct interface *ifp; local
    [all...]
dhcp.c 400 decode_rfc3442_rt(rb_tree_t *routes, struct interface *ifp,
432 if ((rt = rt_new(ifp)) == NULL)
563 get_option_routes(rb_tree_t *routes, struct interface *ifp,
566 struct if_options *ifo = ifp->options;
577 p = get_option(ifp->ctx, bootp, bootp_len, DHO_CSR, &len);
582 p = get_option(ifp->ctx, bootp, bootp_len, DHO_MSCSR, &len);
586 if (p && (n = decode_rfc3442_rt(routes, ifp, p, len)) != -1) {
589 state = D_CSTATE(ifp);
594 ifp->name, csr);
603 p = get_option(ifp->ctx, bootp, bootp_len
2009 struct interface *ifp = arg; local
2038 struct interface *ifp = arg; local
2052 struct interface *ifp = arg; local
2067 struct interface *ifp = arg; local
2098 struct interface *ifp = arg; local
2132 struct interface *ifp = arg; local
2244 struct interface *ifp = astate->iface; local
2321 struct interface *ifp; local
2338 struct interface *ifp = astate->iface; local
2676 struct interface *ifp = arg; local
2872 struct interface *ifp = arg; local
3771 struct interface *ifp = arg; local
3805 struct interface *ifp; local
3910 struct interface *ifp = arg; local
4105 struct interface *ifp = arg; local
4368 struct interface *ifp; local
    [all...]
dhcpcd.c 202 struct interface *ifp; local
204 TAILQ_FOREACH(ifp, ctx->ifaces, next) {
205 if (ifp->active == IF_ACTIVE_USER)
206 script_runreason(ifp, "STOPPED");
233 dhcpcd_ifafwaiting(const struct interface *ifp)
238 if (ifp->active != IF_ACTIVE_USER)
242 opts = ifp->options->options;
247 bool foundaddr = ipv4_hasaddr(ifp);
259 bool foundaddr = ipv6_hasaddr(ifp);
277 const struct interface *ifp; local
312 struct interface *ifp; local
949 struct interface *ifp = arg; local
1040 struct interface *ifp = arg; local
1110 struct interface *ifp, *iff; local
1209 struct interface *ifp0 = arg, *ifp; local
1239 struct interface *ifp = arg; local
1255 struct interface *ifp, *ifn, *ifp1; local
1409 struct interface *ifp; local
1456 struct interface *ifp; local
1506 struct interface *ifp; local
1613 struct interface *ifp; local
2025 struct interface *ifp; local
    [all...]
dhcp6.c 238 dhcp6_makeuser(void *data, const struct interface *ifp)
240 const struct if_options *ifo = ifp->options;
282 dhcp6_makevendor(void *data, const struct interface *ifp)
290 ifo = ifp->options;
299 vlen = strlen(ifp->ctx->vendor);
305 logerrx("%s: DHCPv6 Vendor Class too big", ifp->name);
345 memcpy(p, ifp->ctx->vendor, vlen);
353 dhcp6_makevendoropts(void *data, const struct interface *ifp)
356 const struct if_options *ifo = ifp->options;
505 dhcp6_updateelapsed(struct interface *ifp, struct dhcp6_message *m, size_t len
1537 struct interface *ifp = arg; local
1549 struct interface *ifp = arg; local
1601 struct interface *ifp; local
1654 struct interface *ifp; local
1745 struct interface *ifp; local
1791 struct interface *ifp; local
1891 struct interface *ifp = arg; local
1905 struct interface *ifp = arg; local
1915 struct interface *ifp = arg; local
1927 struct interface *ifp = arg; local
1959 struct interface *ifp; local
2056 struct interface *ifp; local
2068 struct interface *ifp = arg; local
2098 struct interface *ifp; local
2236 struct interface *ifp; local
3754 struct interface *ifp; local
4044 struct interface *ifp = arg; local
4360 struct interface *ifp = ia->iface; local
    [all...]
  /src/sys/netcan/
if_canloop.c 108 struct ifnet *ifp; local
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
    [all...]
  /src/sys/arch/usermode/dev/
if_veth.c 104 struct ifnet *ifp = &sc->sc_ec.ec_if; local
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
246 struct ifnet *ifp = &sc->sc_ec.ec_if; local
    [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
267 struct if_stat *ifp = NULL; local
406 struct if_stat *ifp = NULL; local
    [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
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
    [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
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/external/gpl3/binutils/dist/gprofng/src/
gmon_basic_blocks.cc 50 /* Read a basic-block record from file IFP. FILENAME is the name
51 of file IFP and is provided for formatting error-messages only. */
54 bb_read_rec (FILE *ifp, const char *filename,
62 if (gmon_io_read_32 (ifp, &nblocks))
73 fskip_string (ifp);
83 if ((fread (&ncalls, sizeof (ncalls), 1, ifp) != 1)
84 || (fread (&addr, sizeof (addr), 1, ifp) != 1)
85 || (fskip_string (ifp), false)
86 || (fskip_string (ifp), false)
87 || (fread (&line_num, sizeof (line_num), 1, ifp) != 1)
    [all...]
gmon_io.h 40 extern int gmon_io_read_vma (FILE *ifp, bfd_vma *valp, const char *whoami);
41 extern int gmon_io_read_32 (FILE *ifp, unsigned int *valp);
42 extern int gmon_io_read (FILE *ifp, char *buf, size_t n);
  /src/crypto/external/bsd/heimdal/dist/lib/roken/
getifaddrs_w32.c 108 struct ifaddrs *ifp; local
110 ifp = malloc(sizeof(*ifp));
111 if (ifp == NULL)
114 ZeroMemory(ifp, sizeof(*ifp));
116 ifp->ifa_next = NULL;
117 ifp->ifa_name = NULL;
118 ifp->ifa_flags = il[i].iiFlags;
119 ifp->ifa_addr = dupaddr(&il[i].iiAddress)
    [all...]
  /src/external/mpl/bind/dist/lib/ns/
interfacemgr.c 58 #define LISTENING(ifp) (((ifp)->flags & NS_INTERFACEFLAG_LISTENING) != 0)
127 ns_interface_t *ifp = NULL;
141 for (ifp = ISC_LIST_HEAD(mgr->interfaces);
142 ifp != NULL;
143 ifp = ISC_LIST_NEXT(ifp, link))
147 &ifp->addr);
161 was_listening = LISTENING(ifp);
451 ns_interface_t *ifp = NULL local
664 ns_interface_t *ifp = NULL; local
767 ns_interface_t *ifp = NULL; local
796 ns_interface_t *ifp; local
822 ns_interface_t *ifp = NULL, *next = NULL; local
1093 ns_interface_t *ifp = NULL; local
    [all...]
  /src/external/bsd/ipf/dist/
ip_fil.c 100 ipf_forgetifp(softc, ifp)
102 void *ifp;
109 if (f->fr_ifa == ifp)
113 if (f->fr_ifa == ifp)
117 if (f->fr_ifa == ifp)
121 if (f->fr_ifa == ifp)
124 ipf_nat_sync(softc, ifp);
125 ipf_lookup_sync(softc, ifp);
131 no_output(ifp, m, s)
134 no_output (ifp, m, s, rt, cp
255 struct ifnet *ifp, **ifpp, **old_ifneta; local
387 struct ifnet *ifp, **ifpp; local
424 struct ifnet *ifp; local
718 struct ifnet *ifp = ifptr; local
    [all...]

Completed in 62 milliseconds

1 2 3 4 5 6 7 8 91011>>