/external/strace/ |
rtnl_route.c | 70 const struct rtmsg *const rtmsg = opaque_data; local 72 decode_inet_addr(tcp, addr, len, rtmsg->rtm_family, NULL); 276 struct rtmsg rtmsg = { .rtm_family = family }; local 277 size_t offset = sizeof(rtmsg.rtm_family); 280 PRINT_FIELD_XVAL("{", rtmsg, rtm_family, addrfams, "AF_???"); 283 if (len >= sizeof(rtmsg)) { 285 sizeof(rtmsg) - offset, 286 (char *) &rtmsg + offset)) [all...] |
rtnl_rule.c | 52 const struct rtmsg *const rtmsg = opaque_data; local 54 decode_inet_addr(tcp, addr, len, rtmsg->rtm_family, NULL); 104 * struct rtmsg and struct fib_rule_hdr are essentially 105 * the same structure, use struct rtmsg but treat it as 108 struct rtmsg msg = { .rtm_family = family };
|
/external/strace/tests/ |
nlattr_fib_rule_hdr.c | 53 struct rtmsg *const msg = NLMSG_DATA(nlh); 54 SET_STRUCT(struct rtmsg, msg, 82 const unsigned int hdrlen = sizeof(struct rtmsg);
|
nlattr_rtmsg.c | 50 struct rtmsg *const msg = NLMSG_DATA(nlh); 51 SET_STRUCT(struct rtmsg, msg, 83 const unsigned int hdrlen = sizeof(struct rtmsg);
|
/external/strace/tests-m32/ |
nlattr_fib_rule_hdr.c | 53 struct rtmsg *const msg = NLMSG_DATA(nlh); 54 SET_STRUCT(struct rtmsg, msg, 82 const unsigned int hdrlen = sizeof(struct rtmsg);
|
nlattr_rtmsg.c | 50 struct rtmsg *const msg = NLMSG_DATA(nlh); 51 SET_STRUCT(struct rtmsg, msg, 83 const unsigned int hdrlen = sizeof(struct rtmsg);
|
/external/strace/tests-mx32/ |
nlattr_fib_rule_hdr.c | 53 struct rtmsg *const msg = NLMSG_DATA(nlh); 54 SET_STRUCT(struct rtmsg, msg, 82 const unsigned int hdrlen = sizeof(struct rtmsg);
|
nlattr_rtmsg.c | 50 struct rtmsg *const msg = NLMSG_DATA(nlh); 51 SET_STRUCT(struct rtmsg, msg, 83 const unsigned int hdrlen = sizeof(struct rtmsg);
|
/external/android-clat/ |
netlink_msg.h | 24 struct nl_msg *nlmsg_alloc_rtmsg(uint16_t type, uint16_t flags, struct rtmsg *rt);
|
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) {
|
/kernel/tests/net/test/ |
iproute.py | 95 RTMsg = cstruct.Struct( 96 "RTMsg", "=BBBBBBBBI", 380 # Create a struct rtmsg specifying the table and the given match attributes. 382 rtmsg = RTMsg((family, 0, 0, 0, RT_TABLE_UNSPEC, 384 rtmsg += self._NlAttrU32(FRA_PRIORITY, priority) 386 rtmsg += match_nlattr 388 rtmsg += self._NlAttrU32(FRA_TABLE, table) 390 # Create a netlink request containing the rtmsg. 392 self._SendNlRequest(command, rtmsg) [all...] |
/system/netd/server/ |
NetlinkCommands.cpp | 183 // struct fib_rule_hdr and struct rtmsg are functionally identical. 184 rtmsg rule = { 205 rtmsg *msg = reinterpret_cast<rtmsg *>(NLMSG_DATA(nlh));
|
RouteControllerTest.cpp | 58 rtmsg rtm = { .rtm_family = static_cast<uint8_t>(family) };
|
/external/libnl/src/ |
nl-route-get.c | 62 struct rtmsg rmsg = {
|
/device/generic/goldfish/wifi/ipv6proxy/ |
router.cpp | 87 struct rtmsg msg; 115 struct rtmsg msg;
|
/external/libnl/lib/route/ |
route.c | 47 struct rtmsg rhdr = { 182 .co_hdrsize = sizeof(struct rtmsg),
|
route_obj.c | 1009 struct rtmsg *rtm; 1024 err = nlmsg_parse(nlh, sizeof(struct rtmsg), tb, RTA_MAX, route_policy); 1184 struct rtmsg rtmsg = { local 1197 rtmsg.rtm_dst_len = nl_addr_get_prefixlen(route->rt_dst); 1199 rtmsg.rtm_src_len = nl_addr_get_prefixlen(route->rt_src); 1202 rtmsg.rtm_scope = rtnl_route_guess_scope(route); 1207 rtmsg.rtm_flags |= nh->rtnh_flags; 1210 if (nlmsg_append(msg, &rtmsg, sizeof(rtmsg), NLMSG_ALIGNTO) < 0 [all...] |
/external/libnl/include/linux-private/linux/ |
rtnetlink.h | 163 struct rtmsg { struct 291 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg)))) 292 #define RTM_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct rtmsg))
|
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/sysroot/usr/include/linux/ |
rtnetlink.h | 163 struct rtmsg { struct 291 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg)))) 292 #define RTM_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct rtmsg))
|
/device/generic/goldfish/dhcp/client/ |
router.cpp | 66 struct rtmsg msg;
|
/hardware/qcom/data/ipacfg-mgr/msm8998/ipacm/inc/ |
IPACM_Netlink.h | 174 struct rtmsg metainfo; /* from header */
|
/bionic/libc/kernel/uapi/linux/ |
rtnetlink.h | 154 struct rtmsg { struct 249 #define RTM_RTA(r) ((struct rtattr *) (((char *) (r)) + NLMSG_ALIGN(sizeof(struct rtmsg)))) 250 #define RTM_PAYLOAD(n) NLMSG_PAYLOAD(n, sizeof(struct rtmsg))
|
/external/iproute2/include/uapi/linux/ |
rtnetlink.h | 193 struct rtmsg { struct 335 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg)))) 336 #define RTM_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct rtmsg))
|
/external/kernel-headers/original/uapi/linux/ |
rtnetlink.h | 193 struct rtmsg { struct 335 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg)))) 336 #define RTM_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct rtmsg))
|
/external/iproute2/ip/ |
ip_common.h | 100 static inline int rtm_get_table(struct rtmsg *r, struct rtattr **tb)
|