Lines Matching refs:nlattr

89  *   struct nlattr			netlink attribute header
329 int (*validate)(const struct nlattr *attr,
501 int __nla_validate(const struct nlattr *head, int len, int maxtype,
504 int __nla_parse(struct nlattr **tb, int maxtype, const struct nlattr *head,
508 struct nlattr *nla_find(const struct nlattr *head, int len, int attrtype);
509 size_t nla_strlcpy(char *dst, const struct nlattr *nla, size_t dstsize);
510 char *nla_strdup(const struct nlattr *nla, gfp_t flags);
511 int nla_memcpy(void *dest, const struct nlattr *src, int count);
512 int nla_memcmp(const struct nlattr *nla, const void *data, size_t size);
513 int nla_strcmp(const struct nlattr *nla, const char *str);
514 struct nlattr *__nla_reserve(struct sk_buff *skb, int attrtype, int attrlen);
515 struct nlattr *__nla_reserve_64bit(struct sk_buff *skb, int attrtype,
518 struct nlattr *nla_reserve(struct sk_buff *skb, int attrtype, int attrlen);
519 struct nlattr *nla_reserve_64bit(struct sk_buff *skb, int attrtype,
587 static inline struct nlattr *nlmsg_attrdata(const struct nlmsghdr *nlh,
591 return (struct nlattr *) (data + NLMSG_ALIGN(hdrlen));
650 static inline int nla_parse(struct nlattr **tb, int maxtype,
651 const struct nlattr *head, int len,
675 static inline int nla_parse_deprecated(struct nlattr **tb, int maxtype,
676 const struct nlattr *head, int len,
700 static inline int nla_parse_deprecated_strict(struct nlattr **tb, int maxtype,
701 const struct nlattr *head,
723 struct nlattr *tb[], int maxtype,
749 struct nlattr *tb[], int maxtype,
768 struct nlattr *tb[], int maxtype,
788 struct nlattr *tb[], int maxtype,
804 static inline struct nlattr *nlmsg_find_attr(const struct nlmsghdr *nlh,
826 static inline int nla_validate_deprecated(const struct nlattr *head, int len,
849 static inline int nla_validate(const struct nlattr *head, int len, int maxtype,
1128 static inline int nla_type(const struct nlattr *nla)
1137 static inline void *nla_data(const struct nlattr *nla)
1146 static inline int nla_len(const struct nlattr *nla)
1156 static inline int nla_ok(const struct nlattr *nla, int remaining)
1171 static inline struct nlattr *nla_next(const struct nlattr *nla, int *remaining)
1176 return (struct nlattr *) ((char *) nla + totlen);
1186 static inline struct nlattr *
1187 nla_find_nested(const struct nlattr *nla, int attrtype)
1202 static inline int nla_parse_nested(struct nlattr *tb[], int maxtype,
1203 const struct nlattr *nla,
1226 static inline int nla_parse_nested_deprecated(struct nlattr *tb[], int maxtype,
1227 const struct nlattr *nla,
1384 * nla_put_net64 - Add 64-bit network byte order nlattr to a skb and align it
1552 static inline u32 nla_get_u32(const struct nlattr *nla)
1561 static inline __be32 nla_get_be32(const struct nlattr *nla)
1570 static inline __le32 nla_get_le32(const struct nlattr *nla)
1579 static inline u16 nla_get_u16(const struct nlattr *nla)
1588 static inline __be16 nla_get_be16(const struct nlattr *nla)
1597 static inline __le16 nla_get_le16(const struct nlattr *nla)
1606 static inline u8 nla_get_u8(const struct nlattr *nla)
1615 static inline u64 nla_get_u64(const struct nlattr *nla)
1628 static inline __be64 nla_get_be64(const struct nlattr *nla)
1641 static inline __le64 nla_get_le64(const struct nlattr *nla)
1650 static inline s32 nla_get_s32(const struct nlattr *nla)
1659 static inline s16 nla_get_s16(const struct nlattr *nla)
1668 static inline s8 nla_get_s8(const struct nlattr *nla)
1677 static inline s64 nla_get_s64(const struct nlattr *nla)
1690 static inline int nla_get_flag(const struct nlattr *nla)
1701 static inline unsigned long nla_get_msecs(const struct nlattr *nla)
1712 static inline __be32 nla_get_in_addr(const struct nlattr *nla)
1721 static inline struct in6_addr nla_get_in6_addr(const struct nlattr *nla)
1733 static inline struct nla_bitfield32 nla_get_bitfield32(const struct nlattr *nla)
1746 static inline void *nla_memdup(const struct nlattr *src, gfp_t gfp)
1762 static inline struct nlattr *nla_nest_start_noflag(struct sk_buff *skb,
1765 struct nlattr *start = (struct nlattr *)skb_tail_pointer(skb);
1783 static inline struct nlattr *nla_nest_start(struct sk_buff *skb, int attrtype)
1798 static inline int nla_nest_end(struct sk_buff *skb, struct nlattr *start)
1812 static inline void nla_nest_cancel(struct sk_buff *skb, struct nlattr *start)
1831 static inline int __nla_validate_nested(const struct nlattr *start, int maxtype,
1841 nla_validate_nested(const struct nlattr *start, int maxtype,
1850 nla_validate_nested_deprecated(const struct nlattr *start, int maxtype,
1868 /* The nlattr header is 4 bytes in size, that's why we test
1870 * nlattr header for next attribute, will make nla_data()
1939 static inline bool nla_is_last(const struct nlattr *nla, int rem)