• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/include/net/

Lines Matching refs:attrtype

229 extern struct nlattr *	nla_find(struct nlattr *head, int len, int attrtype);
236 extern struct nlattr * __nla_reserve(struct sk_buff *skb, int attrtype,
239 extern struct nlattr * nla_reserve(struct sk_buff *skb, int attrtype,
242 extern void __nla_put(struct sk_buff *skb, int attrtype,
246 extern int nla_put(struct sk_buff *skb, int attrtype,
376 * @attrtype: type of attribute to look for
381 int hdrlen, int attrtype)
384 nlmsg_attrlen(nlh, hdrlen), attrtype);
678 * @attrtype: type of attribute to look for
682 static inline struct nlattr *nla_find_nested(struct nlattr *nla, int attrtype)
684 return nla_find(nla_data(nla), nla_len(nla), attrtype);
705 * @attrtype: attribute type
708 static inline int nla_put_u8(struct sk_buff *skb, int attrtype, u8 value)
710 return nla_put(skb, attrtype, sizeof(u8), &value);
716 * @attrtype: attribute type
719 static inline int nla_put_u16(struct sk_buff *skb, int attrtype, u16 value)
721 return nla_put(skb, attrtype, sizeof(u16), &value);
727 * @attrtype: attribute type
730 static inline int nla_put_u32(struct sk_buff *skb, int attrtype, u32 value)
732 return nla_put(skb, attrtype, sizeof(u32), &value);
738 * @attrtype: attribute type
741 static inline int nla_put_u64(struct sk_buff *skb, int attrtype, u64 value)
743 return nla_put(skb, attrtype, sizeof(u64), &value);
749 * @attrtype: attribute type
752 static inline int nla_put_string(struct sk_buff *skb, int attrtype,
755 return nla_put(skb, attrtype, strlen(str) + 1, str);
761 * @attrtype: attribute type
763 static inline int nla_put_flag(struct sk_buff *skb, int attrtype)
765 return nla_put(skb, attrtype, 0, NULL);
771 * @attrtype: attribute type
774 static inline int nla_put_msecs(struct sk_buff *skb, int attrtype,
778 return nla_put(skb, attrtype, sizeof(u64), &tmp);
781 #define NLA_PUT(skb, attrtype, attrlen, data) \
783 if (nla_put(skb, attrtype, attrlen, data) < 0) \
787 #define NLA_PUT_TYPE(skb, type, attrtype, value) \
790 NLA_PUT(skb, attrtype, sizeof(type), &__tmp); \
793 #define NLA_PUT_U8(skb, attrtype, value) \
794 NLA_PUT_TYPE(skb, u8, attrtype, value)
796 #define NLA_PUT_U16(skb, attrtype, value) \
797 NLA_PUT_TYPE(skb, u16, attrtype, value)
799 #define NLA_PUT_LE16(skb, attrtype, value) \
800 NLA_PUT_TYPE(skb, __le16, attrtype, value)
802 #define NLA_PUT_U32(skb, attrtype, value) \
803 NLA_PUT_TYPE(skb, u32, attrtype, value)
805 #define NLA_PUT_BE32(skb, attrtype, value) \
806 NLA_PUT_TYPE(skb, __be32, attrtype, value)
808 #define NLA_PUT_U64(skb, attrtype, value) \
809 NLA_PUT_TYPE(skb, u64, attrtype, value)
811 #define NLA_PUT_STRING(skb, attrtype, value) \
812 NLA_PUT(skb, attrtype, strlen(value) + 1, value)
814 #define NLA_PUT_FLAG(skb, attrtype) \
815 NLA_PUT(skb, attrtype, 0, NULL)
817 #define NLA_PUT_MSECS(skb, attrtype, jiffies) \
818 NLA_PUT_U64(skb, attrtype, jiffies_to_msecs(jiffies))
903 * @attrtype: attribute type of container
907 static inline struct nlattr *nla_nest_start(struct sk_buff *skb, int attrtype)
911 if (nla_put(skb, attrtype, 0, NULL) < 0)