1/****************************************************************************
2 ****************************************************************************
3 ***
4 ***   This header was automatically generated from a Linux kernel header
5 ***   of the same name, to make information necessary for userspace to
6 ***   call into the kernel available to libc.  It contains only constants,
7 ***   structures, and macros generated from the original header, and thus,
8 ***   contains no copyrightable information.
9 ***
10 ***   To edit the content of this header, modify the corresponding
11 ***   source file (e.g. under external/kernel-headers/original/) then
12 ***   run bionic/libc/kernel/tools/update_all.py
13 ***
14 ***   Any manual change here will be lost the next time this script will
15 ***   be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef _UAPI__LINUX_ATALK_H__
20#define _UAPI__LINUX_ATALK_H__
21#include <linux/types.h>
22#include <asm/byteorder.h>
23#include <linux/socket.h>
24#define ATPORT_FIRST 1
25#define ATPORT_RESERVED 128
26#define ATPORT_LAST 254
27#define ATADDR_ANYNET (__u16) 0
28#define ATADDR_ANYNODE (__u8) 0
29#define ATADDR_ANYPORT (__u8) 0
30#define ATADDR_BCAST (__u8) 255
31#define DDP_MAXSZ 587
32#define DDP_MAXHOPS 15
33#define SIOCATALKDIFADDR (SIOCPROTOPRIVATE + 0)
34struct atalk_addr {
35  __be16 s_net;
36  __u8 s_node;
37};
38struct sockaddr_at {
39  __kernel_sa_family_t sat_family;
40  __u8 sat_port;
41  struct atalk_addr sat_addr;
42  char sat_zero[8];
43};
44struct atalk_netrange {
45  __u8 nr_phase;
46  __be16 nr_firstnet;
47  __be16 nr_lastnet;
48};
49#endif
50