atmarp.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. /* atmarp.h - ATM ARP protocol and kernel-demon interface definitions */
  2. /* Written 1995-1999 by Werner Almesberger, EPFL LRC/ICA */
  3. #ifndef _LINUX_ATMARP_H
  4. #define _LINUX_ATMARP_H
  5. #include <linux/types.h>
  6. #include <linux/atmapi.h>
  7. #include <linux/atmioc.h>
  8. #define ATMARP_RETRY_DELAY 30 /* request next resolution or forget
  9. NAK after 30 sec - should go into
  10. atmclip.h */
  11. #define ATMARP_MAX_UNRES_PACKETS 5 /* queue that many packets while
  12. waiting for the resolver */
  13. #define ATMARPD_CTRL _IO('a',ATMIOC_CLIP+1) /* become atmarpd ctrl sock */
  14. #define ATMARP_MKIP _IO('a',ATMIOC_CLIP+2) /* attach socket to IP */
  15. #define ATMARP_SETENTRY _IO('a',ATMIOC_CLIP+3) /* fill or hide ARP entry */
  16. #define ATMARP_ENCAP _IO('a',ATMIOC_CLIP+5) /* change encapsulation */
  17. enum atmarp_ctrl_type {
  18. act_invalid, /* catch uninitialized structures */
  19. act_need, /* need address resolution */
  20. act_up, /* interface is coming up */
  21. act_down, /* interface is going down */
  22. act_change /* interface configuration has changed */
  23. };
  24. struct atmarp_ctrl {
  25. enum atmarp_ctrl_type type; /* message type */
  26. int itf_num;/* interface number (if present) */
  27. __be32 ip; /* IP address (act_need only) */
  28. };
  29. #endif