netevent.h 810 B

1234567891011121314151617181920212223242526272829303132333435
  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. NETEVENT_DELAY_PROBE_TIME_UPDATE, /* arg is struct neigh_parms ptr */
  24. };
  25. int register_netevent_notifier(struct notifier_block *nb);
  26. int unregister_netevent_notifier(struct notifier_block *nb);
  27. int call_netevent_notifiers(unsigned long val, void *v);
  28. #endif