⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ka9qnos.txt

📁 uCLinux下的一个TCP/IP协议栈源码
💻 TXT
📖 第 1 页 / 共 5 页
字号:




                           - 7 -


recent first), along with the time since it was last  referenced.
The  time  since  the  same  callsign was last seen in the source
field of an AX25 frame on the same interface is  also  shown.  If
the  callsign has never been seen in the source field of a frame,
then this field is left blank. (This indicates that the  destina-
tion is either a multicast address or a "hidden station".)

3.8.3.  ax25 digipeat [on | off]

Display or set the digipeater enable flag.

3.8.4.  ax25 flush

Clear the AX.25 "heard" list (see ax25 heard).

3.8.5.  ax25 heard

Display the AX.25 "heard" list. For each interface that  is  con-
figured  to use AX.25, a list of all callsigns heard through that
interface is shown, along with a count of the number  of  packets
heard  from  each station and the interval, in hr:min:sec format,
since each station was last heard.  The list is sorted  in  most-
recently-heard order.  The local station is included in the list-
ing; the packet count reflects the number of packets transmitted.
This  count will be correct whether or not the modem monitors its
own transmissions.

3.8.6.  ax25 irtt [<milliseconds>]

Display or set the initial value of smoothed round trip  time  to
be  used  when  a new AX25 connection is created. The value is in
milliseconds.  The actual round trip  time  will  be  learned  by
measurement once the connection has been established.

3.8.7.  ax25 kick <axcb>

Force a retransmission on the specified AX.25 control block.

3.8.8.  ax25 maxframe [<count>]

Establish the maximum number of frames that will  be  allowed  to
remain  unacknowledged at one time on new AX.25 connections. This
number cannot be greater than 7.

3.8.9.  ax25 mycall [<call>]

Display or set the local AX.25 address.  The standard  format  is
used (eg. KA9Q-0 or WB6RQN-5).  This command must be given before
any attach commands using AX.25 mode are given.

3.8.10.  ax25 paclen [<size>]

Limit the size of I-fields  on  new  AX.25  connections.   If  IP
datagrams  or  fragments  larger  than this are transmitted, they



                        June 7, 1991





                           - 8 -


will be transparently fragmented at the AX.25 level,  sent  as  a
series  of  I  frames,  and  reassembled  back into a complete IP
datagram or fragment at the other end of the link.  To  have  any
effect  on  IP  datagrams,  this parameter should be less than or
equal to the MTU of the associated interface.

3.8.11.  ax25 pthresh [<size>]

Display or set the poll threshold to be used for new  AX.25  Ver-
sion  2  connections.  The poll threshold controls retransmission
behavior as follows. If the oldest unacknowledged I-frame size is
less  than  the poll threshold, it will be sent with the poll (P)
bit set if a timeout occurs.  If the oldest unacked I-frame  size
is  equal  to  or  greater  than  the threshold, then a RR or RNR
frame, as appropriate, with the poll bit set will be  sent  if  a
timeout occurs.

The idea behind the poll threshold is that the extra time  needed
to  send  a  "small"  I-frame instead of a supervisory frame when
polling after a timeout is small, and since there's a good chance
the  I-frame  will  have to be sent anyway (i.e., if it were lost
previously) then you might as well send it as the  poll.  But  if
the I-frame is large, send a supervisory (RR/RNR) poll instead to
determine first if retransmitting the  oldest  unacknowledged  I-
frame  is necessary; the timeout might have been caused by a lost
acknowledgement.  This is obviously  a  tradeoff,  so  experiment
with  the  poll  threshold setting. The default is 128 bytes, one
half the default value of paclen.

3.8.12.  ax25 reset <axcb>

Delete the  AX.25  connection  control  block  at  the  specified
address.

3.8.13.  ax25 retry [<count>]

Limit  the  number  of  successive  unsuccessful   retransmission
attempts  on  new  AX.25  connections. If this limit is exceeded,
link re-establishment is attempted. If this  fails  retry  times,
then  the connection is abandoned and all queued data is deleted.
A value of 0 means  "infinity";  the  retry  limit  is  disabled.
retry

