diff options
author | David S. Miller <davem@davemloft.net> | 2011-02-02 18:24:48 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-02 18:24:48 -0500 |
commit | 8fe73503fae8cb8f00c80dd6444c1ddcd19257bd (patch) | |
tree | 39cc6d38a628c445da7d52c006df6930a2c58411 /include/net | |
parent | 123b9731b14f49cd41c91ed2b6c31e515615347c (diff) | |
parent | 9291747f118d6404e509747b85ff5f6dfec368d2 (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/kaber/nf-next-2.6
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/ip_vs.h | 2 | ||||
-rw-r--r-- | include/net/netlink.h | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index b23bea62f70..5d75feadf4f 100644 --- a/include/net/ip_vs.h +++ b/include/net/ip_vs.h | |||
@@ -1109,8 +1109,6 @@ extern int ip_vs_icmp_xmit_v6 | |||
1109 | * we are loaded. Just set ip_vs_drop_rate to 'n' and | 1109 | * we are loaded. Just set ip_vs_drop_rate to 'n' and |
1110 | * we start to drop 1/rate of the packets | 1110 | * we start to drop 1/rate of the packets |
1111 | */ | 1111 | */ |
1112 | extern int ip_vs_drop_rate; | ||
1113 | extern int ip_vs_drop_counter; | ||
1114 | 1112 | ||
1115 | static inline int ip_vs_todrop(struct netns_ipvs *ipvs) | 1113 | static inline int ip_vs_todrop(struct netns_ipvs *ipvs) |
1116 | { | 1114 | { |
diff --git a/include/net/netlink.h b/include/net/netlink.h index 373f1a900cf..8a3906a08f5 100644 --- a/include/net/netlink.h +++ b/include/net/netlink.h | |||
@@ -856,18 +856,27 @@ static inline int nla_put_msecs(struct sk_buff *skb, int attrtype, | |||
856 | #define NLA_PUT_BE16(skb, attrtype, value) \ | 856 | #define NLA_PUT_BE16(skb, attrtype, value) \ |
857 | NLA_PUT_TYPE(skb, __be16, attrtype, value) | 857 | NLA_PUT_TYPE(skb, __be16, attrtype, value) |
858 | 858 | ||
859 | #define NLA_PUT_NET16(skb, attrtype, value) \ | ||
860 | NLA_PUT_BE16(skb, attrtype | NLA_F_NET_BYTEORDER, value) | ||
861 | |||
859 | #define NLA_PUT_U32(skb, attrtype, value) \ | 862 | #define NLA_PUT_U32(skb, attrtype, value) \ |
860 | NLA_PUT_TYPE(skb, u32, attrtype, value) | 863 | NLA_PUT_TYPE(skb, u32, attrtype, value) |
861 | 864 | ||
862 | #define NLA_PUT_BE32(skb, attrtype, value) \ | 865 | #define NLA_PUT_BE32(skb, attrtype, value) \ |
863 | NLA_PUT_TYPE(skb, __be32, attrtype, value) | 866 | NLA_PUT_TYPE(skb, __be32, attrtype, value) |
864 | 867 | ||
868 | #define NLA_PUT_NET32(skb, attrtype, value) \ | ||
869 | NLA_PUT_BE32(skb, attrtype | NLA_F_NET_BYTEORDER, value) | ||
870 | |||
865 | #define NLA_PUT_U64(skb, attrtype, value) \ | 871 | #define NLA_PUT_U64(skb, attrtype, value) \ |
866 | NLA_PUT_TYPE(skb, u64, attrtype, value) | 872 | NLA_PUT_TYPE(skb, u64, attrtype, value) |
867 | 873 | ||
868 | #define NLA_PUT_BE64(skb, attrtype, value) \ | 874 | #define NLA_PUT_BE64(skb, attrtype, value) \ |
869 | NLA_PUT_TYPE(skb, __be64, attrtype, value) | 875 | NLA_PUT_TYPE(skb, __be64, attrtype, value) |
870 | 876 | ||
877 | #define NLA_PUT_NET64(skb, attrtype, value) \ | ||
878 | NLA_PUT_BE64(skb, attrtype | NLA_F_NET_BYTEORDER, value) | ||
879 | |||
871 | #define NLA_PUT_STRING(skb, attrtype, value) \ | 880 | #define NLA_PUT_STRING(skb, attrtype, value) \ |
872 | NLA_PUT(skb, attrtype, strlen(value) + 1, value) | 881 | NLA_PUT(skb, attrtype, strlen(value) + 1, value) |
873 | 882 | ||