diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-24 03:31:46 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-06-24 03:31:46 -0400 |
commit | 59a49e38711a146dc0bef4837c825b5422335460 (patch) | |
tree | 7e6e3d1850159f94e5b05d1c5775bd3cc87c3690 /include/linux/rtnetlink.h | |
parent | 52c1da39534fb382c061de58b65f678ad74b59f5 (diff) | |
parent | f2d368fa3ef90f2159d9e542303901ebf68144dd (diff) |
Merge rsync://rsync.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
Diffstat (limited to 'include/linux/rtnetlink.h')
-rw-r--r-- | include/linux/rtnetlink.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/linux/rtnetlink.h b/include/linux/rtnetlink.h index e68dbf0bf579..d021888b58f1 100644 --- a/include/linux/rtnetlink.h +++ b/include/linux/rtnetlink.h | |||
@@ -892,10 +892,13 @@ extern void __rta_fill(struct sk_buff *skb, int attrtype, int attrlen, const voi | |||
892 | goto rtattr_failure; \ | 892 | goto rtattr_failure; \ |
893 | __rta_fill(skb, attrtype, attrlen, data); }) | 893 | __rta_fill(skb, attrtype, attrlen, data); }) |
894 | 894 | ||
895 | #define RTA_PUT_NOHDR(skb, attrlen, data) \ | 895 | #define RTA_APPEND(skb, attrlen, data) \ |
896 | ({ if (unlikely(skb_tailroom(skb) < (int)(attrlen))) \ | 896 | ({ if (unlikely(skb_tailroom(skb) < (int)(attrlen))) \ |
897 | goto rtattr_failure; \ | 897 | goto rtattr_failure; \ |
898 | memcpy(skb_put(skb, RTA_ALIGN(attrlen)), data, attrlen); }) | 898 | memcpy(skb_put(skb, attrlen), data, attrlen); }) |
899 | |||
900 | #define RTA_PUT_NOHDR(skb, attrlen, data) \ | ||
901 | RTA_APPEND(skb, RTA_ALIGN(attrlen), data) | ||
899 | 902 | ||
900 | #define RTA_PUT_U8(skb, attrtype, value) \ | 903 | #define RTA_PUT_U8(skb, attrtype, value) \ |
901 | ({ u8 _tmp = (value); \ | 904 | ({ u8 _tmp = (value); \ |