4.    AX.25 / NETROM / ROSE.

     AX.25   Linux ,
         
   AX.25.

4.1.  .

        Linux,  
  ,  ,    
    .     
   Linux,     .

     ,   ,  -
/usr/src   ,  OS Linux.   , 
        , 
:

# mv linux linux.old
# d /usr/src
# tar xvfz linux-2.0.31.tar.gz
# tar xvfz /pub/net/ax25/ax25-module-14e.tar.gz
# patch -p0 </usr/src/ax25-module-14/ax25-2.0.31-2.1.47-2.diff
# d linux

 ,         ,
    ,   
    ,    
 .  ,  :

# make menuconfig

    :

# make config

   ,     , 
        ,   
 .        ,  
   - "Y"  "N". ( ,   
  "",    ).

    AX.25:

Code maturity level options  --->
...
[*] Prompt for development and/or incomplete code/drivers ...
General setup  --->
...
[*] Networking support
...
Networking options  --->
...
[*] TCP/IP networking
[?] IP: forwarding/gatewaying
...
[?] IP: tunneling
...
[?] IP: Allow large windows (not recommended if <16Mb of memory)...
[*] Amateur Radio AX.25 Level 2
[?] Amateur Radio NET/ROM
[?] Amateur Radio X.25 PLP (Rose)
...
Network device support  --->
[*] Network device support
...
[*] Radio network interfaces
[?] BAYCOM ser12 and par96 driver for AX.25
[?] Soundcard modem driver for AX.25
[?] Soundmodem support for Soundblaster and compatible cards
[?] Soundmodem support for WSS and Crystal cards
[?] Soundmodem support for 1200 baud AFSK modulation
[?] Soundmodem support for 4800 baud HAPN-1 modulation
[?] Soundmodem support for 9600 baud FSK G3RUH modulation
[?] Serial port KISS driver for AX.25
[?] BPQ Ethernet driver for AX.25
[?] Gracilis PackeTwin support for AX.25
[?] Ottawa PI and PI/2 support for AX.25
[?] Z8530 SCC KISS emulation driver for AX.25
...

    "*",    "Y",    
   ,     
      .    
    ,    ,  , 
,      .  ,   
 ,     :

    # make dep
    # make clean
    # make zImage

,     arch/i386/boot/zImage,   
    /etc/lilo.conf    
 lilo,     ,      .

4.1.1.    .

 ,         . 
        
,    ,     
      .

           , 
 :

# make modules
# make modules_install

        .

        /etc/conf.modules ,
  ,   kerneld ,  
 .    /  :

  alias net-pf-3      ax25
  alias net-pf-6      netrom
  alias net-pf-11     rose
  alias tty-ldisc-1   slip
  alias tty-ldisc-3   ppp
  alias tty-ldisc-5   mkiss
  alias bc0           baycom
  alias nr0           netrom
  alias pi0a          pi2
  alias pt0a          pt
  alias scc0          optoscc  (    SCC )
  alias sm0           soundmodem
  alias tunl0         newtunnel
  alias char-major-4  serial
  alias char-major-5  serial
  alias char-major-6  lp

4.1.2.      2.0. * + ModuleXX  2.1.*.

 2.1.*        .

    :

      ,   
 (insmod)   (rmmod)   ,   
.         
       .
,     .

  -   .    Baycom,
SCC, PI, Packettwin  . .      ,
         CSMA-CD
     TNC'S KISS.    , 
 net2kiss    KISS   
  .    ,  
    .  Rose   
 .

4.2.    .

,    ,    
  .   
        
  .  ()    
      NETROM 
AX.25.   ,   ,  .

4.2.1.  ,    ROSE  
 .

     - 1.33.tar.gz 
 ,    NETROM  AX.25.  
  ,      
ROSE   .

    : zone.pspt.fi
<ftp://zone.pspt.fi/pub/linux/HAM/ax25/nettools-1.33.Rose.tjd.diff.gz>.

4.2.2.      .

          .
      , :

# cd /usr/src
# tar xvfz net-tools-1.33.tar.gz
# zcat net-tools-1.33.rose.tjd.diff.gz | patch -p0
# cd net-tools-1.33
# make config

         
,     . ,
          ,
   .    ,  , 
 ,   "Y".

  ,    :

# make install

   ,       .

     IP firewall,   
  firewall   - ipfwadm.
    ipfw ,   
   .

   ipfwadm   :

# Cd /usr/src
# tar xvfz ipfwadm-2. 0beta2. tar.gz
# cd ipfwadm-2. 0beta2
# make install
# cp ipfwadm.8 /usr/man/man8
# cp ipfw.4 /usr/man/man4

4.3.  AX.25   .

 ,        ,
    .  
   ,    
,  :

# cd |usr|src
# tax xvfz ax25-utils-2/1/42a/tar/gz
# cd ax25-utils-2/1/42a
# make config
# make
# make install

     /usr,    :
bin, sbin, etc, main.

    ,     
  AX25    ,    :

# make installconf

    ,    
    /etc/ax25/.

    - :

gcc -Wall -Wstrict-prototypes -O2 -I../lib -c call.c call.c:
In function `statline':
call.c:268: warning: implicit declaration of function `attron'
call.c:268: `A_REVERSE' undeclared (first use this function)
call.c:268: (Each undeclared identifier is reported only once
call.c:268:  for each function it appears in/)

     ,      ,
    ncurses.  
   ncurses    , 
      ncurses, 
     .


