netevent.h 696 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef _NET_EVENT_H
  2. #define _NET_EVENT_H
  3. /*
  4. * Generic netevent notifiers
  5. *
  6. * Authors:
  7. * Tom Tucker <tom@opengridcomputing.com>
  8. * Steve Wise <swise@opengridcomputing.com>
  9. *
  10. * Changes:
  11. */
  12. struct dst_entry;
  13. struct netevent_redirect {
  14. struct dst_entry *old;
  15. struct dst_entry *new;
  16. };
  17. enum netevent_notif_type {
  18. NETEVENT_NEIGH_UPDATE = 1, /* arg is struct neighbour ptr */
  19. NETEVENT_REDIRECT, /* arg is struct netevent_redirect ptr */
  20. };
  21. extern int register_netevent_notifier(struct notifier_block *nb);
  22. extern int unregister_netevent_notifier(struct notifier_block *nb);
  23. extern int call_netevent_notifiers(unsigned long val, void *v);
  24. #endif