Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Enumerations | Functions
netevent.h File Reference

Go to the source code of this file.

Data Structures

struct  netevent_redirect
 

Enumerations

enum  netevent_notif_type { NETEVENT_NEIGH_UPDATE = 1, NETEVENT_REDIRECT }
 

Functions

int register_netevent_notifier (struct notifier_block *nb)
 
int unregister_netevent_notifier (struct notifier_block *nb)
 
int call_netevent_notifiers (unsigned long val, void *v)
 

Enumeration Type Documentation

Enumerator:
NETEVENT_NEIGH_UPDATE 
NETEVENT_REDIRECT 

Definition at line 25 of file netevent.h.

Function Documentation

int call_netevent_notifiers ( unsigned long  val,
void v 
)

call_netevent_notifiers - call all netevent notifier blocks : value passed unmodified to notifier function : pointer passed unmodified to notifier function

Call all neighbour notifier blocks. Parameters and return value are as for notifier_call_chain().

Definition at line 66 of file netevent.c.

int register_netevent_notifier ( struct notifier_block nb)

register_netevent_notifier - register a netevent notifier block : notifier

Register a notifier to be called when a netevent occurs. The notifier passed is linked into the kernel structures and must not be reused until it has been unregistered. A negative errno code is returned on a failure.

Definition at line 32 of file netevent.c.

int unregister_netevent_notifier ( struct notifier_block nb)

netevent_unregister_notifier - unregister a netevent notifier block : notifier

Unregister a notifier previously registered by register_neigh_notifier(). The notifier is unlinked into the kernel structures and may then be reused. A negative errno code is returned on a failure.

Definition at line 51 of file netevent.c.