dn_neigh.h 929 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. void dn_neigh_init(void);
  18. void dn_neigh_cleanup(void);
  19. int dn_neigh_router_hello(struct net *net, struct sock *sk, struct sk_buff *skb);
  20. int dn_neigh_endnode_hello(struct net *net, struct sock *sk, struct sk_buff *skb);
  21. void dn_neigh_pointopoint_hello(struct sk_buff *skb);
  22. int dn_neigh_elist(struct net_device *dev, unsigned char *ptr, int n);
  23. int dn_to_neigh_output(struct net *net, struct sock *sk, struct sk_buff *skb);
  24. extern struct neigh_table dn_neigh_table;
  25. #endif /* _NET_DN_NEIGH_H */