root/include/linux/ax25.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 #define PF_AX25         AF_AX25
   2 #define AX25_MTU        256
   3 #define AX25_MAX_DIGIS  6
   4 
   5 typedef struct
   6 {
   7         char ax25_call[7];      /* 6 call + SSID (shifted ascii!) */
   8 }
   9 ax25_address;
  10 
  11 struct sockaddr_ax25
  12 {
  13         short sax25_family;
  14         ax25_address sax25_call;
  15         int sax25_ndigis;
  16         /* Digipeater ax25_address sets follow */
  17 };
  18 
  19 #define sax25_uid       sax25_ndigis
  20 
  21 struct full_sockaddr_ax25
  22 {
  23         struct sockaddr_ax25 fsa_ax25;
  24         ax25_address fsa_digipeater[AX25_MAX_DIGIS];
  25 };
  26 
  27 struct ax25_routes_struct
  28 {
  29         ax25_address port_addr;
  30         ax25_address dest_addr;
  31         unsigned char digi_count;
  32         ax25_address digi_addr[AX25_MAX_DIGIS];
  33 };
  34 
  35 struct ax25_bpqaddr_struct
  36 {
  37         char dev[16];
  38         ax25_address addr;
  39 };
  40 
  41 #define AX25_WINDOW     1
  42 #define AX25_T1         2
  43 #define AX25_N2         3
  44 #define AX25_T3         4
  45 #define AX25_T2         5
  46 #define AX25_BACKOFF    6
  47 #define AX25_EXTSEQ     7
  48 #define AX25_HDRINCL    8
  49 
  50 #define SIOCAX25GETUID          (SIOCPROTOPRIVATE)
  51 #define SIOCAX25ADDUID          (SIOCPROTOPRIVATE+1)
  52 #define SIOCAX25DELUID          (SIOCPROTOPRIVATE+2)
  53 #define SIOCAX25NOUID           (SIOCPROTOPRIVATE+3)
  54 #define SIOCAX25BPQADDR         (SIOCPROTOPRIVATE+4)
  55 #define SIOCAX25GETPARMS        (SIOCPROTOPRIVATE+5)
  56 #define SIOCAX25SETPARMS        (SIOCPROTOPRIVATE+6)
  57 
  58 #define AX25_NOUID_DEFAULT      0
  59 #define AX25_NOUID_BLOCK        1
  60 
  61 #define AX25_DIGI_INBAND        0x01    /* Allow digipeating within port **/
  62 #define AX25_DIGI_XBAND         0x02    /* Allow digipeating across ports **/
  63 
  64 #define AX25_VALUES_IPDEFMODE   0       /* 'D'=DG 'V'=VC */
  65 #define AX25_VALUES_AXDEFMODE   1       /* 8=Normal 128=Extended Seq Nos */
  66 #define AX25_VALUES_NETROM      2       /* Allow NET/ROM  - 0=No 1=Yes */
  67 #define AX25_VALUES_TEXT        3       /* Allow PID=Text - 0=No 1=Yes */
  68 #define AX25_VALUES_BACKOFF     4       /* 'E'=Exponential 'L'=Linear */
  69 #define AX25_VALUES_CONMODE     5       /* Allow connected modes - 0=No 1=Yes */
  70 #define AX25_VALUES_WINDOW      6       /* Default window size for standard AX.25 */
  71 #define AX25_VALUES_EWINDOW     7       /* Default window size for extended AX.25 */
  72 #define AX25_VALUES_T1          8       /* Default T1 timeout value */
  73 #define AX25_VALUES_T2          9       /* Default T2 timeout value */
  74 #define AX25_VALUES_T3          10      /* Default T3 timeout value */
  75 #define AX25_VALUES_N2          11      /* Default N2 value */
  76 #define AX25_VALUES_DIGI        12      /* Digipeat mode */
  77 #define AX25_MAX_VALUES         20
  78 
  79 struct ax25_parms_struct
  80 {
  81         ax25_address port_addr;
  82         unsigned short values[AX25_MAX_VALUES];
  83 };

/* [previous][next][first][last][top][bottom][index][help] */