dn_neigh.h 824 B

1234567891011121314151617181920212223242526272829
  1. #ifndef _NET_DN_NEIGH_H
  2. #define _NET_DN_NEIGH_H
  3. /*
  4. * The position of the first two fields of
  5. * this structure are critical - SJW
  6. */
  7. struct dn_neigh {
  8. struct neighbour n;
  9. __le16 addr;
  10. unsigned long flags;
  11. #define DN_NDFLAG_R1 0x0001 /* Router L1 */
  12. #define DN_NDFLAG_R2 0x0002 /* Router L2 */
  13. #define DN_NDFLAG_P3 0x0004 /* Phase III Node */
  14. unsigned long blksize;
  15. __u8 priority;
  16. };
  17. extern void dn_neigh_init(void);
  18. extern void dn_neigh_cleanup(void);
  19. extern int dn_neigh_router_hello(struct sk_buff *skb);
  20. extern int dn_neigh_endnode_hello(struct sk_buff *skb);
  21. extern void dn_neigh_pointopoint_hello(struct sk_buff *skb);
  22. extern int dn_neigh_elist(struct net_device *dev, unsigned char *ptr, int n);
  23. extern struct neigh_table dn_neigh_table;
  24. #endif /* _NET_DN_NEIGH_H */