blob: 086f8a5b59dc3782014f40edbb10be4d25f51d0a [file] [log] [blame]
Tom Tucker792d1932006-07-30 20:43:26 -07001#ifndef _NET_EVENT_H
2#define _NET_EVENT_H
3
4/*
5 * Generic netevent notifiers
6 *
7 * Authors:
8 * Tom Tucker <tom@opengridcomputing.com>
9 * Steve Wise <swise@opengridcomputing.com>
10 *
11 * Changes:
12 */
Tom Tucker792d1932006-07-30 20:43:26 -070013
Herbert Xu274b3422007-11-13 21:34:34 -080014struct dst_entry;
Tom Tucker792d1932006-07-30 20:43:26 -070015
16struct netevent_redirect {
17 struct dst_entry *old;
18 struct dst_entry *new;
19};
20
21enum netevent_notif_type {
22 NETEVENT_NEIGH_UPDATE = 1, /* arg is struct neighbour ptr */
Tom Tucker792d1932006-07-30 20:43:26 -070023 NETEVENT_REDIRECT, /* arg is struct netevent_redirect ptr */
24};
25
26extern int register_netevent_notifier(struct notifier_block *nb);
27extern int unregister_netevent_notifier(struct notifier_block *nb);
28extern int call_netevent_notifiers(unsigned long val, void *v);
29
30#endif