|
@@ -868,20 +868,18 @@ static inline int nla_put_be64(struct sk_buff *skb, int attrtype, __be64 value,
|
|
|
return nla_put_64bit(skb, attrtype, sizeof(__be64), &value, padattr);
|
|
|
}
|
|
|
|
|
|
-static inline int nla_put_be64_32bit(struct sk_buff *skb, int attrtype,
|
|
|
- __be64 value)
|
|
|
-{
|
|
|
- return nla_put(skb, attrtype, sizeof(__be64), &value);
|
|
|
-}
|
|
|
/**
|
|
|
- * nla_put_net64 - Add 64-bit network byte order netlink attribute to a socket buffer
|
|
|
+ * nla_put_net64 - Add 64-bit network byte order nlattr to a skb and align it
|
|
|
* @skb: socket buffer to add attribute to
|
|
|
* @attrtype: attribute type
|
|
|
* @value: numeric value
|
|
|
+ * @padattr: attribute type for the padding
|
|
|
*/
|
|
|
-static inline int nla_put_net64(struct sk_buff *skb, int attrtype, __be64 value)
|
|
|
+static inline int nla_put_net64(struct sk_buff *skb, int attrtype, __be64 value,
|
|
|
+ int padattr)
|
|
|
{
|
|
|
- return nla_put_be64_32bit(skb, attrtype | NLA_F_NET_BYTEORDER, value);
|
|
|
+ return nla_put_be64(skb, attrtype | NLA_F_NET_BYTEORDER, value,
|
|
|
+ padattr);
|
|
|
}
|
|
|
|
|
|
/**
|