1
2 #ifndef _NET_EVENT_H
3 #define _NET_EVENT_H
4
5
6
7
8
9
10
11
12
13
14
15 struct dst_entry;
16 struct neighbour;
17
18 struct netevent_redirect {
19 struct dst_entry *old;
20 struct dst_entry *new;
21 struct neighbour *neigh;
22 const void *daddr;
23 };
24
25 enum netevent_notif_type {
26 NETEVENT_NEIGH_UPDATE = 1,
27 NETEVENT_REDIRECT,
28 NETEVENT_DELAY_PROBE_TIME_UPDATE,
29 NETEVENT_IPV4_MPATH_HASH_UPDATE,
30 NETEVENT_IPV6_MPATH_HASH_UPDATE,
31 NETEVENT_IPV4_FWD_UPDATE_PRIORITY_UPDATE,
32 };
33
34 int register_netevent_notifier(struct notifier_block *nb);
35 int unregister_netevent_notifier(struct notifier_block *nb);
36 int call_netevent_notifiers(unsigned long val, void *v);
37
38 #endif