atmarp.h 1.2 KB

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