atmarp.h 1.3 KB

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