Lines Matching refs:attrtype

540 struct nlattr *nla_find(const struct nlattr *head, int len, int attrtype);
546 struct nlattr *__nla_reserve(struct sk_buff *skb, int attrtype, int attrlen);
547 struct nlattr *__nla_reserve_64bit(struct sk_buff *skb, int attrtype,
550 struct nlattr *nla_reserve(struct sk_buff *skb, int attrtype, int attrlen);
551 struct nlattr *nla_reserve_64bit(struct sk_buff *skb, int attrtype,
554 void __nla_put(struct sk_buff *skb, int attrtype, int attrlen,
556 void __nla_put_64bit(struct sk_buff *skb, int attrtype, int attrlen,
559 int nla_put(struct sk_buff *skb, int attrtype, int attrlen, const void *data);
560 int nla_put_64bit(struct sk_buff *skb, int attrtype, int attrlen,
840 int hdrlen, int attrtype) in nlmsg_find_attr() argument
843 nlmsg_attrlen(nlh, hdrlen), attrtype); in nlmsg_find_attr()
1299 nla_find_nested(const struct nlattr *nla, int attrtype) in nla_find_nested() argument
1301 return nla_find(nla_data(nla), nla_len(nla), attrtype); in nla_find_nested()
1353 static inline int nla_put_u8(struct sk_buff *skb, int attrtype, u8 value) in nla_put_u8() argument
1358 return nla_put(skb, attrtype, sizeof(u8), &tmp); in nla_put_u8()
1367 static inline int nla_put_u16(struct sk_buff *skb, int attrtype, u16 value) in nla_put_u16() argument
1371 return nla_put(skb, attrtype, sizeof(u16), &tmp); in nla_put_u16()
1380 static inline int nla_put_be16(struct sk_buff *skb, int attrtype, __be16 value) in nla_put_be16() argument
1384 return nla_put(skb, attrtype, sizeof(__be16), &tmp); in nla_put_be16()
1393 static inline int nla_put_net16(struct sk_buff *skb, int attrtype, __be16 value) in nla_put_net16() argument
1397 return nla_put_be16(skb, attrtype | NLA_F_NET_BYTEORDER, tmp); in nla_put_net16()
1406 static inline int nla_put_le16(struct sk_buff *skb, int attrtype, __le16 value) in nla_put_le16() argument
1410 return nla_put(skb, attrtype, sizeof(__le16), &tmp); in nla_put_le16()
1419 static inline int nla_put_u32(struct sk_buff *skb, int attrtype, u32 value) in nla_put_u32() argument
1423 return nla_put(skb, attrtype, sizeof(u32), &tmp); in nla_put_u32()
1432 static inline int nla_put_uint(struct sk_buff *skb, int attrtype, u64 value) in nla_put_uint() argument
1438 return nla_put_u32(skb, attrtype, tmp32); in nla_put_uint()
1439 return nla_put(skb, attrtype, sizeof(u64), &tmp64); in nla_put_uint()
1448 static inline int nla_put_be32(struct sk_buff *skb, int attrtype, __be32 value) in nla_put_be32() argument
1452 return nla_put(skb, attrtype, sizeof(__be32), &tmp); in nla_put_be32()
1461 static inline int nla_put_net32(struct sk_buff *skb, int attrtype, __be32 value) in nla_put_net32() argument
1465 return nla_put_be32(skb, attrtype | NLA_F_NET_BYTEORDER, tmp); in nla_put_net32()
1474 static inline int nla_put_le32(struct sk_buff *skb, int attrtype, __le32 value) in nla_put_le32() argument
1478 return nla_put(skb, attrtype, sizeof(__le32), &tmp); in nla_put_le32()
1488 static inline int nla_put_u64_64bit(struct sk_buff *skb, int attrtype, in nla_put_u64_64bit() argument
1493 return nla_put_64bit(skb, attrtype, sizeof(u64), &tmp, padattr); in nla_put_u64_64bit()
1503 static inline int nla_put_be64(struct sk_buff *skb, int attrtype, __be64 value, in nla_put_be64() argument
1508 return nla_put_64bit(skb, attrtype, sizeof(__be64), &tmp, padattr); in nla_put_be64()
1518 static inline int nla_put_net64(struct sk_buff *skb, int attrtype, __be64 value, in nla_put_net64() argument
1523 return nla_put_be64(skb, attrtype | NLA_F_NET_BYTEORDER, tmp, in nla_put_net64()
1534 static inline int nla_put_le64(struct sk_buff *skb, int attrtype, __le64 value, in nla_put_le64() argument
1539 return nla_put_64bit(skb, attrtype, sizeof(__le64), &tmp, padattr); in nla_put_le64()
1548 static inline int nla_put_s8(struct sk_buff *skb, int attrtype, s8 value) in nla_put_s8() argument
1552 return nla_put(skb, attrtype, sizeof(s8), &tmp); in nla_put_s8()
1561 static inline int nla_put_s16(struct sk_buff *skb, int attrtype, s16 value) in nla_put_s16() argument
1565 return nla_put(skb, attrtype, sizeof(s16), &tmp); in nla_put_s16()
1574 static inline int nla_put_s32(struct sk_buff *skb, int attrtype, s32 value) in nla_put_s32() argument
1578 return nla_put(skb, attrtype, sizeof(s32), &tmp); in nla_put_s32()
1588 static inline int nla_put_s64(struct sk_buff *skb, int attrtype, s64 value, in nla_put_s64() argument
1593 return nla_put_64bit(skb, attrtype, sizeof(s64), &tmp, padattr); in nla_put_s64()
1602 static inline int nla_put_sint(struct sk_buff *skb, int attrtype, s64 value) in nla_put_sint() argument
1608 return nla_put_s32(skb, attrtype, tmp32); in nla_put_sint()
1609 return nla_put(skb, attrtype, sizeof(s64), &tmp64); in nla_put_sint()
1618 static inline int nla_put_string(struct sk_buff *skb, int attrtype, in nla_put_string() argument
1621 return nla_put(skb, attrtype, strlen(str) + 1, str); in nla_put_string()
1629 static inline int nla_put_flag(struct sk_buff *skb, int attrtype) in nla_put_flag() argument
1631 return nla_put(skb, attrtype, 0, NULL); in nla_put_flag()
1641 static inline int nla_put_msecs(struct sk_buff *skb, int attrtype, in nla_put_msecs() argument
1646 return nla_put_64bit(skb, attrtype, sizeof(u64), &tmp, padattr); in nla_put_msecs()
1656 static inline int nla_put_in_addr(struct sk_buff *skb, int attrtype, in nla_put_in_addr() argument
1661 return nla_put_be32(skb, attrtype, tmp); in nla_put_in_addr()
1671 static inline int nla_put_in6_addr(struct sk_buff *skb, int attrtype, in nla_put_in6_addr() argument
1674 return nla_put(skb, attrtype, sizeof(*addr), addr); in nla_put_in6_addr()
1684 static inline int nla_put_bitfield32(struct sk_buff *skb, int attrtype, in nla_put_bitfield32() argument
1689 return nla_put(skb, attrtype, sizeof(tmp), &tmp); in nla_put_bitfield32()
2190 int attrtype) in nla_nest_start_noflag() argument
2194 if (nla_put(skb, attrtype, 0, NULL) < 0) in nla_nest_start_noflag()
2210 static inline struct nlattr *nla_nest_start(struct sk_buff *skb, int attrtype) in nla_nest_start() argument
2212 return nla_nest_start_noflag(skb, attrtype | NLA_F_NESTED); in nla_nest_start()
2253 static inline int nla_put_empty_nest(struct sk_buff *skb, int attrtype) in nla_put_empty_nest() argument
2255 return nla_nest_start(skb, attrtype) ? 0 : -EMSGSIZE; in nla_put_empty_nest()