Home
last modified time | relevance | path

Searched refs:RTA_LENGTH (Results 1 – 15 of 15) sorted by relevance

/openbmc/linux/tools/testing/selftests/net/mptcp/
H A Dpm_nl_ctl.c423 rta->rta_len = RTA_LENGTH(2); in dsf()
431 rta->rta_len = RTA_LENGTH(2); in dsf()
442 rta->rta_len = RTA_LENGTH(4); in dsf()
537 rta->rta_len = RTA_LENGTH(2); in csf()
568 rta->rta_len = RTA_LENGTH(4); in csf()
674 rta->rta_len = RTA_LENGTH(2); in announce_addr()
732 rta->rta_len = RTA_LENGTH(4); in announce_addr()
744 rta->rta_len = RTA_LENGTH(4); in announce_addr()
798 rta->rta_len = RTA_LENGTH(2); in add_addr()
919 rta->rta_len = RTA_LENGTH(1); in del_addr()
[all …]
/openbmc/phosphor-networkd/test/
H A Dtest_rtnetlink.cpp51 msg.addr_hdr.rta_len = RTA_LENGTH(sizeof(msg.addr)); in TEST()
53 msg.name_hdr.rta_len = RTA_LENGTH(sizeof(msg.name)); in TEST()
55 msg.mtu_hdr.rta_len = RTA_LENGTH(sizeof(msg.mtu)); in TEST()
92 msg.addr_hdr.rta_len = RTA_LENGTH(sizeof(msg.addr)); in TEST()
113 msg.flags_hdr.rta_len = RTA_LENGTH(sizeof(msg.flags)); in TEST()
115 msg.addr_hdr.rta_len = RTA_LENGTH(sizeof(msg.addr)); in TEST()
142 msg.addr_hdr.rta_len = RTA_LENGTH(sizeof(msg.addr)); in TEST()
162 msg.addr_hdr.rta_len = RTA_LENGTH(sizeof(msg.addr)); in TEST()
164 msg.mac_hdr.rta_len = RTA_LENGTH(sizeof(msg.mac)); in TEST()
H A Dtest_netlink.cpp245 rta.rta_len = RTA_LENGTH(0) - 1; in TEST()
255 rta.rta_len = RTA_LENGTH(0) + 1; in TEST()
265 rta.rta_len = RTA_LENGTH(0); in TEST()
279 rta.rta_len = RTA_LENGTH(sizeof(attrbuf)); in TEST()
H A Dmock_syscall.cpp83 rta.rta_len = RTA_LENGTH(data.size()); in appendRTAttr()
86 msgBuf.data() + rta_begin + RTA_LENGTH(0)); in appendRTAttr()
/openbmc/linux/tools/testing/selftests/net/
H A Dudpgso.c366 NLMSG_ALIGN(RTA_LENGTH(sizeof(addr6))) + in set_route_mtu()
367 NLMSG_ALIGN(RTA_LENGTH(sizeof(int))) + in set_route_mtu()
368 NLMSG_ALIGN(RTA_LENGTH(0) + RTA_LENGTH(sizeof(int)))]; in set_route_mtu()
395 rta->rta_len = RTA_LENGTH(alen); in set_route_mtu()
404 rta->rta_len = RTA_LENGTH(sizeof(int)); in set_route_mtu()
411 rta->rta_len = RTA_LENGTH(0) + RTA_LENGTH(sizeof(int)); in set_route_mtu()
415 rta = (void *)(((char *) rta) + RTA_LENGTH(0)); in set_route_mtu()
417 rta->rta_len = RTA_LENGTH(sizeof(int)); in set_route_mtu()
H A Dtun.c92 rta->rta_len = RTA_LENGTH(IFNAMSIZ); in tun_delete()
H A Dtap.c39 rta->rta_len = RTA_LENGTH(len); in rtattr_add()
H A Dipsec.c220 size_t nl_size = RTA_ALIGN(nh->nlmsg_len) + RTA_LENGTH(size); in rtattr_pack()
228 attr->rta_len = RTA_LENGTH(size); in rtattr_pack()
/openbmc/phosphor-networkd/src/
H A Dnetlink.cpp186 if (hdr.rta_len < RTA_LENGTH(0)) in extractRtAttr()
189 "rtattr shorter than header: {} < {}", hdr.rta_len, RTA_LENGTH(0))); in extractRtAttr()
197 auto attr = data.substr(RTA_LENGTH(0), hdr.rta_len - RTA_LENGTH(0)); in extractRtAttr()
/openbmc/linux/include/uapi/linux/
H A Drtnetlink.h225 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len)) macro
226 #define RTA_SPACE(len) RTA_ALIGN(RTA_LENGTH(len))
227 #define RTA_DATA(rta) ((void*)(((char*)(rta)) + RTA_LENGTH(0)))
228 #define RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0))
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dxfrm_info.c177 rta->rta_len = RTA_LENGTH(len); in rtattr_add()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dxsk.c408 rta->rta_len = RTA_LENGTH(sizeof(unsigned int)); in xsk_set_mtu()
409 req.nh.nlmsg_len = NLMSG_ALIGN(req.nh.nlmsg_len) + RTA_LENGTH(sizeof(mtu)); in xsk_set_mtu()
/openbmc/linux/net/ipv6/
H A Desp6.c1145 rta->rta_len = RTA_LENGTH(sizeof(*param)); in esp_init_authenc()
/openbmc/linux/net/ipv4/
H A Desp4.c1102 rta->rta_len = RTA_LENGTH(sizeof(*param)); in esp_init_authenc()
/openbmc/linux/drivers/md/
H A Ddm-crypt.c2438 rta->rta_len = RTA_LENGTH(sizeof(*param)); in crypt_copy_authenckey()