3.8.14.  ax25 route

Display the AX.25 routing table that specifies the digipeaters to
be used in reaching a given station.

3.8.14.1.  ax25 route add <target> [digis ... ]

Add an entry to the AX.25 routing table.  An automatic ax25 route
add  is  executed if digipeaters are specified in an AX25 connect
command, or if a connection is received from a remote station via
digipeaters.  Such automatic routing table entries won't override



                        June 7, 1991





                           - 9 -


locally created entries, however.

3.8.14.2.  ax25 route drop <target>

Drop an entry from the AX.25 routing table.

3.8.15.  ax25 status [<axcb>]

Without an argument, display a one-line  summary  of  each  AX.25
control  block.   If the address of a particular control block is
specified, the contents of that control block are dumped in  more
detail.  Note  that  the  send  queue units are frames, while the
receive queue units are bytes.

3.8.16.  ax25 t3 [<milliseconds>]

Display or set the AX.25 idle "keep alive"  timer.  Value  is  in
milliseconds.

3.8.17.  ax25 version [1 | 2]

Display or set the version of the AX.25 protocol  to  attempt  to
use  on  new connections. The default is 1 (the version that does
not use the poll/final bits).

3.8.18.  ax25 window [<size>]

Set the number of bytes that can be pending on an  AX.25  receive
queue  beyond  which I frames will be answered with RNR (Receiver
Not Ready) responses.  This presently applies only  to  suspended
interactive  AX.25  sessions,  since incoming I-frames containing
network (IP, NET/ROM) packets are  always  processed  immediately
and  are not placed on the receive queue.  However, when an AX.25
connection carries both interactive and network  packet  traffic,
an  RNR  generated because of backlogged interactive traffic will
also stop network packet traffic from being sent.

3.9.  BOOTP

The bootp  client  and  server  are  added  to  KA9Q  to  provide
automatic  configuration capabilities.  With this suite of exten-
sions, a KA9Q host can automatically configure  its  IP  address,
subnet  mask,  broadcast address, host name, the default gateway,
the name servers, and default boot file.   This  simplifies  host
configuration.

The bootp server supports dynamic IP address  assignment.   If  a
bootp  request  is  made  by a host to the server, and the server
doesn't have a static record for the PC making the request, an IP
address  may  be assigned from a list of dynamic addresses.  This
simplifies server configuration, so that machines  don't  require
prior IP address assignment.  This is useful in environments such
as university dormitories, where network service is provided, and
the  computers configurations change frequently.  When the server



                        June 7, 1991





                           - 10 -


list of free addresses reaches a minimum threshold, it will begin
attempts to reclaim the address.

The bootp client and server code are written according to RFC 951
and 1048.

3.9.1.  bootp  [<net_name>] [silent] [noisy]

Send a request to a bootp server,  and  wait  for  a  reply.   On
receipt of the server reply, the information is used to configure
the host.  If a reply is not received, the command will time out.
Without  arguments,  bootp sends a request to the first interface
in the interface list.

This command requires that there exist a routing entry for the IP
broadcast  address  255.255.255.255  pointing  to the appropriate
interface. If the interface uses ARP, there must also be  an  ARP
entry that maps that address to the appropriate link level broad-
cast address.  For example, if you  have  an  Ethernet  interface
named  "ethernet",  use  the  following commands before the bootp
command:

     route add 255.255.255.255 ethernet

     arp add 255.255.255.255 ether ff:ff:ff:ff:ff:ff

The following bootp subcommands are available:

3.9.1.1.  bootp <net_name>

Send a request over the specified network.

3.9.1.2.  bootp silent

Set bootp so that it will not print the configuration.

3.9.1.3.  bootp noisy

Set bootp so that it will print the configuration.

3.9.2.  bootpd ...

