diff options
| author | Thomas Graf <tgraf@suug.ch> | 2005-01-09 21:25:46 -0800 |
|---|---|---|
| committer | David S. Miller <davem@nuts.davemloft.net> | 2005-01-09 21:25:46 -0800 |
| commit | 31c0c632a80c23c347b394f9604f46f185154e3c (patch) | |
| tree | 09dc3b0f3f381106c38a1f19cfd53c7417e59529 /include/linux | |
| parent | 8a7c9f18a74ffb0a8056a7f2b805b4a73a612ee5 (diff) | |
[PKT_SCHED]: rtattr_parse shortcut for nested TLVs
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/rtnetlink.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/rtnetlink.h b/include/linux/rtnetlink.h index 1d617276dfea..1f02d87be6b7 100644 --- a/include/linux/rtnetlink.h +++ b/include/linux/rtnetlink.h @@ -756,6 +756,9 @@ static __inline__ int rtattr_strcmp(const struct rtattr *rta, const char *str) extern int rtattr_parse(struct rtattr *tb[], int maxattr, struct rtattr *rta, int len); +#define rtattr_parse_nested(tb, max, rta) \ + rtattr_parse((tb), (max), RTA_DATA((rta)), RTA_PAYLOAD((rta))) + extern struct sock *rtnl; struct rtnetlink_link |
