Lines Matching defs:ifm
90 struct if_msghdr *ifm;
104 for (next = buf; next < lim; next += ifm->ifm_msglen) {
105 ifm = (struct if_msghdr *)next;
106 if (ifm->ifm_type == RTM_IFINFO) {
107 sa = (struct sockaddr *)(ifm + 1);
108 get_rtaddrs(ifm->ifm_addrs, sa, rti_info);
368 struct if_msghdr *ifm = (struct if_msghdr *)buf;
370 return ((int)ifm->ifm_index);
384 struct if_msghdr *ifm = (struct if_msghdr *)buf;
386 return (ifm->ifm_flags);
465 struct if_msghdr *ifm = (struct if_msghdr *)buf;
467 return(ifm->ifm_msglen);
511 struct if_msghdr *ifm;
528 for (ifm = (struct if_msghdr *)buf; ifm < (struct if_msghdr *)lim;) {
529 if (ifm->ifm_msglen == 0) {
531 "(buf=%p lim=%p ifm=%p)", __func__,
532 buf, lim, ifm);
536 if (ifm->ifm_type == RTM_IFINFO) {
537 (*ifmlist_p)[ifm->ifm_index] = ifm;
541 "buf:%p, ifm:%p, lim:%p\n",
542 RTM_IFINFO, ifm->ifm_type, ifm->ifm_msglen,
543 buf, ifm, lim);
547 ((char *)ifm + ifm->ifm_msglen);
561 ifm = (struct if_msghdr *)ifam;