Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 43895
b: refs/heads/master
c: d3dcc07
h: refs/heads/master
i:
  43893: d11feeb
  43891: d3455fa
  43887: 1497bf9
v: v3
  • Loading branch information
David S. Miller committed Dec 9, 2006
1 parent e73aea7 commit f40817b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 160d5e10f87b1dc88fd9b84b31b1718e0fd76398
refs/heads/master: d3dcc077bf88806201093f86325ec656e4dbfbce
6 changes: 6 additions & 0 deletions trunk/include/linux/if_addr.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,10 @@ struct ifa_cacheinfo
__u32 tstamp; /* updated timestamp, hundredths of seconds */
};

/* backwards compatibility for userspace */
#ifndef __KERNEL__
#define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
#define IFA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct ifaddrmsg))
#endif

#endif
6 changes: 6 additions & 0 deletions trunk/include/linux/if_link.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ enum

#define IFLA_MAX (__IFLA_MAX - 1)

/* backwards compatibility for userspace */
#ifndef __KERNEL__
#define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
#define IFLA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct ifinfomsg))
#endif

/* ifi_flags.
IFF_* flags.
Expand Down

0 comments on commit f40817b

Please sign in to comment.