2015-03-14 21:48:35 +00:00
|
|
|
|
NEW
|
2019-05-02 09:52:32 +00:00
|
|
|
|
AUTO 3,1
|
2015-03-14 21:48:35 +00:00
|
|
|
|
.LIST OFF
|
|
|
|
|
*--------------------------------------
|
2019-10-06 12:50:43 +00:00
|
|
|
|
K.ARPCACHE.SIZE .EQ 8
|
|
|
|
|
K.DNSCACHE.SIZE .EQ 8
|
2016-03-20 22:14:47 +00:00
|
|
|
|
K.FRMQUEUE.SIZE .EQ 16
|
2016-03-27 21:05:30 +00:00
|
|
|
|
K.FRMSEND.RETRY .EQ 10
|
2016-02-24 20:03:55 +00:00
|
|
|
|
K.ETH.FRAME.LEN .EQ 1514
|
2016-03-16 07:19:54 +00:00
|
|
|
|
K.ARP.TTL .EQ 600
|
2019-10-28 10:55:02 +00:00
|
|
|
|
K.ARP.PENDING.TTL .EQ 20
|
|
|
|
|
K.DNS.PENDING.TTL .EQ 20
|
2016-02-24 20:03:55 +00:00
|
|
|
|
K.IP.TTL .EQ 64
|
|
|
|
|
K.DNS.MAXLEN .EQ 64
|
|
|
|
|
K.DYNPORT.START .EQ 49152
|
|
|
|
|
K.DYNPORT.END .EQ 65535
|
|
|
|
|
K.TCP.MSS .EQ K.ETH.FRAME.LEN-20-20-14
|
2017-02-09 16:24:19 +00:00
|
|
|
|
K.TCP.WSIZE .EQ 2048
|
2016-02-24 20:03:55 +00:00
|
|
|
|
*--------------------------------------
|
2019-01-14 07:11:50 +00:00
|
|
|
|
LIBTCPIP.SETCFG .EQ 4
|
|
|
|
|
LIBTCPIP.GETCFG .EQ 6
|
2015-03-14 21:48:35 +00:00
|
|
|
|
|
2019-01-14 07:11:50 +00:00
|
|
|
|
LIBTCPIP.INCOMING .EQ 8
|
2018-07-23 15:28:42 +00:00
|
|
|
|
LIBTCPIP.PULSE .EQ 10
|
2017-02-15 16:14:41 +00:00
|
|
|
|
|
2017-03-23 16:41:36 +00:00
|
|
|
|
LIBTCPIP.ARP.Clear .EQ 12
|
|
|
|
|
LIBTCPIP.ARP.Query .EQ 14
|
|
|
|
|
LIBTCPIP.ARP.Add .EQ 16
|
2017-11-17 16:16:05 +00:00
|
|
|
|
LIBTCPIP.ARP.GetCache .EQ 18
|
2017-02-15 16:14:41 +00:00
|
|
|
|
|
2017-03-23 16:41:36 +00:00
|
|
|
|
LIBTCPIP.DNS.Clear .EQ 20
|
|
|
|
|
LIBTCPIP.DNS.Query .EQ 22
|
|
|
|
|
LIBTCPIP.DNS.Add .EQ 24
|
2017-11-17 16:16:05 +00:00
|
|
|
|
LIBTCPIP.DNS.GetCache .EQ 26
|
2017-02-15 16:14:41 +00:00
|
|
|
|
|
2017-03-23 16:41:36 +00:00
|
|
|
|
LIBTCPIP.HST.GetByName .EQ 28
|
|
|
|
|
LIBTCPIP.HST.GetByAddr .EQ 30
|
2017-02-15 16:14:41 +00:00
|
|
|
|
|
2018-10-10 15:39:22 +00:00
|
|
|
|
LIBTCPIP.Socket .EQ 32
|
|
|
|
|
LIBTCPIP.Bind .EQ 34
|
|
|
|
|
LIBTCPIP.Connect .EQ 36
|
|
|
|
|
LIBTCPIP.Listen .EQ 38
|
2017-02-15 16:14:41 +00:00
|
|
|
|
|
2018-10-10 15:39:22 +00:00
|
|
|
|
LIBTCPIP.Accept .EQ 40
|
2020-08-12 21:03:33 +00:00
|
|
|
|
LIBTCPIP.Shutdown .EQ 42
|
2017-02-15 16:14:41 +00:00
|
|
|
|
|
2018-10-10 15:39:22 +00:00
|
|
|
|
LIBTCPIP.Read .EQ 44
|
|
|
|
|
LIBTCPIP.Write .EQ 46
|
|
|
|
|
LIBTCPIP.Recv .EQ 48
|
|
|
|
|
LIBTCPIP.Send .EQ 50
|
2018-09-26 15:36:32 +00:00
|
|
|
|
|
2018-10-10 15:39:22 +00:00
|
|
|
|
LIBTCPIP.RecvFrom .EQ 52
|
|
|
|
|
LIBTCPIP.SendTo .EQ 54
|
2018-10-01 05:48:42 +00:00
|
|
|
|
|
2018-11-08 14:23:06 +00:00
|
|
|
|
LIBTCPIP.getsockopt .EQ 56
|
2018-11-07 21:48:48 +00:00
|
|
|
|
LIBTCPIP.setsockopt .EQ 58
|
2018-11-08 14:23:06 +00:00
|
|
|
|
|
2019-03-01 14:36:20 +00:00
|
|
|
|
LIBTCPIP.EOF .EQ 60
|
|
|
|
|
LIBTCPIP.GetTable .EQ 62
|
2016-01-16 22:06:36 +00:00
|
|
|
|
*--------------------------------------
|
2016-03-20 22:14:47 +00:00
|
|
|
|
ERR.SKT.OOS .EQ $BF
|
|
|
|
|
ERR.SKT.BUSY .EQ $BE
|
|
|
|
|
ERR.SKT.BAD .EQ $BD
|
2019-10-05 17:24:41 +00:00
|
|
|
|
ERR.SKT.NOCONN .EQ $BC
|
2016-03-20 22:14:47 +00:00
|
|
|
|
|
|
|
|
|
ERR.DNS.PENDING .EQ $B9
|
|
|
|
|
ERR.DNS.ERROR .EQ $B8
|
|
|
|
|
|
|
|
|
|
ERR.ARP.PENDING .EQ $B5
|
2015-03-14 21:48:35 +00:00
|
|
|
|
*--------------------------------------
|
2015-09-11 18:48:12 +00:00
|
|
|
|
UDP.PORT.PMAP .EQ 111
|
2020-12-23 14:54:57 +00:00
|
|
|
|
UDP.PORT.NTP .EQ 123
|
2015-03-14 21:48:35 +00:00
|
|
|
|
*--------------------------------------
|
2019-01-17 15:05:48 +00:00
|
|
|
|
*S.IPCFG.STATUS .EQ 0
|
2015-03-14 21:48:35 +00:00
|
|
|
|
S.IPCFG.STATUS.OFF .EQ %00000000 TCPIP Unconfigured
|
|
|
|
|
S.IPCFG.STATUS.SDISC .EQ %00000001 DISCOVERY Sent
|
|
|
|
|
S.IPCFG.STATUS.ROFFER .EQ %00000010 OFFER Received
|
|
|
|
|
S.IPCFG.STATUS.SREQ .EQ %00000100 REQUEST Sent
|
|
|
|
|
S.IPCFG.STATUS.RACK .EQ %00001000 ACK Received
|
|
|
|
|
S.IPCFG.STATUS.OK .EQ %10000000 Fully configured (static or DHCP)
|
2019-01-17 15:05:48 +00:00
|
|
|
|
*S.IPCFG.DevID .EQ 1
|
|
|
|
|
*S.IPCFG.DevFlags .EQ 2
|
2015-03-14 21:48:35 +00:00
|
|
|
|
*
|
2019-01-17 15:05:48 +00:00
|
|
|
|
*S.IPCFG.MAC .EQ 4
|
|
|
|
|
S.IPCFG.DHCPSRVR .EQ 10
|
|
|
|
|
S.IPCFG.IP .EQ 14
|
|
|
|
|
S.IPCFG.MASK .EQ 18
|
|
|
|
|
S.IPCFG.GW .EQ 22
|
|
|
|
|
S.IPCFG.DNS1 .EQ 26
|
|
|
|
|
S.IPCFG.DNS2 .EQ 30
|
|
|
|
|
S.IPCFG.HOSTNAME .EQ 34 15+\0 C String
|
|
|
|
|
S.IPCFG.DOMAIN .EQ 50 45+\0 C String
|
|
|
|
|
*
|
|
|
|
|
S.IPCFG .EQ 96
|
2015-03-14 21:48:35 +00:00
|
|
|
|
*--------------------------------------
|
2018-11-09 15:59:04 +00:00
|
|
|
|
S.ARPCACHE.S .EQ 0
|
2018-11-09 13:29:23 +00:00
|
|
|
|
S.ARPCACHE.S.PENDING .EQ 1
|
2018-11-09 15:59:04 +00:00
|
|
|
|
S.ARPCACHE.S.STATIC .EQ 2
|
2018-11-09 13:29:23 +00:00
|
|
|
|
S.ARPCACHE.S.RESOLVED .EQ 128
|
2016-03-16 07:19:54 +00:00
|
|
|
|
S.ARPCACHE.TTL .EQ 2
|
|
|
|
|
S.ARPCACHE.IP .EQ 6
|
|
|
|
|
S.ARPCACHE.MAC .EQ 10
|
2015-03-14 21:48:35 +00:00
|
|
|
|
*
|
2016-03-16 07:19:54 +00:00
|
|
|
|
S.ARPCACHE .EQ 16
|
2015-03-14 21:48:35 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
S.DNSCACHE.STATUS .EQ 0
|
2016-03-15 17:16:14 +00:00
|
|
|
|
S.DNSCACHE.STATUS.PENDING .EQ 1
|
|
|
|
|
S.DNSCACHE.STATUS.STATIC .EQ 2
|
2015-03-14 21:48:35 +00:00
|
|
|
|
S.DNSCACHE.STATUS.RESOLVED .EQ 128
|
|
|
|
|
S.DNSCACHE.hNAME .EQ 1
|
2016-03-15 17:16:14 +00:00
|
|
|
|
S.DNSCACHE.ID .EQ 2 Store Message.Id in cache (pending req.)
|
|
|
|
|
S.DNSCACHE.TTL .EQ 4
|
|
|
|
|
S.DNSCACHE.IP .EQ 8
|
2015-03-14 21:48:35 +00:00
|
|
|
|
*
|
2016-03-15 17:16:14 +00:00
|
|
|
|
S.DNSCACHE .EQ 12
|
2015-03-14 21:48:35 +00:00
|
|
|
|
*--------------------------------------
|
2018-10-01 05:48:42 +00:00
|
|
|
|
S.SOCKADDR.AF .EQ 0
|
|
|
|
|
|
|
|
|
|
S.SOCKADDR.ADDR .EQ 2
|
|
|
|
|
S.SOCKADDR.PORT .EQ 6
|
2018-09-26 15:36:32 +00:00
|
|
|
|
*
|
2018-10-01 05:48:42 +00:00
|
|
|
|
S.SOCKADDR .EQ 8
|
2018-09-26 15:36:32 +00:00
|
|
|
|
*--------------------------------------
|
2018-10-01 15:52:58 +00:00
|
|
|
|
S.SOCKET.AF .EQ S.FD.DSOCK+0
|
|
|
|
|
S.SOCKET.T .EQ S.FD.DSOCK+1
|
|
|
|
|
S.SOCKET.T.RAW .EQ 0 S.FD.T.DSOCK,ICMP...
|
|
|
|
|
S.SOCKET.T.DGRAM .EQ 2 S.FD.T.DSOCK,UDP
|
2020-06-07 08:06:51 +00:00
|
|
|
|
S.SOCKET.T.SEQPKT .EQ 4 S.FD.T.DSOCK,TCP
|
2018-10-01 15:52:58 +00:00
|
|
|
|
S.SOCKET.T.STREAM .EQ 6 S.FD.T.SSOCK,TCP
|
2018-09-28 15:24:44 +00:00
|
|
|
|
|
2018-10-01 15:52:58 +00:00
|
|
|
|
S.SOCKET.PROTO .EQ S.FD.DSOCK+2
|
2018-09-28 15:24:44 +00:00
|
|
|
|
|
2018-10-01 15:52:58 +00:00
|
|
|
|
S.SOCKET.O .EQ S.FD.DSOCK+3
|
2018-09-28 15:24:44 +00:00
|
|
|
|
S.SOCKET.O.DEBUG .EQ $01
|
|
|
|
|
S.SOCKET.O.ACCEPTCONN .EQ $02
|
|
|
|
|
S.SOCKET.O.REUSEADDR .EQ $04
|
|
|
|
|
S.SOCKET.O.KEEPALIVE .EQ $08
|
|
|
|
|
S.SOCKET.O.DONTROUTE .EQ $10
|
|
|
|
|
S.SOCKET.O.BROADCAST .EQ $20
|
|
|
|
|
S.SOCKET.O.USELOOPBACK .EQ $40
|
|
|
|
|
S.SOCKET.O.LINGER .EQ $80
|
|
|
|
|
|
2018-10-01 15:52:58 +00:00
|
|
|
|
S.SOCKET.LOC.ADDR .EQ S.FD.DSOCK+4
|
|
|
|
|
S.SOCKET.LOC.PORT .EQ S.FD.DSOCK+8
|
|
|
|
|
S.SOCKET.REM.ADDR .EQ S.FD.DSOCK+10
|
|
|
|
|
S.SOCKET.REM.PORT .EQ S.FD.DSOCK+14
|
2018-09-28 15:24:44 +00:00
|
|
|
|
*--------------------------------------
|
2016-02-24 20:03:55 +00:00
|
|
|
|
* Listen type Queue
|
2017-01-31 16:40:37 +00:00
|
|
|
|
* Raw Type Queue
|
2016-02-24 20:03:55 +00:00
|
|
|
|
* Datagram type Queue
|
2018-11-06 16:31:13 +00:00
|
|
|
|
* Seq Packet type Queue
|
2019-07-07 20:48:57 +00:00
|
|
|
|
*--------------------------------------
|
2020-09-03 06:24:36 +00:00
|
|
|
|
S.SOCKET.HQ.TAIL .EQ S.FD.DSOCK+16
|
|
|
|
|
S.SOCKET.HQ.HEAD .EQ S.FD.DSOCK+17
|
2018-10-01 15:52:58 +00:00
|
|
|
|
S.SOCKET.HQ .EQ S.FD.DSOCK+18
|
2018-09-28 15:24:44 +00:00
|
|
|
|
S.SOCKET.HQ.MAX .EQ 14 14 hMem (frames)
|
2019-07-07 20:48:57 +00:00
|
|
|
|
*--------------------------------------
|
2016-02-24 20:03:55 +00:00
|
|
|
|
* Stream type Queue
|
2019-07-07 20:48:57 +00:00
|
|
|
|
*--------------------------------------
|
2018-10-01 15:52:58 +00:00
|
|
|
|
S.SOCKET.SQ.hInMem .EQ S.FD.DSOCK+16
|
|
|
|
|
S.SOCKET.SQ.hOutMem .EQ S.FD.DSOCK+17
|
2017-02-09 16:24:19 +00:00
|
|
|
|
*
|
2018-10-01 15:52:58 +00:00
|
|
|
|
S.SOCKET .EQ S.FD.DSOCK+32
|
2017-03-09 16:38:27 +00:00
|
|
|
|
*--------------------------------------
|
2018-09-28 15:24:44 +00:00
|
|
|
|
S.SOCKET.TCP.S .EQ S.SOCKET
|
|
|
|
|
S.SOCKET.TCP.S.CLOSED .EQ 0
|
2019-07-07 20:48:57 +00:00
|
|
|
|
S.SOCKET.TCP.S.OPENED .EQ 1
|
|
|
|
|
S.SOCKET.TCP.S.LISTEN .EQ 2
|
|
|
|
|
S.SOCKET.TCP.S.SYNSENT .EQ 3
|
|
|
|
|
S.SOCKET.TCP.S.SYNRCVD .EQ 4
|
|
|
|
|
S.SOCKET.TCP.S.ESTBLSH .EQ 5
|
|
|
|
|
S.SOCKET.TCP.S.CLWAIT .EQ 6
|
|
|
|
|
S.SOCKET.TCP.S.LASTACK .EQ 7
|
|
|
|
|
S.SOCKET.TCP.S.FINWT1 .EQ 8
|
|
|
|
|
S.SOCKET.TCP.S.FINWT2 .EQ 9
|
|
|
|
|
S.SOCKET.TCP.S.CLOSING .EQ 10
|
|
|
|
|
S.SOCKET.TCP.S.TIMEWT .EQ 11
|
|
|
|
|
*
|
2018-09-28 15:24:44 +00:00
|
|
|
|
S.SOCKET.TCP.O .EQ S.SOCKET+1
|
2017-04-04 20:40:25 +00:00
|
|
|
|
*
|
2019-07-07 20:48:57 +00:00
|
|
|
|
S.SOCKET.TCP.INSEQNUM .EQ S.SOCKET+2 Recv:Last SEQ received from remote
|
2023-04-22 18:58:37 +00:00
|
|
|
|
S.SOCKET.TCP.INACKNUM .EQ S.SOCKET+6
|
|
|
|
|
S.SOCKET.TCP.OUTNEXTSEQ .EQ S.SOCKET+10 Send:Next SEQ to send
|
|
|
|
|
S.SOCKET.TCP.OUTSENTSEQ .EQ S.SOCKET+14 Send:SEQ sent not yet ACKed (retransmit)
|
2017-04-04 20:40:25 +00:00
|
|
|
|
*
|
2023-04-22 18:58:37 +00:00
|
|
|
|
S.SOCKET.TCP.INTAIL .EQ S.SOCKET+18
|
|
|
|
|
S.SOCKET.TCP.INHEAD .EQ S.SOCKET+20
|
|
|
|
|
S.SOCKET.TCP.INFREE .EQ S.SOCKET+22
|
|
|
|
|
S.SOCKET.TCP.INUSED .EQ S.SOCKET+24
|
2019-07-07 20:48:57 +00:00
|
|
|
|
*
|
2023-04-22 18:58:37 +00:00
|
|
|
|
S.SOCKET.TCP.OUTTAIL .EQ S.SOCKET+26
|
|
|
|
|
S.SOCKET.TCP.OUTTAILSENT .EQ S.SOCKET+28
|
|
|
|
|
S.SOCKET.TCP.OUTHEAD .EQ S.SOCKET+30
|
|
|
|
|
S.SOCKET.TCP.OUTFREE .EQ S.SOCKET+32
|
|
|
|
|
S.SOCKET.TCP.OUTTOSEND .EQ S.SOCKET+34
|
|
|
|
|
S.SOCKET.TCP.OUTUSED .EQ S.SOCKET+36
|
2017-03-09 16:38:27 +00:00
|
|
|
|
*
|
2023-04-22 18:58:37 +00:00
|
|
|
|
S.SOCKET.TCP .EQ S.SOCKET+38
|
2015-03-14 21:48:35 +00:00
|
|
|
|
*--------------------------------------
|
|
|
|
|
MAN
|
2020-06-07 08:06:51 +00:00
|
|
|
|
SAVE inc/libtcpip.i
|
|
|
|
|
LOAD usr/src/lib/libtcpip.s
|
2018-10-08 05:55:28 +00:00
|
|
|
|
ASM
|