/linux-6.3-rc2/tools/testing/selftests/net/ |
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() 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() 77 struct rtattr *rta = rtattr_add(nh, type, len); in rtattr_add_any() [all …]
|
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()
|
A D | ipsec.c | 210 static inline struct rtattr *rtattr_hdr(struct nlmsghdr *nh) in rtattr_hdr() 212 return (struct rtattr *)((char *)(nh) + RTA_ALIGN((nh)->nlmsg_len)); in rtattr_hdr() 219 struct rtattr *attr = rtattr_hdr(nh); in rtattr_pack() 235 static struct rtattr *_rtattr_begin(struct nlmsghdr *nh, size_t req_sz, in _rtattr_begin() 238 struct rtattr *ret = rtattr_hdr(nh); in _rtattr_begin() 246 static inline struct rtattr *rtattr_begin(struct nlmsghdr *nh, size_t req_sz, in rtattr_begin() 252 static inline void rtattr_end(struct nlmsghdr *nh, struct rtattr *attr) in rtattr_end() 263 struct rtattr *peer_attr; in veth_pack_peerb() 317 struct rtattr *link_info, *info_data; in veth_add() 1677 struct rtattr *attr = (void *)req.attrbuf; in xfrm_spdinfo_attrs()
|
/linux-6.3-rc2/tools/testing/selftests/bpf/prog_tests/ |
A D | xfrm_info.c | 186 static struct rtattr *rtattr_add(struct nlmsghdr *nh, unsigned short type, in rtattr_add() 189 struct rtattr *rta = in rtattr_add() 190 (struct rtattr *)((uint8_t *)nh + RTA_ALIGN(nh->nlmsg_len)); in rtattr_add() 197 static struct rtattr *rtattr_add_str(struct nlmsghdr *nh, unsigned short type, in rtattr_add_str() 200 struct rtattr *rta = rtattr_add(nh, type, strlen(s)); in rtattr_add_str() 206 static struct rtattr *rtattr_begin(struct nlmsghdr *nh, unsigned short type) in rtattr_begin() 211 static void rtattr_end(struct nlmsghdr *nh, struct rtattr *attr) in rtattr_end() 225 struct rtattr *link_info, *info_data; in setup_xfrmi_external_dev()
|
/linux-6.3-rc2/include/uapi/linux/ |
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)))) 796 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
|
A D | if_addr.h | 69 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
|
/linux-6.3-rc2/include/crypto/ |
A D | algapi.h | 41 struct rtattr; 80 int (*create)(struct crypto_template *tmpl, struct rtattr **tb); 141 struct crypto_attr_type *crypto_get_attr_type(struct rtattr **tb); 142 int crypto_check_attr_type(struct rtattr **tb, u32 type, u32 *mask_ret); 143 const char *crypto_attr_alg_name(struct rtattr *rta);
|
/linux-6.3-rc2/tools/testing/selftests/net/mptcp/ |
A D | pm_nl_ctl.c | 81 struct rtattr *attrs = (struct rtattr *)NLMSG_DATA(nh); in nl_error() 104 struct rtattr *attrs; in capture_events() 239 struct rtattr *attrs; in genl_parse_getfamily() 240 struct rtattr *grps; in genl_parse_getfamily() 241 struct rtattr *grp; in genl_parse_getfamily() 309 struct rtattr *rta; in resolve_mptcp_pm_netlink() 447 struct rtattr *addr; in csf() 448 struct rtattr *rta; in csf() 572 struct rtattr *rta; in remove_addr() 1039 struct rtattr *attrs; in print_addrs() [all …]
|
/linux-6.3-rc2/crypto/ |
A D | algboss.c | 24 struct rtattr *tb[CRYPTO_MAX_ATTRS + 2]; 27 struct rtattr attr; 32 struct rtattr attr;
|
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()
|
A D | ecb.c | 62 static int crypto_ecb_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_ecb_create()
|
A D | ofb.c | 53 static int crypto_ofb_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_ofb_create()
|
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()
|
A D | authenc.c | 49 struct rtattr *rta = (struct rtattr *)key; in crypto_authenc_extractkeys() 371 struct rtattr **tb) in crypto_authenc_create()
|
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()
|
A D | ctr.c | 127 static int crypto_ctr_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_ctr_create() 258 struct rtattr **tb) in crypto_rfc3686_create()
|
A D | pcrypt.c | 232 static int pcrypt_create_aead(struct crypto_template *tmpl, struct rtattr **tb, in pcrypt_create_aead() 291 static int pcrypt_create(struct crypto_template *tmpl, struct rtattr **tb) in pcrypt_create()
|
A D | gcm.c | 575 struct rtattr **tb, in crypto_gcm_create_common() 656 static int crypto_gcm_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_gcm_create() 673 struct rtattr **tb) in crypto_gcm_base_create() 826 struct rtattr **tb) in crypto_rfc4106_create() 1041 struct rtattr **tb) in crypto_rfc4543_create()
|
A D | geniv.c | 42 struct rtattr **tb) in aead_geniv_alloc()
|
A D | echainiv.c | 113 struct rtattr **tb) in echainiv_aead_create()
|
/linux-6.3-rc2/tools/testing/selftests/net/af_unix/ |
A D | diag_uid.c | 120 struct rtattr *attr; in render_response() 126 attr = (struct rtattr *)(udr + 1); in render_response()
|
/linux-6.3-rc2/include/crypto/internal/ |
A D | geniv.h | 23 struct rtattr **tb);
|
A D | skcipher.h | 26 struct rtattr; 242 struct crypto_template *tmpl, struct rtattr **tb);
|
A D | aead.h | 16 struct rtattr;
|
/linux-6.3-rc2/samples/bpf/ |
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()
|