Lines Matching refs:rtm
94 mib_sroute_process(struct rt_msghdr *rtm, struct sockaddr *gw, in mib_sroute_process() argument
111 if (rtm->rtm_flags & RTF_HOST) in mib_sroute_process()
140 if (rtm->rtm_type == RTM_DELETE) { in mib_sroute_process()
171 if ((ifp = mib_find_if_sys(rtm->rtm_index)) == NULL) { in mib_sroute_process()
172 if (rtm->rtm_type == RTM_ADD) { in mib_sroute_process()
174 mib_send_rtmsg(rtm, gw, dst, mask); in mib_sroute_process()
188 r->type = (rtm->rtm_flags & RTF_REJECT) ? 2 : 4; in mib_sroute_process()
191 r->proto = (rtm->rtm_flags & RTF_LOCAL) ? 2 : in mib_sroute_process()
192 (rtm->rtm_flags & RTF_STATIC) ? 3 : in mib_sroute_process()
193 (rtm->rtm_flags & RTF_DYNAMIC) ? 4 : 10; in mib_sroute_process()
231 struct rt_msghdr *rtm; in mib_fetch_route() local
253 for (next = rtab; next < rtab + len; next += rtm->rtm_msglen) { in mib_fetch_route()
254 rtm = (struct rt_msghdr *)(void *)next; in mib_fetch_route()
255 if (rtm->rtm_type != RTM_GET || in mib_fetch_route()
256 !(rtm->rtm_flags & RTF_UP)) in mib_fetch_route()
258 mib_extract_addrs(rtm->rtm_addrs, (u_char *)(rtm + 1), addrs); in mib_fetch_route()
261 mib_sroute_process(rtm, addrs[RTAX_GATEWAY], addrs[RTAX_DST], in mib_fetch_route()