atalk.h 975 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. #ifndef _UAPI__LINUX_ATALK_H__
  2. #define _UAPI__LINUX_ATALK_H__
  3. #include <linux/types.h>
  4. #include <asm/byteorder.h>
  5. #include <linux/socket.h>
  6. /*
  7. * AppleTalk networking structures
  8. *
  9. * The following are directly referenced from the University Of Michigan
  10. * netatalk for compatibility reasons.
  11. */
  12. #define ATPORT_FIRST 1
  13. #define ATPORT_RESERVED 128
  14. #define ATPORT_LAST 254 /* 254 is only legal on localtalk */
  15. #define ATADDR_ANYNET (__u16)0
  16. #define ATADDR_ANYNODE (__u8)0
  17. #define ATADDR_ANYPORT (__u8)0
  18. #define ATADDR_BCAST (__u8)255
  19. #define DDP_MAXSZ 587
  20. #define DDP_MAXHOPS 15 /* 4 bits of hop counter */
  21. #define SIOCATALKDIFADDR (SIOCPROTOPRIVATE + 0)
  22. struct atalk_addr {
  23. __be16 s_net;
  24. __u8 s_node;
  25. };
  26. struct sockaddr_at {
  27. __kernel_sa_family_t sat_family;
  28. __u8 sat_port;
  29. struct atalk_addr sat_addr;
  30. char sat_zero[8];
  31. };
  32. struct atalk_netrange {
  33. __u8 nr_phase;
  34. __be16 nr_firstnet;
  35. __be16 nr_lastnet;
  36. };
  37. #endif /* _UAPI__LINUX_ATALK_H__ */