Lines Matching refs:rtm
89 struct rt_msghdr *rtm; in getifaddrs() local
134 for (next = buf; next < buf + needed; next += rtm->rtm_msglen) { in getifaddrs()
135 rtm = (struct rt_msghdr *)(void *)next; in getifaddrs()
136 if (rtm->rtm_version != RTM_VERSION) in getifaddrs()
138 switch (rtm->rtm_type) { in getifaddrs()
140 ifm = (struct if_msghdrl *)(void *)rtm; in getifaddrs()
155 ifam = (struct ifa_msghdrl *)(void *)rtm; in getifaddrs()
217 for (next = buf; next < buf + needed; next += rtm->rtm_msglen) { in getifaddrs()
218 rtm = (struct rt_msghdr *)(void *)next; in getifaddrs()
219 if (rtm->rtm_version != RTM_VERSION) in getifaddrs()
221 switch (rtm->rtm_type) { in getifaddrs()
223 ifm = (struct if_msghdrl *)(void *)rtm; in getifaddrs()
254 ifam = (struct ifa_msghdrl *)(void *)rtm; in getifaddrs()