diff options
author | Thomas Graf <tgraf@suug.ch> | 2006-08-17 21:14:52 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-22 17:55:04 -0400 |
commit | 4e902c57417c4c285b98ba2722468d1c3ed83d1b (patch) | |
tree | 83251829a4bc9628a3543e5f70e7b11090fe22d9 /include/net/netlink.h | |
parent | ab32ea5d8a760e7dd4339634e95d7be24ee5b842 (diff) |
[IPv4]: FIB configuration using struct fib_config
Introduces struct fib_config replacing the ugly struct kern_rta
prone to ordering issues. Avoids creating faked netlink messages
for auto generated routes or requests via ioctl.
A new interface net/nexthop.h is added to help navigate through
nexthop configuration arrays.
A new struct nl_info will be used to carry the necessary netlink
information to be used for notifications later on.
Signed-off-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/netlink.h')
-rw-r--r-- | include/net/netlink.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/net/netlink.h b/include/net/netlink.h index bf593eb59e1b..47044da167c5 100644 --- a/include/net/netlink.h +++ b/include/net/netlink.h | |||
@@ -192,6 +192,16 @@ struct nla_policy { | |||
192 | u16 minlen; | 192 | u16 minlen; |
193 | }; | 193 | }; |
194 | 194 | ||
195 | /** | ||
196 | * struct nl_info - netlink source information | ||
197 | * @nlh: Netlink message header of original request | ||
198 | * @pid: Netlink PID of requesting application | ||
199 | */ | ||
200 | struct nl_info { | ||
201 | struct nlmsghdr *nlh; | ||
202 | u32 pid; | ||
203 | }; | ||
204 | |||
195 | extern void netlink_run_queue(struct sock *sk, unsigned int *qlen, | 205 | extern void netlink_run_queue(struct sock *sk, unsigned int *qlen, |
196 | int (*cb)(struct sk_buff *, | 206 | int (*cb)(struct sk_buff *, |
197 | struct nlmsghdr *, int *)); | 207 | struct nlmsghdr *, int *)); |