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

1234

/freebsd-10-stable/sys/net/
H A Dif_media.c67 static struct ifmedia_entry *ifmedia_match(struct ifmedia *ifm,
82 ifmedia_init(ifm, dontcare_mask, change_callback, status_callback)
83 struct ifmedia *ifm;
89 LIST_INIT(&ifm->ifm_list);
90 ifm->ifm_cur = NULL;
91 ifm->ifm_media = 0;
92 ifm->ifm_mask = dontcare_mask; /* IF don't-care bits */
93 ifm->ifm_change = change_callback;
94 ifm->ifm_status = status_callback;
98 ifmedia_removeall(ifm)
[all...]
H A Drtsock.c1302 struct if_msghdr *ifm; local
1312 ifm = mtod(m, struct if_msghdr *);
1313 ifm->ifm_index = ifp->if_index;
1314 ifm->ifm_flags = ifp->if_flags | ifp->if_drv_flags;
1315 ifm->ifm_data = ifp->if_data;
1316 ifm->ifm_addrs = 0;
1636 struct if_msghdrl *ifm; local
1660 ifm = (struct if_msghdrl *)w->w_tmem;
1661 ifm->ifm_addrs = info->rti_addrs;
1662 ifm
1683 struct if_msghdr *ifm; local
[all...]
/freebsd-10-stable/usr.sbin/rtadvd/
H A Dif.c413 struct if_msghdr *ifm; local
443 for (ifm = (struct if_msghdr *)msg;
444 ifm != NULL && ifm < (struct if_msghdr *)lim;
445 ifm = get_next_msghdr(ifm,(struct if_msghdr *)lim)) {
448 syslog(LOG_DEBUG, "<%s> ifm = %p, lim = %p, diff = %zu",
449 __func__, ifm, lim, (char *)lim - (char *)ifm);
451 if (ifm
601 get_next_msghdr(struct if_msghdr *ifm, struct if_msghdr *lim) argument
[all...]
/freebsd-10-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-10-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-10-stable/usr.sbin/wpa/ndis_events/
H A Dndis_events.c118 struct if_msghdr *ifm; local
146 ifm = (struct if_msghdr *)next;
147 if (ifm->ifm_type == RTM_IFINFO) {
148 sdl = (struct sockaddr_dl *)(ifm + 1);
149 if (ifm->ifm_index == idx) {
156 next += ifm->ifm_msglen;
278 struct if_msghdr *ifm; local
337 ifm = (struct if_msghdr *)msg;
338 if (find_ifname(ifm->ifm_index, ifname))
/freebsd-10-stable/usr.sbin/IPXrouted/
H A Dstartup.c119 register struct if_msghdr *ifm; local
136 for (cp = buf; cp < cplim; cp += ifm->ifm_msglen) {
137 ifm = (struct if_msghdr *)cp;
138 if (ifm->ifm_type == RTM_IFINFO) {
140 ifs.int_flags = flags = ifm->ifm_flags | IFF_INTERFACE;
143 sdl = (struct sockaddr_dl *) (ifm + 1);
148 if (ifm->ifm_type != RTM_NEWADDR)
152 ifam = (struct ifa_msghdr *)ifm;
/freebsd-10-stable/usr.sbin/ppp/
H A Darp.c234 struct if_msghdr *ifm; local
263 ifm = (struct if_msghdr *)ptr; /* On if_msghdr */
264 if (ifm->ifm_type != RTM_IFINFO)
266 dl = (struct sockaddr_dl *)(ifm + 1); /* Single _dl at end */
267 skip = (ifm->ifm_flags & (IFF_UP | IFF_BROADCAST | IFF_POINTOPOINT |
269 ptr += ifm->ifm_msglen; /* First ifa_msghdr */
280 ptr == (char *)ifm + ifm->ifm_msglen + ifam->ifam_msglen)
H A Droute.c215 struct if_msghdr *ifm; local
245 for (ptr = buf; ptr < end; ptr += ifm->ifm_msglen) {
246 ifm = (struct if_msghdr *)ptr;
247 if (ifm->ifm_type != RTM_IFINFO)
249 dl = (struct sockaddr_dl *)(ifm + 1);
250 if (ifm->ifm_index > 0) {
251 if (ifm->ifm_index > have) {
255 have = ifm->ifm_index + 5;
273 if (ifs[ifm->ifm_index-1] == NULL) {
274 ifs[ifm
[all...]
/freebsd-10-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-10-stable/usr.sbin/wpa/wpa_supplicant/
H A DPacket32.c241 struct if_msghdr *ifm; local
279 ifm = (struct if_msghdr *)next;
280 if (ifm->ifm_type == RTM_IFINFO) {
281 sdl = (struct sockaddr_dl *)(ifm + 1);
293 next += ifm->ifm_msglen;
312 ifm = (struct if_msghdr *)next;
313 if (ifm->ifm_type == RTM_IFINFO) {
314 sdl = (struct sockaddr_dl *)(ifm + 1);
326 next += ifm->ifm_msglen;
/freebsd-10-stable/usr.sbin/ifmcstat/
H A Difmcstat.c415 struct ifmultiaddr ifm, *ifmp = 0; local
422 KREAD(ifmp, &ifm, struct ifmultiaddr);
423 if (ifm.ifma_addr == NULL)
425 KREAD(ifm.ifma_addr, &sa, struct sockaddr);
428 KREAD(ifm.ifma_addr, &sdl, struct sockaddr_dl);
434 addrbuf, ifm.ifma_refcount);
436 ifmp = TAILQ_NEXT(&ifm, ifma_link);
485 struct ifmultiaddr ifm, *ifmp = 0; local
493 KREAD(ifmp, &ifm, struct ifmultiaddr);
494 if (ifm
568 struct ifmultiaddr ifm, *ifmp = 0; local
[all...]
/freebsd-10-stable/tools/tools/net80211/wlanwatch/
H A Dwlanwatch.c290 struct if_msghdr *ifm; local
302 ifm = (struct if_msghdr *)rtm;
304 cnow, ifm->ifm_index);
305 switch (ifm->ifm_data.ifi_link_state) {
314 ifm->ifm_data.ifi_link_state);
317 bprintf(stdout, ifm->ifm_flags, ifnetflags);
318 pmsg_addrs((char *)(ifm + 1), ifm->ifm_addrs);
/freebsd-10-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-10-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-10-stable/usr.sbin/rtsold/
H A Dif.c291 struct if_msghdr *ifm; local
305 for (next = buf; next < lim; next += ifm->ifm_msglen) {
306 ifm = (struct if_msghdr *)(void *)next;
307 if (ifm->ifm_type == RTM_IFINFO) {
308 sa = (struct sockaddr *)(ifm + 1);
309 get_rtaddrs(ifm->ifm_addrs, sa, rti_info);
/freebsd-10-stable/sys/dev/xe/
H A Dif_xevar.h43 struct ifmedia *ifm; member in struct:xe_softc
/freebsd-10-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-10-stable/usr.sbin/rwhod/
H A Drwhod.c591 struct if_msghdr *ifm; local
642 for (next = buf; next < lim; next += ifm->ifm_msglen) {
643 ifm = (struct if_msghdr *)next;
644 if (ifm->ifm_type == RTM_IFINFO) {
645 sdl = (struct sockaddr_dl *)(ifm + 1);
646 flags = ifm->ifm_flags;
656 if (ifm->ifm_type != RTM_NEWADDR)
658 ifam = (struct ifa_msghdr *)ifm;
/freebsd-10-stable/sys/netgraph/
H A Dng_eiface.c340 struct ifmedia *ifm = &priv->media; local
342 if (IFM_TYPE(ifm->ifm_media) != IFM_ETHER)
344 if (IFM_SUBTYPE(ifm->ifm_media) == IFM_AUTO)
347 ifp->if_baudrate = ifmedia_baudrate(ifm->ifm_media);
356 struct ifmedia *ifm = &priv->media; local
358 if (ifm->ifm_cur->ifm_media == (IFM_ETHER | IFM_AUTO) &&
362 ifmr->ifm_active = ifm->ifm_cur->ifm_media;
/freebsd-10-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...]
/freebsd-10-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-10-stable/sbin/ipfw/
H A Dnat.c79 struct if_msghdr *ifm; local
109 ifm = (struct if_msghdr *)next;
110 next += ifm->ifm_msglen;
111 if (ifm->ifm_version != RTM_VERSION) {
114 "not understood", ifm->ifm_version);
117 if (ifm->ifm_type == RTM_IFINFO) {
118 sdl = (struct sockaddr_dl *)(ifm + 1);
121 ifIndex = ifm->ifm_index;
122 ifMTU = ifm->ifm_data.ifi_mtu;
/freebsd-10-stable/sys/dev/my/
H A Dif_my.c399 struct ifmedia *ifm; local
403 ifm = &sc->ifmedia;
406 ifm->ifm_media = IFM_ETHER | IFM_AUTO;
418 ifm->ifm_media = IFM_ETHER | IFM_10_T | IFM_HDX;
485 * ifm->ifm_media =
488 ifm->ifm_media =
499 * ifm->ifm_media = IFM_ETHER|IFM_1000_T;
501 ifm->ifm_media = IFM_ETHER | IFM_100_TX;
509 ifm->ifm_media = IFM_ETHER | IFM_100_T4;
515 ifm
1577 struct ifmedia *ifm; local
[all...]
/freebsd-10-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);

Completed in 263 milliseconds

1234