dn_neigh.h
上传用户:jlfgdled
上传日期:2013-04-10
资源大小:33168k
文件大小:1k
源码类别:

Linux/Unix编程

开发平台:

Unix_Linux

  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. dn_address 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. unsigned char priority;
  16. };
  17. extern void dn_neigh_init(void);
  18. extern void dn_neigh_cleanup(void);
  19. extern struct neighbour *dn_neigh_lookup(struct neigh_table *tbl, void *ptr);
  20. extern int dn_neigh_router_hello(struct sk_buff *skb);
  21. extern int dn_neigh_endnode_hello(struct sk_buff *skb);
  22. extern void dn_neigh_pointopoint_hello(struct sk_buff *skb);
  23. extern int dn_neigh_elist(struct net_device *dev, unsigned char *ptr, int n);
  24. extern struct neigh_table dn_neigh_table;
  25. #endif /* _NET_DN_NEIGH_H */