Home
last modified time | relevance | path

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

12

/linux-3.4.99/include/linux/
Drtnetlink.h137 struct rtattr { struct
146 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \ argument
147 (rta)->rta_len >= sizeof(struct rtattr) && \
150 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))
151 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))
291 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
325 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0)))
492 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
600 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
615 static __inline__ int rtattr_strcmp(const struct rtattr *rta, const char *str) in rtattr_strcmp()
[all …]
Dif_addr.h57 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
Dif_link.h149 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
/linux-3.4.99/include/crypto/
Dalgapi.h21 struct rtattr;
53 struct crypto_instance *(*alloc)(struct rtattr **tb);
55 int (*create)(struct crypto_template *tmpl, struct rtattr **tb);
156 struct crypto_attr_type *crypto_get_attr_type(struct rtattr **tb);
157 int crypto_check_attr_type(struct rtattr **tb, u32 type);
158 const char *crypto_attr_alg_name(struct rtattr *rta);
159 struct crypto_alg *crypto_attr_alg2(struct rtattr *rta,
163 static inline struct crypto_alg *crypto_attr_alg(struct rtattr *rta, in crypto_attr_alg()
169 int crypto_attr_u32(struct rtattr *rta, u32 *num);
374 static inline struct crypto_alg *crypto_get_attr_alg(struct rtattr **tb, in crypto_get_attr_alg()
/linux-3.4.99/crypto/
Dalgboss.c28 struct rtattr *tb[CRYPTO_MAX_ATTRS + 2];
31 struct rtattr attr;
36 struct rtattr attr;
38 struct rtattr attr;
42 struct rtattr attr;
Dseqiv.c261 static struct crypto_instance *seqiv_ablkcipher_alloc(struct rtattr **tb) in seqiv_ablkcipher_alloc()
281 static struct crypto_instance *seqiv_aead_alloc(struct rtattr **tb) in seqiv_aead_alloc()
301 static struct crypto_instance *seqiv_alloc(struct rtattr **tb) in seqiv_alloc()
Dalgapi.c714 struct crypto_attr_type *crypto_get_attr_type(struct rtattr **tb) in crypto_get_attr_type()
716 struct rtattr *rta = tb[0]; in crypto_get_attr_type()
732 int crypto_check_attr_type(struct rtattr **tb, u32 type) in crypto_check_attr_type()
747 const char *crypto_attr_alg_name(struct rtattr *rta) in crypto_attr_alg_name()
765 struct crypto_alg *crypto_attr_alg2(struct rtattr *rta, in crypto_attr_alg2()
781 int crypto_attr_u32(struct rtattr *rta, u32 *num) in crypto_attr_u32()
Daead.c273 struct rtattr **tb, u32 type, in aead_geniv_alloc()
400 struct rtattr *tb[3]; in crypto_nivaead_default()
402 struct rtattr attr; in crypto_nivaead_default()
406 struct rtattr attr; in crypto_nivaead_default()
Dccm.c475 static struct crypto_instance *crypto_ccm_alloc_common(struct rtattr **tb, in crypto_ccm_alloc_common()
575 static struct crypto_instance *crypto_ccm_alloc(struct rtattr **tb) in crypto_ccm_alloc()
614 static struct crypto_instance *crypto_ccm_base_alloc(struct rtattr **tb) in crypto_ccm_base_alloc()
754 static struct crypto_instance *crypto_rfc4309_alloc(struct rtattr **tb) in crypto_rfc4309_alloc()
Dctr.c175 static struct crypto_instance *crypto_ctr_alloc(struct rtattr **tb) in crypto_ctr_alloc()
325 static struct crypto_instance *crypto_rfc3686_alloc(struct rtattr **tb) in crypto_rfc3686_alloc()
Dcryptd.c318 struct rtattr **tb, in cryptd_create_blkcipher()
573 static int cryptd_create_hash(struct crypto_template *tmpl, struct rtattr **tb, in cryptd_create_hash()
716 struct rtattr **tb, in cryptd_create_aead()
770 static int cryptd_create(struct crypto_template *tmpl, struct rtattr **tb) in cryptd_create()
Dablkcipher.c536 struct rtattr *tb[3]; in crypto_givcipher_default()
538 struct rtattr attr; in crypto_givcipher_default()
542 struct rtattr attr; in crypto_givcipher_default()
Dgcm.c691 static struct crypto_instance *crypto_gcm_alloc_common(struct rtattr **tb, in crypto_gcm_alloc_common()
789 static struct crypto_instance *crypto_gcm_alloc(struct rtattr **tb) in crypto_gcm_alloc()
828 static struct crypto_instance *crypto_gcm_base_alloc(struct rtattr **tb) in crypto_gcm_base_alloc()
965 static struct crypto_instance *crypto_rfc4106_alloc(struct rtattr **tb) in crypto_rfc4106_alloc()
1226 static struct crypto_instance *crypto_rfc4543_alloc(struct rtattr **tb) in crypto_rfc4543_alloc()
Decb.c118 static struct crypto_instance *crypto_ecb_alloc(struct rtattr **tb) in crypto_ecb_alloc()
Dpcrypt.c347 static struct crypto_instance *pcrypt_alloc_aead(struct rtattr **tb, in pcrypt_alloc_aead()
384 static struct crypto_instance *pcrypt_alloc(struct rtattr **tb) in pcrypt_alloc()
Deseqiv.c206 static struct crypto_instance *eseqiv_alloc(struct rtattr **tb) in eseqiv_alloc()
Dxcbc.c199 static int xcbc_create(struct crypto_template *tmpl, struct rtattr **tb) in xcbc_create()
Dhmac.c184 static int hmac_create(struct crypto_template *tmpl, struct rtattr **tb) in hmac_create()
/linux-3.4.99/include/crypto/internal/
Daead.h20 struct rtattr;
59 struct rtattr **tb, u32 type,
Dskcipher.h20 struct rtattr;
63 struct rtattr **tb, u32 type,
Dhash.h82 struct hash_alg_common *ahash_attr_alg(struct rtattr *rta, u32 type, u32 mask);
99 struct shash_alg *shash_attr_alg(struct rtattr *rta, u32 type, u32 mask);
/linux-3.4.99/include/net/
Ddn_fib.h15 struct rtattr *rta_mx;
16 struct rtattr *rta_mp;
125 extern __le16 dn_fib_get_attr16(struct rtattr *attr, int attrlen, int type);
/linux-3.4.99/net/decnet/
Ddn_fib.c148 __le16 dn_fib_get_attr16(struct rtattr *attr, int attrlen, int type) in dn_fib_get_attr16()
159 static int dn_fib_count_nhs(struct rtattr *rta) in dn_fib_count_nhs()
175 static int dn_fib_get_nhs(struct dn_fib_info *fi, const struct rtattr *rta, const struct rtmsg *r) in dn_fib_get_nhs()
302 struct rtattr *attr = RTA_DATA(rta->rta_mx); in dn_fib_create_info()
490 static int dn_fib_check_attr(struct rtmsg *r, struct rtattr **rta) in dn_fib_check_attr()
495 struct rtattr *attr = rta[i-1]; in dn_fib_check_attr()
501 rta[i-1] = (struct rtattr *)RTA_DATA(attr); in dn_fib_check_attr()
512 struct rtattr **rta = arg; in dn_fib_rtm_delroute()
532 struct rtattr **rta = arg; in dn_fib_rtm_newroute()
/linux-3.4.99/arch/x86/crypto/
Dfpu.c101 static struct crypto_instance *crypto_fpu_alloc(struct rtattr **tb) in crypto_fpu_alloc()
/linux-3.4.99/net/core/
Drtnetlink.c544 struct rtattr *rta; in __rta_fill()
547 rta = (struct rtattr *)skb_put(skb, RTA_ALIGN(size)); in __rta_fill()
1995 static struct rtattr **rta_buf;
2053 memset(rta_buf, 0, (rtattr_max * sizeof(struct rtattr *))); in rtnetlink_rcv_msg()
2061 struct rtattr *attr = (void *)nlh + NLMSG_ALIGN(min_len); in rtnetlink_rcv_msg()
2148 rta_buf = kmalloc(rtattr_max * sizeof(struct rtattr *), GFP_KERNEL); in rtnetlink_init()

12