Lines Matching refs:rtm
174 struct rtmsg *rtm; in fill_route() local
177 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*rtm), 0); in fill_route()
181 rtm = nlmsg_data(nlh); in fill_route()
182 rtm->rtm_family = AF_PHONET; in fill_route()
183 rtm->rtm_dst_len = 6; in fill_route()
184 rtm->rtm_src_len = 0; in fill_route()
185 rtm->rtm_tos = 0; in fill_route()
186 rtm->rtm_table = RT_TABLE_MAIN; in fill_route()
187 rtm->rtm_protocol = RTPROT_STATIC; in fill_route()
188 rtm->rtm_scope = RT_SCOPE_UNIVERSE; in fill_route()
189 rtm->rtm_type = RTN_UNICAST; in fill_route()
190 rtm->rtm_flags = 0; in fill_route()
234 struct rtmsg *rtm; in route_doit() local
246 err = nlmsg_parse(nlh, sizeof(*rtm), tb, RTA_MAX, rtm_phonet_policy); in route_doit()
250 rtm = nlmsg_data(nlh); in route_doit()
251 if (rtm->rtm_table != RT_TABLE_MAIN || rtm->rtm_type != RTN_UNICAST) in route_doit()