/openbmc/qemu/linux-user/ |
H A D | fd-trans.c | 448 static abi_long host_to_target_for_each_rtattr(struct rtattr *rtattr, in host_to_target_for_each_rtattr() argument 451 (struct rtattr *)) in host_to_target_for_each_rtattr() 457 while (len > sizeof(struct rtattr)) { in host_to_target_for_each_rtattr() 458 rta_len = rtattr->rta_len; in host_to_target_for_each_rtattr() 459 if (rta_len < sizeof(struct rtattr) || in host_to_target_for_each_rtattr() 463 ret = host_to_target_rtattr(rtattr); in host_to_target_for_each_rtattr() 464 rtattr->rta_len = tswap16(rtattr->rta_len); in host_to_target_for_each_rtattr() 465 rtattr->rta_type = tswap16(rtattr->rta_type); in host_to_target_for_each_rtattr() 475 rtattr = (struct rtattr *)(((char *)rtattr) + aligned_rta_len); in host_to_target_for_each_rtattr() 985 static abi_long host_to_target_data_link_rtattr(struct rtattr *rtattr) in host_to_target_data_link_rtattr() argument [all …]
|
/openbmc/phosphor-networkd/test/ |
H A D | test_rtnetlink.cpp | 39 rtattr addr_hdr __attribute__((aligned((RTA_ALIGNTO)))); in TEST() 42 rtattr name_hdr __attribute__((aligned((RTA_ALIGNTO)))); in TEST() 44 rtattr mtu_hdr __attribute__((aligned((RTA_ALIGNTO)))); in TEST() 83 alignas(NLMSG_ALIGNTO) rtattr addr_hdr; in TEST() 106 alignas(NLMSG_ALIGNTO) rtattr flags_hdr; in TEST() 108 alignas(NLMSG_ALIGNTO) rtattr addr_hdr; in TEST() 136 alignas(NLMSG_ALIGNTO) rtattr addr_hdr; in TEST() 155 alignas(NLMSG_ALIGNTO) rtattr addr_hdr; in TEST() 157 alignas(NLMSG_ALIGNTO) rtattr mac_hdr; in TEST()
|
H A D | test_netlink.cpp | 235 static_assert(sizeof(buf) < sizeof(rtattr)); in TEST() 244 rtattr rta{}; in TEST() 254 rtattr rta{}; in TEST() 264 rtattr rta{}; in TEST() 278 rtattr rta{}; in TEST()
|
/openbmc/linux/tools/testing/selftests/net/ |
H A D | tap.c | 33 static struct rtattr *rtattr_add(struct nlmsghdr *nh, unsigned short type, in rtattr_add() 36 struct rtattr *rta = in rtattr_add() 37 (struct rtattr *)((uint8_t *)nh + RTA_ALIGN(nh->nlmsg_len)); in rtattr_add() 44 static struct rtattr *rtattr_begin(struct nlmsghdr *nh, unsigned short type) in rtattr_begin() 49 static void rtattr_end(struct nlmsghdr *nh, struct rtattr *attr) in rtattr_end() 56 static struct rtattr *rtattr_add_str(struct nlmsghdr *nh, unsigned short type, in rtattr_add_str() 59 struct rtattr *rta = rtattr_add(nh, type, strlen(s)); in rtattr_add_str() 65 static struct rtattr *rtattr_add_strsz(struct nlmsghdr *nh, unsigned short type, in rtattr_add_strsz() 68 struct rtattr *rta = rtattr_add(nh, type, strlen(s) + 1); in rtattr_add_strsz() 74 static struct rtattr *rtattr_add_any(struct nlmsghdr *nh, unsigned short type, in rtattr_add_any() [all …]
|
H A D | tun.c | 74 struct rtattr *rta; in tun_delete() 90 rta = (struct rtattr *)(((char *)&req) + NLMSG_ALIGN(req.nh.nlmsg_len)); in tun_delete()
|
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | xfrm_info.c | 171 static struct rtattr *rtattr_add(struct nlmsghdr *nh, unsigned short type, in rtattr_add() 174 struct rtattr *rta = in rtattr_add() 175 (struct rtattr *)((uint8_t *)nh + RTA_ALIGN(nh->nlmsg_len)); in rtattr_add() 182 static struct rtattr *rtattr_add_str(struct nlmsghdr *nh, unsigned short type, in rtattr_add_str() 185 struct rtattr *rta = rtattr_add(nh, type, strlen(s)); in rtattr_add_str() 191 static struct rtattr *rtattr_begin(struct nlmsghdr *nh, unsigned short type) in rtattr_begin() 196 static void rtattr_end(struct nlmsghdr *nh, struct rtattr *attr) in rtattr_end() 210 struct rtattr *link_info, *info_data; in setup_xfrmi_external_dev()
|
/openbmc/linux/include/uapi/linux/ |
H A D | rtnetlink.h | 211 struct rtattr { struct 220 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \ argument 221 (rta)->rta_len >= sizeof(struct rtattr) && \ 224 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len))) 225 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len)) 397 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg)))) 438 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0))) 649 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg)))) 797 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
|
H A D | if_addr.h | 69 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | netlink_helpers.h | 24 ((struct rtattr *) (((void *) (nmsg)) + NLMSG_ALIGN((nmsg)->nlmsg_len))) 44 struct rtattr *addattr_nest(struct nlmsghdr *n, int maxlen, int type); 45 int addattr_nest_end(struct nlmsghdr *n, struct rtattr *nest);
|
H A D | netlink_helpers.c | 316 struct rtattr *rta; in addattr_l() 346 struct rtattr *addattr_nest(struct nlmsghdr *n, int maxlen, int type) in addattr_nest() 348 struct rtattr *nest = NLMSG_TAIL(n); in addattr_nest() 354 int addattr_nest_end(struct nlmsghdr *n, struct rtattr *nest) in addattr_nest_end()
|
/openbmc/linux/include/crypto/ |
H A D | algapi.h | 52 struct rtattr; 96 int (*create)(struct crypto_template *tmpl, struct rtattr **tb); 165 struct crypto_attr_type *crypto_get_attr_type(struct rtattr **tb); 166 int crypto_check_attr_type(struct rtattr **tb, u32 type, u32 *mask_ret); 167 const char *crypto_attr_alg_name(struct rtattr *rta);
|
/openbmc/linux/tools/testing/selftests/net/mptcp/ |
H A D | pm_nl_ctl.c | 83 struct rtattr *attrs = (struct rtattr *)NLMSG_DATA(nh); in nl_error() 110 struct rtattr *attrs; in capture_events() 151 attrs = (struct rtattr *) ((char *) ghdr + GENL_HDRLEN); in capture_events() 250 struct rtattr *attrs; in genl_parse_getfamily() 251 struct rtattr *grps; in genl_parse_getfamily() 252 struct rtattr *grp; in genl_parse_getfamily() 270 attrs = (struct rtattr *) ((char *) ghdr + GENL_HDRLEN); in genl_parse_getfamily() 320 struct rtattr *rta; in resolve_mptcp_pm_netlink() 344 struct rtattr *rta, *addr; in dsf() 458 struct rtattr *addr; in csf() [all …]
|
/openbmc/openbmc/poky/meta/recipes-core/busybox/busybox/ |
H A D | busybox-1.36.1-no-cbq.patch | 31 static int cbq_print_opt(struct rtattr *opt) 33 struct rtattr *tb[TCA_CBQ_MAX+1]; 34 @@ -322,6 +322,7 @@ static int cbq_print_opt(struct rtattr *
|
/openbmc/linux/crypto/ |
H A D | dh.c | 551 struct crypto_template *tmpl, struct rtattr **tb, in __dh_safe_prime_create() 833 struct rtattr **tb) in dh_ffdhe2048_create() 839 struct rtattr **tb) in dh_ffdhe3072_create() 845 struct rtattr **tb) in dh_ffdhe4096_create() 851 struct rtattr **tb) in dh_ffdhe6144_create() 857 struct rtattr **tb) in dh_ffdhe8192_create()
|
H A D | algboss.c | 24 struct rtattr *tb[CRYPTO_MAX_ATTRS + 2]; 27 struct rtattr attr; 32 struct rtattr attr;
|
H A D | ecb.c | 62 static int crypto_ecb_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_ecb_create()
|
H A D | ccm.c | 446 struct rtattr **tb, in crypto_ccm_create_common() 530 static int crypto_ccm_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_ccm_create() 552 struct rtattr **tb) in crypto_ccm_base_create() 706 struct rtattr **tb) in crypto_rfc4309_create() 862 static int cbcmac_create(struct crypto_template *tmpl, struct rtattr **tb) in cbcmac_create()
|
H A D | hctr2.c | 405 struct rtattr **tb, in hctr2_create_common() 517 static int hctr2_create_base(struct crypto_template *tmpl, struct rtattr **tb) in hctr2_create_base() 533 static int hctr2_create(struct crypto_template *tmpl, struct rtattr **tb) in hctr2_create()
|
H A D | authenc.c | 49 struct rtattr *rta = (struct rtattr *)key; in crypto_authenc_extractkeys() 371 struct rtattr **tb) in crypto_authenc_create()
|
/openbmc/linux/tools/testing/selftests/net/af_unix/ |
H A D | diag_uid.c | 120 struct rtattr *attr; in render_response() 126 attr = (struct rtattr *)(udr + 1); in render_response()
|
/openbmc/linux/include/crypto/internal/ |
H A D | skcipher.h | 26 struct rtattr; 242 struct crypto_template *tmpl, struct rtattr **tb);
|
H A D | geniv.h | 23 struct rtattr **tb);
|
/openbmc/phosphor-networkd/src/ |
H A D | netlink.cpp | 183 std::tuple<rtattr, std::string_view> extractRtAttr(std::string_view& data) in extractRtAttr() 185 const auto& hdr = stdplus::raw::refFrom<rtattr, Aligned>(data); in extractRtAttr()
|
H A D | netlink.hpp | 60 std::tuple<rtattr, std::string_view> extractRtAttr(std::string_view& data);
|
/openbmc/linux/samples/bpf/ |
H A D | xdp_router_ipv4_user.c | 95 struct rtattr *rt_attr; in read_route() 123 rt_attr = (struct rtattr *)RTM_RTA(rt_msg); in read_route() 318 struct rtattr *rt_attr; in read_arp() 335 rt_attr = (struct rtattr *)RTM_RTA(rt_msg); in read_arp()
|