Home
last modified time | relevance | path

Searched refs:rta (Results 1 – 18 of 18) sorted by relevance

/kernel/linux/linux-5.10/tools/testing/selftests/net/mptcp/
Dpm_nl_ctl.c153 struct rtattr *rta; in resolve_mptcp_pm_netlink() local
161 rta = (void *)(data + off); in resolve_mptcp_pm_netlink()
163 rta->rta_type = CTRL_ATTR_FAMILY_NAME; in resolve_mptcp_pm_netlink()
164 rta->rta_len = RTA_LENGTH(namelen); in resolve_mptcp_pm_netlink()
165 memcpy(RTA_DATA(rta), MPTCP_PM_NAME, namelen); in resolve_mptcp_pm_netlink()
166 off += NLMSG_ALIGN(rta->rta_len); in resolve_mptcp_pm_netlink()
177 struct rtattr *rta, *nest; in add_addr() local
201 rta = (void *)(data + off); in add_addr()
202 if (inet_pton(AF_INET, argv[2], RTA_DATA(rta))) { in add_addr()
204 rta->rta_type = MPTCP_PM_ADDR_ATTR_ADDR4; in add_addr()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/net/
Dudpgso.c362 struct rtattr *rta; in set_route_mtu() local
393 rta = (void *)(data + off); in set_route_mtu()
394 rta->rta_type = RTA_DST; in set_route_mtu()
395 rta->rta_len = RTA_LENGTH(alen); in set_route_mtu()
397 memcpy(RTA_DATA(rta), &addr4, alen); in set_route_mtu()
399 memcpy(RTA_DATA(rta), &addr6, alen); in set_route_mtu()
400 off += NLMSG_ALIGN(rta->rta_len); in set_route_mtu()
402 rta = (void *)(data + off); in set_route_mtu()
403 rta->rta_type = RTA_OIF; in set_route_mtu()
404 rta->rta_len = RTA_LENGTH(sizeof(int)); in set_route_mtu()
[all …]
/kernel/linux/linux-5.10/include/uapi/linux/
Drtnetlink.h204 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \ argument
205 (rta)->rta_len >= sizeof(struct rtattr) && \
206 (rta)->rta_len <= (len))
207 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ argument
208 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))
211 #define RTA_DATA(rta) ((void*)(((char*)(rta)) + RTA_LENGTH(0))) argument
212 #define RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0)) argument
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Drtnetlink.h172 #define RTA_OK(rta,len) ((len) >= (int) sizeof(struct rtattr) && (rta)->rta_len >= sizeof(struct rt… argument
173 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), (struct rtattr *) (((char *)… argument
176 #define RTA_DATA(rta) ((void *) (((char *) (rta)) + RTA_LENGTH(0))) argument
177 #define RTA_PAYLOAD(rta) ((int) ((rta)->rta_len) - RTA_LENGTH(0)) argument
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Drtnetlink.h141 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \ argument
142 (rta)->rta_len >= sizeof(struct rtattr) && \
143 (rta)->rta_len <= (len))
144 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ argument
145 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))
148 #define RTA_DATA(rta) ((void*)(((char*)(rta)) + RTA_LENGTH(0))) argument
149 #define RTA_PAYLOAD(rta) ((int)((rta)->rta_len) - RTA_LENGTH(0)) argument
/kernel/linux/linux-5.10/crypto/
Dalgapi.c805 struct rtattr *rta = tb[0]; in crypto_get_attr_type() local
808 if (!rta) in crypto_get_attr_type()
810 if (RTA_PAYLOAD(rta) < sizeof(*algt)) in crypto_get_attr_type()
812 if (rta->rta_type != CRYPTOA_TYPE) in crypto_get_attr_type()
815 algt = RTA_DATA(rta); in crypto_get_attr_type()
853 const char *crypto_attr_alg_name(struct rtattr *rta) in crypto_attr_alg_name() argument
857 if (!rta) in crypto_attr_alg_name()
859 if (RTA_PAYLOAD(rta) < sizeof(*alga)) in crypto_attr_alg_name()
861 if (rta->rta_type != CRYPTOA_ALG) in crypto_attr_alg_name()
864 alga = RTA_DATA(rta); in crypto_attr_alg_name()
[all …]
Dauthenc.c49 struct rtattr *rta = (struct rtattr *)key; in crypto_authenc_extractkeys() local
52 if (!RTA_OK(rta, keylen)) in crypto_authenc_extractkeys()
54 if (rta->rta_type != CRYPTO_AUTHENC_KEYA_PARAM) in crypto_authenc_extractkeys()
63 if (RTA_PAYLOAD(rta) != sizeof(*param)) in crypto_authenc_extractkeys()
67 param = RTA_DATA(rta); in crypto_authenc_extractkeys()
70 key += rta->rta_len; in crypto_authenc_extractkeys()
71 keylen -= rta->rta_len; in crypto_authenc_extractkeys()
/kernel/linux/linux-5.10/drivers/edac/
Docteon_edac-pci.c43 if (cfg01.s.rta) { in octeon_pci_poll()
45 cfg01.s.rta = 1; /* Reset */ in octeon_pci_poll()
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/
D0003_linux_crypto.patch481 + .key = "\x08\x00" /* rta length */
482 + "\x01\x00" /* rta type */
484 + .key = "\x00\x08" /* rta length */
485 + "\x00\x01" /* rta type */
505 + .key = "\x08\x00" /* rta length */
506 + "\x01\x00" /* rta type */
508 + .key = "\x00\x08" /* rta length */
509 + "\x00\x01" /* rta type */
527 + .key = "\x08\x00" /* rta length */
528 + "\x01\x00" /* rta type */
[all …]
/kernel/linux/linux-5.10/drivers/crypto/marvell/octeontx/
Dotx_cptvf_algs.c842 struct rtattr *rta = (void *)key; in otx_cpt_aead_cbc_aes_sha_setkey() local
845 if (!RTA_OK(rta, keylen)) in otx_cpt_aead_cbc_aes_sha_setkey()
848 if (rta->rta_type != CRYPTO_AUTHENC_KEYA_PARAM) in otx_cpt_aead_cbc_aes_sha_setkey()
851 if (RTA_PAYLOAD(rta) < sizeof(*param)) in otx_cpt_aead_cbc_aes_sha_setkey()
854 param = RTA_DATA(rta); in otx_cpt_aead_cbc_aes_sha_setkey()
856 key += RTA_ALIGN(rta->rta_len); in otx_cpt_aead_cbc_aes_sha_setkey()
857 keylen -= RTA_ALIGN(rta->rta_len); in otx_cpt_aead_cbc_aes_sha_setkey()
900 struct rtattr *rta = (void *)key; in otx_cpt_aead_ecb_null_sha_setkey() local
903 if (!RTA_OK(rta, keylen)) in otx_cpt_aead_ecb_null_sha_setkey()
906 if (rta->rta_type != CRYPTO_AUTHENC_KEYA_PARAM) in otx_cpt_aead_ecb_null_sha_setkey()
[all …]
/kernel/linux/linux-5.10/net/xfrm/
Dxfrm_user.c295 struct nlattr *rta) in attach_one_algo() argument
300 if (!rta) in attach_one_algo()
303 ualg = nla_data(rta); in attach_one_algo()
319 static int attach_crypt(struct xfrm_state *x, struct nlattr *rta) in attach_crypt() argument
324 if (!rta) in attach_crypt()
327 ualg = nla_data(rta); in attach_crypt()
345 struct nlattr *rta) in attach_auth() argument
351 if (!rta) in attach_auth()
354 ualg = nla_data(rta); in attach_auth()
375 struct nlattr *rta) in attach_auth_trunc() argument
[all …]
/kernel/linux/linux-5.10/include/crypto/
Dalgapi.h120 const char *crypto_attr_alg_name(struct rtattr *rta);
121 int crypto_attr_u32(struct rtattr *rta, u32 *num);
/kernel/linux/linux-5.10/net/ipv4/
Desp4.c1055 struct rtattr *rta; in esp_init_authenc() local
1101 rta = (void *)p; in esp_init_authenc()
1102 rta->rta_type = CRYPTO_AUTHENC_KEYA_PARAM; in esp_init_authenc()
1103 rta->rta_len = RTA_LENGTH(sizeof(*param)); in esp_init_authenc()
1104 param = RTA_DATA(rta); in esp_init_authenc()
/kernel/linux/linux-5.10/net/ipv6/
Desp6.c1097 struct rtattr *rta; in esp_init_authenc() local
1143 rta = (void *)p; in esp_init_authenc()
1144 rta->rta_type = CRYPTO_AUTHENC_KEYA_PARAM; in esp_init_authenc()
1145 rta->rta_len = RTA_LENGTH(sizeof(*param)); in esp_init_authenc()
1146 param = RTA_DATA(rta); in esp_init_authenc()
/kernel/linux/linux-5.10/Documentation/RCU/
Dtorture.rst27 …rcu-torture: rtc: (null) ver: 155441 tfle: 0 rta: 155441 rtaf: 8884 rtf: 155440 rtmbe: 0…
56 * "rta": Number of structures allocated from the torture freelist.
61 the value indicated by "rta".
/kernel/linux/linux-5.10/arch/mips/include/asm/octeon/
Dcvmx-pciercx-defs.h60 __BITFIELD_FIELD(uint32_t rta:1,
Dcvmx-pci-defs.h187 uint32_t rta:1; member
229 uint32_t rta:1;
/kernel/linux/linux-5.10/drivers/md/
Ddm-crypt.c2361 struct rtattr *rta; in crypt_copy_authenckey() local
2363 rta = (struct rtattr *)p; in crypt_copy_authenckey()
2364 param = RTA_DATA(rta); in crypt_copy_authenckey()
2366 rta->rta_len = RTA_LENGTH(sizeof(*param)); in crypt_copy_authenckey()
2367 rta->rta_type = CRYPTO_AUTHENC_KEYA_PARAM; in crypt_copy_authenckey()