1 /* Definitions for Econet sockets. */
6 /* User visible stuff. Glibc provides its own but libc5 folk will use these */
9 unsigned char station; /* Station number. */
10 unsigned char net; /* Network number. */
14 unsigned short sec_family;
15 unsigned char port; /* Port number. */
16 unsigned char cb; /* Control/flag byte. */
17 unsigned char type; /* Type of message. */
22 #define ECTYPE_PACKET_RECEIVED 0 /* Packet received */
23 #define ECTYPE_TRANSMIT_STATUS 0x10 /* Transmit completed,
24 low nibble holds status */
26 #define ECTYPE_TRANSMIT_OK 1
27 #define ECTYPE_TRANSMIT_NOT_LISTENING 2
28 #define ECTYPE_TRANSMIT_NET_ERROR 3
29 #define ECTYPE_TRANSMIT_NO_CLOCK 4
30 #define ECTYPE_TRANSMIT_LINE_JAMMED 5
31 #define ECTYPE_TRANSMIT_NOT_PRESENT 6
37 /* This is what an Econet frame looks like on the wire. */
39 unsigned char dst_stn;
40 unsigned char dst_net;
41 unsigned char src_stn;
42 unsigned char src_net;
48 /* struct sock has to be the first member of econet_sock */
52 unsigned char station;
57 static inline struct econet_sock *ec_sk(const struct sock *sk)
59 return (struct econet_sock *)sk;
63 unsigned char station, net; /* Econet protocol address */