Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 300403
b: refs/heads/master
c: 24c410d
h: refs/heads/master
i:
  300401: 6f09ece
  300399: cc76b3d
v: v3
  • Loading branch information
David S. Miller committed Apr 2, 2012
1 parent 7b3886a commit 27d80d1
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a6574349d068cb393ae547ee556e682e5fdb2ff3
refs/heads/master: 24c410dce335dba6ad9f1abab833fa4cd32f7f7f
33 changes: 33 additions & 0 deletions trunk/include/net/netlink.h
Original file line number Diff line number Diff line change
Expand Up @@ -793,6 +793,17 @@ static inline int nla_put_net16(struct sk_buff *skb, int attrtype, __be16 value)
return nla_put_be16(skb, attrtype | NLA_F_NET_BYTEORDER, value);
}

/**
* nla_put_le16 - Add a __le16 netlink attribute to a socket buffer
* @skb: socket buffer to add attribute to
* @attrtype: attribute type
* @value: numeric value
*/
static inline int nla_put_le16(struct sk_buff *skb, int attrtype, __le16 value)
{
return nla_put(skb, attrtype, sizeof(__le16), &value);
}

/**
* nla_put_u32 - Add a u32 netlink attribute to a socket buffer
* @skb: socket buffer to add attribute to
Expand Down Expand Up @@ -826,6 +837,17 @@ static inline int nla_put_net32(struct sk_buff *skb, int attrtype, __be32 value)
return nla_put_be32(skb, attrtype | NLA_F_NET_BYTEORDER, value);
}

/**
* nla_put_le32 - Add a __le32 netlink attribute to a socket buffer
* @skb: socket buffer to add attribute to
* @attrtype: attribute type
* @value: numeric value
*/
static inline int nla_put_le32(struct sk_buff *skb, int attrtype, __le32 value)
{
return nla_put(skb, attrtype, sizeof(__le32), &value);
}

/**
* nla_put_u64 - Add a u64 netlink attribute to a socket buffer
* @skb: socket buffer to add attribute to
Expand Down Expand Up @@ -859,6 +881,17 @@ static inline int nla_put_net64(struct sk_buff *skb, int attrtype, __be64 value)
return nla_put_be64(skb, attrtype | NLA_F_NET_BYTEORDER, value);
}

/**
* nla_put_le64 - Add a __le64 netlink attribute to a socket buffer
* @skb: socket buffer to add attribute to
* @attrtype: attribute type
* @value: numeric value
*/
static inline int nla_put_le64(struct sk_buff *skb, int attrtype, __le64 value)
{
return nla_put(skb, attrtype, sizeof(__le64), &value);
}

/**
* nla_put_string - Add a string netlink attribute to a socket buffer
* @skb: socket buffer to add attribute to
Expand Down

0 comments on commit 27d80d1

Please sign in to comment.