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