Home
last modified time | relevance | path

Searched refs:rtattr (Results 1 – 25 of 71) sorted by relevance

123

/OK3568_Linux_fs/kernel/tools/testing/selftests/net/mptcp/
H A Dpm_nl_ctl.c67 struct rtattr *attrs = (struct rtattr *)NLMSG_DATA(nh); in nl_error()
122 struct rtattr *attrs; in genl_parse_getfamily()
136 attrs = (struct rtattr *) ((char *) ghdr + GENL_HDRLEN); in genl_parse_getfamily()
153 struct rtattr *rta; in resolve_mptcp_pm_netlink()
177 struct rtattr *rta, *nest; in add_addr()
288 struct rtattr *rta, *nest; in del_addr()
323 static void print_addr(struct rtattr *attrs, int len) in print_addr()
400 struct rtattr *attrs; in print_addrs()
413 attrs = (struct rtattr *) ((char *) NLMSG_DATA(nh) + in print_addrs()
430 struct rtattr *rta, *nest; in get_addr()
[all …]
/OK3568_Linux_fs/kernel/include/crypto/
H A Dalgapi.h27 struct rtattr;
66 int (*create)(struct crypto_template *tmpl, struct rtattr **tb);
118 struct crypto_attr_type *crypto_get_attr_type(struct rtattr **tb);
119 int crypto_check_attr_type(struct rtattr **tb, u32 type, u32 *mask_ret);
120 const char *crypto_attr_alg_name(struct rtattr *rta);
121 int crypto_attr_u32(struct rtattr *rta, u32 *num);
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/
H A Drtnetlink.h174 struct rtattr { struct
183 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \ argument
184 (rta)->rta_len >= sizeof(struct rtattr) && \
187 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))
188 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))
350 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
389 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0)))
593 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
728 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
H A Dif_addr.h67 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
/OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/
H A Drtnetlink.h174 struct rtattr { struct
183 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \ argument
184 (rta)->rta_len >= sizeof(struct rtattr) && \
187 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))
188 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))
350 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
389 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0)))
593 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
728 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
H A Dif_addr.h67 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
/OK3568_Linux_fs/kernel/include/uapi/linux/
H A Drtnetlink.h195 struct rtattr { struct
204 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \ argument
205 (rta)->rta_len >= sizeof(struct rtattr) && \
208 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))
209 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))
375 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
414 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0)))
624 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
765 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
H A Dif_addr.h68 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
/OK3568_Linux_fs/kernel/crypto/
H A Dalgboss.c24 struct rtattr *tb[CRYPTO_MAX_ATTRS + 2];
27 struct rtattr attr;
32 struct rtattr attr;
34 struct rtattr attr;
38 struct rtattr attr;
H A Dccm.c447 struct rtattr **tb, in crypto_ccm_create_common()
531 static int crypto_ccm_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_ccm_create()
553 struct rtattr **tb) in crypto_ccm_base_create()
707 struct rtattr **tb) in crypto_rfc4309_create()
863 static int cbcmac_create(struct crypto_template *tmpl, struct rtattr **tb) in cbcmac_create()
H A Dauthenc.c49 struct rtattr *rta = (struct rtattr *)key; in crypto_authenc_extractkeys()
373 struct rtattr **tb) in crypto_authenc_create()
H A Decb.c62 static int crypto_ecb_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_ecb_create()
H A Dalgapi.c803 struct crypto_attr_type *crypto_get_attr_type(struct rtattr **tb) in crypto_get_attr_type()
805 struct rtattr *rta = tb[0]; in crypto_get_attr_type()
837 int crypto_check_attr_type(struct rtattr **tb, u32 type, u32 *mask_ret) in crypto_check_attr_type()
853 const char *crypto_attr_alg_name(struct rtattr *rta) in crypto_attr_alg_name()
871 int crypto_attr_u32(struct rtattr *rta, u32 *num) in crypto_attr_u32()
H A Dctr.c127 static int crypto_ctr_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_ctr_create()
258 struct rtattr **tb) in crypto_rfc3686_create()
H A Dpcrypt.c232 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()
H A Dofb.c53 static int crypto_ofb_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_ofb_create()
H A Dgcm.c577 struct rtattr **tb, in crypto_gcm_create_common()
658 static int crypto_gcm_create(struct crypto_template *tmpl, struct rtattr **tb) in crypto_gcm_create()
675 struct rtattr **tb) in crypto_gcm_base_create()
828 struct rtattr **tb) in crypto_rfc4106_create()
1043 struct rtattr **tb) in crypto_rfc4543_create()
H A Dchacha20poly1305.c555 static int chachapoly_create(struct crypto_template *tmpl, struct rtattr **tb, in chachapoly_create()
637 static int rfc7539_create(struct crypto_template *tmpl, struct rtattr **tb) in rfc7539_create()
642 static int rfc7539esp_create(struct crypto_template *tmpl, struct rtattr **tb) in rfc7539esp_create()
H A Dgeniv.c42 struct rtattr **tb) in aead_geniv_alloc()
H A Dcryptd.c368 struct rtattr **tb, in cryptd_create_skcipher()
634 static int cryptd_create_hash(struct crypto_template *tmpl, struct rtattr **tb, in cryptd_create_hash()
821 struct rtattr **tb, in cryptd_create_aead()
877 static int cryptd_create(struct crypto_template *tmpl, struct rtattr **tb) in cryptd_create()
/OK3568_Linux_fs/kernel/include/crypto/internal/
H A Dskcipher.h18 struct rtattr;
213 struct crypto_template *tmpl, struct rtattr **tb);
H A Dgeniv.h23 struct rtattr **tb);
H A Daead.h16 struct rtattr;
/OK3568_Linux_fs/kernel/samples/bpf/
H A Dxdp_router_ipv4_user.c126 struct rtattr *rt_attr; in read_route()
165 rt_attr = (struct rtattr *)RTM_RTA(rt_msg); in read_route()
379 struct rtattr *rt_attr; in read_arp()
399 rt_attr = (struct rtattr *)RTM_RTA(rt_msg); in read_arp()
/OK3568_Linux_fs/kernel/tools/testing/selftests/net/
H A Dipsec.c172 static inline struct rtattr *rtattr_hdr(struct nlmsghdr *nh) in rtattr_hdr()
174 return (struct rtattr *)((char *)(nh) + RTA_ALIGN((nh)->nlmsg_len)); in rtattr_hdr()
181 struct rtattr *attr = rtattr_hdr(nh); in rtattr_pack()
197 static struct rtattr *_rtattr_begin(struct nlmsghdr *nh, size_t req_sz, in _rtattr_begin()
200 struct rtattr *ret = rtattr_hdr(nh); in _rtattr_begin()
208 static inline struct rtattr *rtattr_begin(struct nlmsghdr *nh, size_t req_sz, in rtattr_begin()
214 static inline void rtattr_end(struct nlmsghdr *nh, struct rtattr *attr) in rtattr_end()
225 struct rtattr *peer_attr; in veth_pack_peerb()
279 struct rtattr *link_info, *info_data; in veth_add()

123