diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2007-03-19 21:28:08 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-04-26 01:26:36 -0400 |
commit | a36ca733375860b389c15ffdf6a5f92df64a33b6 (patch) | |
tree | 36801ab146f9aac5a87eb45bf3c324b3a7c8bac0 /include/linux/netlink.h | |
parent | 897933bcdf31c372e029dd4e2ecd573ebe6cfd9c (diff) |
[NETLINK]: Remove NLMSG_{NEW_ANSWER,CANCEL,END}
Not used anywhere and defined inside __KERNEL__, Thomas acked this on irc.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'include/linux/netlink.h')
-rw-r--r-- | include/linux/netlink.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/include/linux/netlink.h b/include/linux/netlink.h index 36629fff26d3..0d11f6a7389c 100644 --- a/include/linux/netlink.h +++ b/include/linux/netlink.h | |||
@@ -229,18 +229,6 @@ __nlmsg_put(struct sk_buff *skb, u32 pid, u32 seq, int type, int len, int flags) | |||
229 | #define NLMSG_PUT(skb, pid, seq, type, len) \ | 229 | #define NLMSG_PUT(skb, pid, seq, type, len) \ |
230 | NLMSG_NEW(skb, pid, seq, type, len, 0) | 230 | NLMSG_NEW(skb, pid, seq, type, len, 0) |
231 | 231 | ||
232 | #define NLMSG_NEW_ANSWER(skb, cb, type, len, flags) \ | ||
233 | NLMSG_NEW(skb, NETLINK_CB((cb)->skb).pid, \ | ||
234 | (cb)->nlh->nlmsg_seq, type, len, flags) | ||
235 | |||
236 | #define NLMSG_END(skb, nlh) \ | ||
237 | ({ (nlh)->nlmsg_len = skb_tail_pointer(skb) - (unsigned char *)(nlh); \ | ||
238 | (skb)->len; }) | ||
239 | |||
240 | #define NLMSG_CANCEL(skb, nlh) \ | ||
241 | ({ skb_trim(skb, (unsigned char *) (nlh) - (skb)->data); \ | ||
242 | -1; }) | ||
243 | |||
244 | extern int netlink_dump_start(struct sock *ssk, struct sk_buff *skb, | 232 | extern int netlink_dump_start(struct sock *ssk, struct sk_buff *skb, |
245 | struct nlmsghdr *nlh, | 233 | struct nlmsghdr *nlh, |
246 | int (*dump)(struct sk_buff *skb, struct netlink_callback*), | 234 | int (*dump)(struct sk_buff *skb, struct netlink_callback*), |