Home | History | Annotate | Download | only in linux
      1 #ifndef __LINUX_ATALK_H__
      2 #define __LINUX_ATALK_H__
      3 
      4 #include <asm/byteorder.h>
      5 
      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 
     22 #define SIOCATALKDIFADDR       (SIOCPROTOPRIVATE + 0)
     23 
     24 struct atalk_addr {
     25 	__be16	s_net;
     26 	__u8	s_node;
     27 };
     28 
     29 struct sockaddr_at {
     30 	sa_family_t	  sat_family;
     31 	__u8		  sat_port;
     32 	struct atalk_addr sat_addr;
     33 	char		  sat_zero[8];
     34 };
     35 
     36 struct atalk_netrange {
     37 	__u8	nr_phase;
     38 	__be16	nr_firstnet;
     39 	__be16	nr_lastnet;
     40 };
     41 
     42 #endif /* __LINUX_ATALK_H__ */
     43