Lines Matching refs:rtm
36 struct rtmsg *rtm;
42 rtm = NLMSG_DATA(m->hdr);
44 if ((rtm->rtm_family == AF_INET && prefixlen > 32) ||
45 (rtm->rtm_family == AF_INET6 && prefixlen > 128))
48 rtm->rtm_dst_len = prefixlen;
54 struct rtmsg *rtm;
60 rtm = NLMSG_DATA(m->hdr);
62 if ((rtm->rtm_family == AF_INET && prefixlen > 32) ||
63 (rtm->rtm_family == AF_INET6 && prefixlen > 128))
66 rtm->rtm_src_len = prefixlen;
72 struct rtmsg *rtm;
78 rtm = NLMSG_DATA(m->hdr);
80 rtm->rtm_scope = scope;
86 struct rtmsg *rtm;
92 rtm = NLMSG_DATA(m->hdr);
94 rtm->rtm_flags = flags;
100 struct rtmsg *rtm;
107 rtm = NLMSG_DATA(m->hdr);
109 *flags = rtm->rtm_flags;
115 struct rtmsg *rtm;
122 rtm = NLMSG_DATA(m->hdr);
124 *family = rtm->rtm_family;
130 struct rtmsg *rtm;
137 rtm = NLMSG_DATA(m->hdr);
139 *protocol = rtm->rtm_protocol;
145 struct rtmsg *rtm;
152 rtm = NLMSG_DATA(m->hdr);
154 *scope = rtm->rtm_scope;
160 struct rtmsg *rtm;
167 rtm = NLMSG_DATA(m->hdr);
169 *tos = rtm->rtm_tos;
175 struct rtmsg *rtm;
182 rtm = NLMSG_DATA(m->hdr);
184 *table = rtm->rtm_table;
190 struct rtmsg *rtm;
197 rtm = NLMSG_DATA(m->hdr);
199 *dst_len = rtm->rtm_dst_len;
205 struct rtmsg *rtm;
212 rtm = NLMSG_DATA(m->hdr);
214 *src_len = rtm->rtm_src_len;
222 struct rtmsg *rtm;
237 rtm = NLMSG_DATA((*ret)->hdr);
239 rtm->rtm_family = rtm_family;
240 rtm->rtm_scope = RT_SCOPE_UNIVERSE;
241 rtm->rtm_type = RTN_UNICAST;
242 rtm->rtm_table = RT_TABLE_MAIN;
243 rtm->rtm_protocol = rtm_protocol;
649 struct rtmsg *rtm;
651 rtm = NLMSG_DATA(m->hdr);
653 *family = rtm->rtm_family;