netevent.h 739 B

123456789101112131415161718192021222324252627282930313233
  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 neighbour;
  14. struct netevent_redirect {
  15. struct dst_entry *old;
  16. struct dst_entry *new;
  17. struct neighbour *neigh;
  18. const void *daddr;
  19. };
  20. enum netevent_notif_type {
  21. NETEVENT_NEIGH_UPDATE = 1, /* arg is struct neighbour ptr */
  22. NETEVENT_REDIRECT, /* arg is struct netevent_redirect ptr */
  23. };
  24. int register_netevent_notifier(struct notifier_block *nb);
  25. int unregister_netevent_notifier(struct notifier_block *nb);
  26. int call_netevent_notifiers(unsigned long val, void *v);
  27. #endif