Searched refs:ifm (Results 1 - 25 of 81) sorted by relevance

1234

/freebsd-11-stable/sys/net/
H A Dif_media.c69 static struct ifmedia_entry *ifmedia_match(struct ifmedia *ifm,
84 ifmedia_init(ifm, dontcare_mask, change_callback, status_callback)
85 struct ifmedia *ifm;
91 LIST_INIT(&ifm->ifm_list);
92 ifm->ifm_cur = NULL;
93 ifm->ifm_media = 0;
94 ifm->ifm_mask = dontcare_mask; /* IF don't-care bits */
95 ifm->ifm_change = change_callback;
96 ifm->ifm_status = status_callback;
100 ifmedia_removeall(ifm)
[all...]
H A Drtsock.c1287 struct if_msghdr *ifm; local
1297 ifm = mtod(m, struct if_msghdr *);
1298 ifm->ifm_index = ifp->if_index;
1299 ifm->ifm_flags = ifp->if_flags | ifp->if_drv_flags;
1300 if_data_copy(ifp, &ifm->ifm_data);
1301 ifm->ifm_addrs = 0;
1596 struct if_msghdrl *ifm; local
1599 ifm = (struct if_msghdrl *)w->w_tmem;
1605 ifm32 = (struct if_msghdrl32 *)ifm;
1617 ifm
1636 struct if_msghdr *ifm; local
[all...]
/freebsd-11-stable/usr.sbin/rtadvd/
H A Dif.c414 struct if_msghdr *ifm; local
461 for (ifm = (struct if_msghdr *)msg;
462 ifm != NULL && ifm < (struct if_msghdr *)lim;
463 ifm = get_next_msghdr(ifm,(struct if_msghdr *)lim)) {
466 syslog(LOG_DEBUG, "<%s> ifm = %p, lim = %p, diff = %zu",
467 __func__, ifm, lim, (char *)lim - (char *)ifm);
469 if (ifm
618 get_next_msghdr(struct if_msghdr *ifm, struct if_msghdr *lim) argument
[all...]
/freebsd-11-stable/release/picobsd/tinyware/ns/
H A Dns.c249 struct if_msghdr *ifm; local
312 for (next = if_buf, i = 0; next < lim; next += ifm->ifm_msglen) {
313 ifm = (struct if_msghdr *)next;
327 for (next = if_buf; next < lim; next += ifm->ifm_msglen) {
328 ifm = (struct if_msghdr *)next;
336 for (next = if_buf; next < lim; next += ifm->ifm_msglen) {
337 ifm = (struct if_msghdr *)next;
338 if_table[i] = (struct sockaddr *)(ifm + 1);
339 ifm_table[i] = ifm;
348 ifm
[all...]
/freebsd-11-stable/lib/libc/net/
H A Dgetifaddrs.c91 struct if_msghdrl *ifm; local
141 ifm = (struct if_msghdrl *)(void *)rtm;
142 if (ifm->ifm_addrs & RTA_IFP) {
143 idx = ifm->ifm_index;
145 if_data = IF_MSGHDRL_IFM_DATA(ifm);
147 dl = (struct sockaddr_dl *)IF_MSGHDRL_RTA(ifm);
224 ifm = (struct if_msghdrl *)(void *)rtm;
225 if ((ifm->ifm_addrs & RTA_IFP) == 0) {
230 idx = ifm->ifm_index;
231 dl = (struct sockaddr_dl *)IF_MSGHDRL_RTA(ifm);
[all...]
/freebsd-11-stable/usr.sbin/wpa/ndis_events/
H A Dndis_events.c117 struct if_msghdr *ifm; local
145 ifm = (struct if_msghdr *)next;
146 if (ifm->ifm_type == RTM_IFINFO) {
147 sdl = (struct sockaddr_dl *)(ifm + 1);
148 if (ifm->ifm_index == idx) {
155 next += ifm->ifm_msglen;
277 struct if_msghdr *ifm; local
336 ifm = (struct if_msghdr *)msg;
337 if (find_ifname(ifm->ifm_index, ifname))
/freebsd-11-stable/usr.sbin/ppp/
H A Darp.c236 struct if_msghdr *ifm; local
265 ifm = (struct if_msghdr *)ptr; /* On if_msghdr */
266 if (ifm->ifm_type != RTM_IFINFO)
268 dl = (struct sockaddr_dl *)(ifm + 1); /* Single _dl at end */
269 skip = (ifm->ifm_flags & (IFF_UP | IFF_BROADCAST | IFF_POINTOPOINT |
271 ptr += ifm->ifm_msglen; /* First ifa_msghdr */
282 ptr == (char *)ifm + ifm->ifm_msglen + ifam->ifam_msglen)
H A Droute.c217 struct if_msghdr *ifm; local
247 for (ptr = buf; ptr < end; ptr += ifm->ifm_msglen) {
248 ifm = (struct if_msghdr *)ptr;
249 if (ifm->ifm_type != RTM_IFINFO)
251 dl = (struct sockaddr_dl *)(ifm + 1);
252 if (ifm->ifm_index > 0) {
253 if (ifm->ifm_index > have) {
257 have = ifm->ifm_index + 5;
275 if (ifs[ifm->ifm_index-1] == NULL) {
276 ifs[ifm
[all...]
/freebsd-11-stable/sys/mips/cavium/octe/
H A Docte.c344 octe_mii_medstat(struct ifnet *ifp, struct ifmediareq *ifm) argument
353 ifm->ifm_active = mii->mii_media_active;
354 ifm->ifm_status = mii->mii_media_status;
364 octe_medstat(struct ifnet *ifp, struct ifmediareq *ifm) argument
371 ifm->ifm_status = IFM_AVALID;
372 ifm->ifm_active = IFT_ETHER;
383 ifm->ifm_status |= IFM_ACTIVE;
387 ifm->ifm_active |= IFM_10_T;
390 ifm->ifm_active |= IFM_100_TX;
393 ifm
[all...]
/freebsd-11-stable/usr.sbin/wpa/wpa_supplicant/
H A DPacket32.c240 struct if_msghdr *ifm; local
278 ifm = (struct if_msghdr *)next;
279 if (ifm->ifm_type == RTM_IFINFO) {
280 sdl = (struct sockaddr_dl *)(ifm + 1);
292 next += ifm->ifm_msglen;
311 ifm = (struct if_msghdr *)next;
312 if (ifm->ifm_type == RTM_IFINFO) {
313 sdl = (struct sockaddr_dl *)(ifm + 1);
325 next += ifm->ifm_msglen;
/freebsd-11-stable/usr.sbin/ifmcstat/
H A Difmcstat.c412 struct ifmultiaddr ifm, *ifmp = 0; local
419 KREAD(ifmp, &ifm, struct ifmultiaddr);
420 if (ifm.ifma_addr == NULL)
422 KREAD(ifm.ifma_addr, &sa, struct sockaddr);
425 KREAD(ifm.ifma_addr, &sdl, struct sockaddr_dl);
431 addrbuf, ifm.ifma_refcount);
433 ifmp = TAILQ_NEXT(&ifm, ifma_link);
482 struct ifmultiaddr ifm, *ifmp = 0; local
490 KREAD(ifmp, &ifm, struct ifmultiaddr);
491 if (ifm
565 struct ifmultiaddr ifm, *ifmp = 0; local
[all...]
/freebsd-11-stable/tools/tools/net80211/wlanwatch/
H A Dwlanwatch.c289 struct if_msghdr *ifm; local
301 ifm = (struct if_msghdr *)rtm;
303 cnow, ifm->ifm_index);
304 switch (ifm->ifm_data.ifi_link_state) {
313 ifm->ifm_data.ifi_link_state);
316 bprintf(stdout, ifm->ifm_flags, ifnetflags);
317 pmsg_addrs((char *)(ifm + 1), ifm->ifm_addrs);
/freebsd-11-stable/sys/mips/cavium/
H A Dif_octm.c378 octm_medstat(struct ifnet *ifp, struct ifmediareq *ifm) argument
385 ifm->ifm_status = IFM_AVALID;
386 ifm->ifm_active = IFT_ETHER;
392 ifm->ifm_status |= IFM_ACTIVE;
396 ifm->ifm_active |= IFM_10_T;
399 ifm->ifm_active |= IFM_100_TX;
402 ifm->ifm_active |= IFM_1000_T;
405 ifm->ifm_active |= IFM_10G_T;
410 ifm->ifm_active |= IFM_FDX;
412 ifm
[all...]
/freebsd-11-stable/contrib/wpa/src/l2_packet/
H A Dl2_packet_freebsd.c190 struct if_msghdr *ifm;
204 for (p = buf; p < buf + len; p += ifm->ifm_msglen) {
205 ifm = (struct if_msghdr *)p;
206 sdl = (struct sockaddr_dl *)(ifm + 1);
207 if (ifm->ifm_type != RTM_IFINFO ||
208 (ifm->ifm_addrs & RTA_IFP) == 0)
/freebsd-11-stable/usr.sbin/rtsold/
H A Dif.c286 struct if_msghdr *ifm; local
300 for (next = buf; next < lim; next += ifm->ifm_msglen) {
301 ifm = (struct if_msghdr *)(void *)next;
302 if (ifm->ifm_type == RTM_IFINFO) {
303 sa = (struct sockaddr *)(ifm + 1);
304 get_rtaddrs(ifm->ifm_addrs, sa, rti_info);
/freebsd-11-stable/sys/dev/xe/
H A Dif_xevar.h43 struct ifmedia *ifm; member in struct:xe_softc
H A Dif_xe.c243 scp->ifm = &scp->ifmedia;
262 ifmedia_init(scp->ifm, 0, xe_media_change, xe_media_status);
267 ifmedia_add(scp->ifm, IFM_ETHER|IFM_100_TX, 0, NULL);
268 ifmedia_add(scp->ifm, IFM_ETHER|IFM_10_T|IFM_FDX, 0, NULL);
269 ifmedia_add(scp->ifm, IFM_ETHER|IFM_10_T|IFM_HDX, 0, NULL);
271 ifmedia_add(scp->ifm, IFM_ETHER|IFM_10_T, 0, NULL);
273 ifmedia_add(scp->ifm, IFM_ETHER|IFM_10_2, 0, NULL);
274 ifmedia_add(scp->ifm, IFM_ETHER|IFM_AUTO, 0, NULL);
277 ifmedia_set(scp->ifm, IFM_ETHER|IFM_AUTO);
947 if (IFM_TYPE(scp->ifm
[all...]
/freebsd-11-stable/sys/dev/le/
H A Dif_le_pci.c204 struct ifmedia *ifm = &sc->sc_media; local
207 if (IFM_TYPE(ifm->ifm_media) != IFM_ETHER)
210 if (IFM_SUBTYPE(ifm->ifm_media) == IFM_HPNA_1)
213 else if (IFM_SUBTYPE(ifm->ifm_media) == IFM_AUTO)
222 if (IFM_SUBTYPE(ifm->ifm_media) == IFM_10_T)
230 if (IFM_OPTIONS(ifm->ifm_media) & IFM_FDX) {
236 if (IFM_SUBTYPE(ifm->ifm_media) == IFM_10_5)
/freebsd-11-stable/usr.sbin/rwhod/
H A Drwhod.c590 struct if_msghdr *ifm; local
641 for (next = buf; next < lim; next += ifm->ifm_msglen) {
642 ifm = (struct if_msghdr *)next;
643 if (ifm->ifm_type == RTM_IFINFO) {
644 sdl = (struct sockaddr_dl *)(ifm + 1);
645 flags = ifm->ifm_flags;
655 if (ifm->ifm_type != RTM_NEWADDR)
657 ifam = (struct ifa_msghdr *)ifm;
/freebsd-11-stable/sys/netgraph/
H A Dng_eiface.c345 struct ifmedia *ifm = &priv->media; local
347 if (IFM_TYPE(ifm->ifm_media) != IFM_ETHER)
349 if (IFM_SUBTYPE(ifm->ifm_media) == IFM_AUTO)
352 ifp->if_baudrate = ifmedia_baudrate(ifm->ifm_media);
361 struct ifmedia *ifm = &priv->media; local
363 if (ifm->ifm_cur->ifm_media == (IFM_ETHER | IFM_AUTO) &&
367 ifmr->ifm_active = ifm->ifm_cur->ifm_media;
/freebsd-11-stable/sys/dev/gxemul/ether/
H A Dif_gx.c266 gx_medstat(struct ifnet *ifp, struct ifmediareq *ifm) argument
273 ifm->ifm_status = IFM_AVALID | IFM_ACTIVE;
274 ifm->ifm_active = IFT_ETHER | IFM_1000_T | IFM_FDX;
/freebsd-11-stable/sys/dev/my/
H A Dif_my.c400 struct ifmedia *ifm; local
404 ifm = &sc->ifmedia;
407 ifm->ifm_media = IFM_ETHER | IFM_AUTO;
419 ifm->ifm_media = IFM_ETHER | IFM_10_T | IFM_HDX;
486 * ifm->ifm_media =
489 ifm->ifm_media =
500 * ifm->ifm_media = IFM_ETHER|IFM_1000_T;
502 ifm->ifm_media = IFM_ETHER | IFM_100_TX;
510 ifm->ifm_media = IFM_ETHER | IFM_100_T4;
516 ifm
1576 struct ifmedia *ifm; local
[all...]
/freebsd-11-stable/contrib/ntp/lib/isc/unix/
H A Difiter_sysctl.c167 struct if_msghdr *ifm = (struct if_msghdr *) ifam; local
168 struct sockaddr_dl *sdl = (struct sockaddr_dl *) (ifm + 1);
/freebsd-11-stable/sbin/ipfw/
H A Dnat.c87 struct if_msghdr *ifm; local
117 ifm = (struct if_msghdr *)next;
118 next += ifm->ifm_msglen;
119 if (ifm->ifm_version != RTM_VERSION) {
122 "not understood", ifm->ifm_version);
125 if (ifm->ifm_type == RTM_IFINFO) {
126 sdl = (struct sockaddr_dl *)(ifm + 1);
129 ifIndex = ifm->ifm_index;
/freebsd-11-stable/sbin/routed/
H A Dif.c663 struct if_msghdr *ifm; local
721 ifm = (struct if_msghdr *)ifam;
726 ifs0.int_index = ifm->ifm_index;
727 ifs0.int_if_flags = ifm->ifm_flags;
732 ifs0.int_data.ipackets = ifm->ifm_data.ifi_ipackets;
733 ifs0.int_data.ierrors = ifm->ifm_data.ifi_ierrors;
734 ifs0.int_data.opackets = ifm->ifm_data.ifi_opackets;
735 ifs0.int_data.oerrors = ifm->ifm_data.ifi_oerrors;
737 ifs0.int_data.odrops = ifm->ifm_data.ifi_odrops;
739 sdl = (struct sockaddr_dl *)(ifm
[all...]

Completed in 247 milliseconds

1234