Searched defs:rtmsg (Results 1 - 5 of 5) sorted by relevance

/external/libnl/lib/route/
H A Dneightbl.c127 struct rtgenmsg *rtmsg; local
137 rtmsg = nlmsg_data(n);
139 err = nlmsg_parse(n, sizeof(*rtmsg), tb, NDTA_MAX, neightbl_policy);
143 ntbl->nt_family = rtmsg->rtgen_family;
H A Droute_obj.c913 struct rtmsg *rtm;
928 err = nlmsg_parse(nlh, sizeof(struct rtmsg), tb, RTA_MAX, route_policy);
1083 struct rtmsg rtmsg = { local
1096 rtmsg.rtm_dst_len = nl_addr_get_prefixlen(route->rt_dst);
1098 rtmsg.rtm_src_len = nl_addr_get_prefixlen(route->rt_src);
1101 if (rtmsg.rtm_scope == RT_SCOPE_NOWHERE)
1102 rtmsg.rtm_scope = rtnl_route_guess_scope(route);
1104 if (nlmsg_append(msg, &rtmsg, sizeof(rtmsg), NLMSG_ALIGNT
[all...]
/external/libnl/include/linux/
H A Drtnetlink.h151 struct rtmsg struct
282 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
283 #define RTM_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct rtmsg))
/external/iproute2/include/linux/
H A Drtnetlink.h182 struct rtmsg { struct
321 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
322 #define RTM_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct rtmsg))
/external/kernel-headers/original/uapi/linux/
H A Drtnetlink.h182 struct rtmsg { struct
319 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
320 #define RTM_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct rtmsg))

Completed in 148 milliseconds