This command starts and stops the bootp server, and sets the con-
figuration  for  the  information it will provide in replies.  If
the file bootptab exists, it will read the file for configuration
information.   On  receipt  of  a  request,  if bootptab has been
changed, the server will reread the file for the  changed  confi-
guration.  The following subcommands are available:

3.9.2.1.  bootpd start

Start the bootp server, reading from the file bootptab for confi-
guration information.




                        June 7, 1991





                           - 11 -


3.9.2.2.  bootpd stop

Stop the bootp server.

3.9.2.3.  bootpd dns

Print the address of the domain name servers supplied in replies.

3.9.2.4.  bootpd dns <IP addr of domain name server>...

Set the addresses.

3.9.2.5.  bootpd dynip

Print the range and use of the dynamic IP address.

3.9.2.6.  bootpd dynip <net_name> <IP address> <IP address>

Set the range of IP address  to  be  used  for  network  netname.
These address will be supplied to hosts that are not found in the
static record.

3.9.2.7.  bootpd dynip <netname> off

Turn off dynamic ip for network interface netname.

3.9.2.8.  bootpd host

Print the information in the static host table.

3.9.2.9.   bootpd  host   <hostname>    ethernet|ax25   <ethernet
addr>|<ax25 addr> <ip addr> [boot file]

Add a host to the host table.  The LANSTAR packet drivers provide
an Ethernet interface to upper layer applications, so configure a
LANSTAR network as an Ethernet.

3.9.2.10.  bootpd rmhost <hostname>

Remove host <hostname> from the static host tables.

3.9.2.11.  bootpd homedir

Print the default directory for the bootp file name used when the
bootp  file  is not specified in the static host record, and when
dynamic addresses are supplied.  Default is the null string.

3.9.2.12.  bootpd homedir <directory name>

Set the default directory.

3.9.2.13.  bootpd defaultfile

Print the default file for the bootp  file  name  used  when  the



                        June 7, 1991





                           - 12 -


bootp  file  is not specified in the static host record, and when
dynamic addresses are supplied.  Default is the null string.

3.9.2.14.  bootpd defaultfile <filename>

Set the default file.

3.9.2.15.  bootpd logfile

Print the status of logging to a log file.

3.9.2.16.  bootpd logfile <filename | default> on|off

Sets the file for logging to <filename> or the default, bootplog.
Turn logging to that file on or off.

3.9.2.17.  bootpd logscreen

Print the status of logging to the screen.

3.9.2.18.  bootpd logscreen on|off

Turn logging to the screen on or off.

3.10.  cd [<dirname>]

Change the current working directory, and display  the  new  set-
ting.  Without an argument, cd simply displays the current direc-
tory without change.  The pwd command is an alias for cd.

3.11.  close [<session>]

Close the specified  session;  without  an  argument,  close  the
current  session.   On an AX.25 session, this command initiates a
disconnect.  On a FTP or Telnet session, this command sends a FIN
(i.e.,  initiates a close) on the session's TCP connection.  This
is an alternative to asking the remote server to initiate a close
(QUIT  to  FTP,  or the logout command appropriate for the remote
system in the case of Telnet).  When either FTP  or  Telnet  sees
the  incoming  half  of  a TCP connection close, it automatically
responds by closing the outgoing half of the  connection.   Close
is  more  graceful  than  the  reset  command, in that it is less
likely to leave the remote TCP in a "half-open" state.

3.12.  connect <iface> <callsign> [<digipeater> ... ]

Initiate a "vanilla" AX.25 session to  the  specified  call  sign
using the specified interface. Data sent on this session goes out
in conventional AX.25 packets with no upper layer protocol.   The
de-facto  presentation  standard  format  is  used,  in that each
packet holds one line of text, terminated by a  carriage  return.
A  single  AX.25 connection may be used for terminal-to-terminal,
IP and NET/ROM traffic.  The three types of  data  are  automati-
cally separated by their AX.25 Level 3 Protocol IDs.



                        June 7, 1991

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -