Lines Matching defs:rtm
163 struct rtmsg *rtm;
166 nlh = nlmsg_put(skb, portid, seq, event, sizeof(*rtm), 0);
170 rtm = nlmsg_data(nlh);
171 rtm->rtm_family = AF_PHONET;
172 rtm->rtm_dst_len = 6;
173 rtm->rtm_src_len = 0;
174 rtm->rtm_tos = 0;
175 rtm->rtm_table = RT_TABLE_MAIN;
176 rtm->rtm_protocol = RTPROT_STATIC;
177 rtm->rtm_scope = RT_SCOPE_UNIVERSE;
178 rtm->rtm_type = RTN_UNICAST;
179 rtm->rtm_flags = 0;
224 struct rtmsg *rtm;
236 err = nlmsg_parse_deprecated(nlh, sizeof(*rtm), tb, RTA_MAX,
241 rtm = nlmsg_data(nlh);
242 if (rtm->rtm_table != RT_TABLE_MAIN || rtm->rtm_type != RTN_UNICAST)