Searched refs:rtmsg (Results 1 - 17 of 17) sorted by relevance
/external/android-clat/ |
H A D | netlink_msg.h | 24 struct nl_msg *nlmsg_alloc_rtmsg(uint16_t type, uint16_t flags, struct rtmsg *rt);
|
H A D | netlink_msg.c | 16 * netlink_msg.c - send an ifaddrmsg/ifinfomsg/rtmsg via netlink 98 * allocates a netlink message with a struct rtmsg inside of it. returns NULL on failure 101 * rt - rtmsg to copy into the new netlink message 103 struct nl_msg *nlmsg_alloc_rtmsg(uint16_t type, uint16_t flags, struct rtmsg *rt) {
|
/external/libnl/src/ |
H A D | nl-route-get.c | 62 struct rtmsg rmsg = {
|
/external/libnl/lib/route/ |
H A D | route.c | 47 struct rtmsg rhdr = { 177 .co_hdrsize = sizeof(struct rtmsg),
|
H A D | route_obj.c | 913 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...] |
H A D | neightbl.c | 127 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 D | rule.c | 84 struct rtmsg *r; 390 struct rtmsg rtm = { 774 .co_hdrsize = sizeof(struct rtmsg),
|
/external/iproute2/ip/ |
H A D | ip_common.h | 46 static inline int rtm_get_table(struct rtmsg *r, struct rtattr **tb)
|
H A D | iprule.c | 49 struct rtmsg *r = NLMSG_DATA(n); 242 struct rtmsg r; 249 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)); 388 struct rtmsg *r = NLMSG_DATA(n);
|
H A D | iproute.c | 129 struct rtmsg *r = NLMSG_DATA(n); 266 int calc_host_len(struct rtmsg *r) 283 struct rtmsg *r = NLMSG_DATA(n); 670 int parse_nexthops(struct nlmsghdr *n, struct rtmsg *r, int argc, char **argv) 706 struct rtmsg r; 722 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)); 1027 struct rtmsg rtm; 1074 struct rtmsg *r = NLMSG_DATA(n); 1351 struct rtmsg r; 1365 req.n.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg)); [all...] |
H A D | ipaddrlabel.c | 196 struct rtmsg *r = NLMSG_DATA(n);
|
/external/iproute2/include/linux/ |
H A D | rtnetlink.h | 163 struct rtmsg { struct 293 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg)))) 294 #define RTM_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct rtmsg))
|
/external/libnl/include/linux/ |
H A D | rtnetlink.h | 151 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/chromium_org/third_party/usrsctp/usrsctplib/ |
H A D | user_recv_thread.c | 200 struct ifaddrmsg *rtmsg; 238 rtmsg = (struct ifaddrmsg *)NLMSG_DATA(nh); 239 rtatp = (struct rtattr *)IFA_RTA(rtmsg); 242 switch (rtmsg->ifa_family) { 246 sa->sin_family = rtmsg->ifa_family; 249 sctp_handle_ifamsg(nh->nlmsg_type, rtmsg->ifa_index, (struct sockaddr *)sa); 255 sa6->sin6_family = rtmsg->ifa_family; 258 sctp_handle_ifamsg(nh->nlmsg_type, rtmsg->ifa_index, (struct sockaddr *)sa6); 262 SCTPDBG(SCTP_DEBUG_USR, "Address family %d not supported.\n", rtmsg->ifa_family);
|
/external/kernel-headers/original/uapi/linux/ |
H A D | rtnetlink.h | 175 struct rtmsg { struct 305 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg)))) 306 #define RTM_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct rtmsg))
|
/external/dhcpcd/ |
H A D | if-linux.c | 233 struct rtmsg *rtm; 488 struct rtmsg rt; 543 nlm->hdr.nlmsg_len = NLMSG_LENGTH(sizeof(struct rtmsg));
|
/external/dnsmasq/src/ |
H A D | netlink.c | 277 struct rtmsg *rtm = NLMSG_DATA(h);
|
Completed in 289 milliseconds