]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/net/netlink.h
netfilter: conntrack: add support for DCCP handshake sequence to ctnetlink
[net-next-2.6.git] / include / net / netlink.h
index eddb50289d6d12b8cb8a234c373f8574a0cb5562..007bdb07dabb22f9aabc1e9014a55440de86769b 100644 (file)
@@ -939,6 +939,15 @@ static inline u64 nla_get_u64(const struct nlattr *nla)
        return tmp;
 }
 
+/**
+ * nla_get_be64 - return payload of __be64 attribute
+ * @nla: __be64 netlink attribute
+ */
+static inline __be64 nla_get_be64(const struct nlattr *nla)
+{
+       return *(__be64 *) nla_data(nla);
+}
+
 /**
  * nla_get_flag - return payload of flag attribute
  * @nla: flag netlink attribute