mirror of
https://github.com/A2osX/A2osX.git
synced 2024-11-24 14:31:05 +00:00
74 lines
2.1 KiB
Plaintext
74 lines
2.1 KiB
Plaintext
|
NEW
|
|||
|
AUTO 3,1
|
|||
|
.LIST OFF
|
|||
|
*--------------------------------------
|
|||
|
S.ARP.HTYPE .EQ S.ETH.EII+0 $0001
|
|||
|
S.ARP.PTYPE .EQ S.ETH.EII+2 $0800
|
|||
|
S.ARP.HLEN .EQ S.ETH.EII+4 $06
|
|||
|
S.ARP.PLEN .EQ S.ETH.EII+5 $04
|
|||
|
S.ARP.OPERATION .EQ S.ETH.EII+6 REQ=$0001,REPLY=$0002
|
|||
|
S.ARP.OPERATION.REQ .EQ 1
|
|||
|
S.ARP.OPERATION.REP .EQ 2
|
|||
|
S.ARP.SHA .EQ S.ETH.EII+8 Sender MAC
|
|||
|
S.ARP.SPA .EQ S.ETH.EII+14 Sender IP
|
|||
|
S.ARP.THA .EQ S.ETH.EII+18 Target MAC
|
|||
|
S.ARP.TPA .EQ S.ETH.EII+24 Target IP
|
|||
|
*
|
|||
|
S.ARP .EQ S.ETH.EII+28
|
|||
|
*--------------------------------------
|
|||
|
S.IP.V.IHL .EQ S.ETH.EII+0 $45, IPV4,HDR=5DWORDs
|
|||
|
S.IP.DSCP.ECN .EQ S.ETH.EII+1
|
|||
|
S.IP.TOTAL.LENGTH .EQ S.ETH.EII+2
|
|||
|
S.IP.IDENTIFICATION .EQ S.ETH.EII+4
|
|||
|
S.IP.FRAGMENT.FLAGS .EQ S.ETH.EII+6
|
|||
|
S.IP.TTL .EQ S.ETH.EII+8
|
|||
|
S.IP.PROTOCOL .EQ S.ETH.EII+9
|
|||
|
S.IP.PROTOCOL.ICMP .EQ 1
|
|||
|
S.IP.PROTOCOL.TCP .EQ 6
|
|||
|
S.IP.PROTOCOL.UDP .EQ 17
|
|||
|
S.IP.HDR.CHECKSUM .EQ S.ETH.EII+10
|
|||
|
S.IP.SRC .EQ S.ETH.EII+12
|
|||
|
S.IP.DST .EQ S.ETH.EII+16
|
|||
|
*
|
|||
|
S.IP .EQ S.ETH.EII+20
|
|||
|
*--------------------------------------
|
|||
|
S.ICMP.TYPE .EQ S.IP+0
|
|||
|
S.ICMP.TYPE.ECHOREP .EQ 0
|
|||
|
S.ICMP.TYPE.UNREACH .EQ 3
|
|||
|
S.ICMP.TYPE.ECHOREQ .EQ 8
|
|||
|
S.ICMP.CODE .EQ S.IP+1
|
|||
|
S.ICMP.CHECKSUM .EQ S.IP+2
|
|||
|
S.ICMP.IDENTIFIER .EQ S.IP+4
|
|||
|
S.ICMP.SEQUENCE .EQ S.IP+6
|
|||
|
*
|
|||
|
S.ICMP .EQ S.IP+8
|
|||
|
*--------------------------------------
|
|||
|
S.TCPUDP.SRCPORT .EQ S.IP+0
|
|||
|
S.TCPUDP.DSTPORT .EQ S.IP+2
|
|||
|
*--------------------------------------
|
|||
|
S.UDP.LENGTH .EQ S.IP+4
|
|||
|
S.UDP.CHECKSUM .EQ S.IP+6 $0000 = DISABLE
|
|||
|
*
|
|||
|
S.UDP .EQ S.IP+8
|
|||
|
*--------------------------------------
|
|||
|
S.TCP.SEQNUM .EQ S.IP+4
|
|||
|
S.TCP.ACKNUM .EQ S.IP+8
|
|||
|
S.TCP.DATAOFFSET .EQ S.IP+12
|
|||
|
S.TCP.OPTIONS .EQ S.IP+13
|
|||
|
S.TCP.OPTIONS.URG .EQ %00100000
|
|||
|
S.TCP.OPTIONS.ACK .EQ %00010000
|
|||
|
S.TCP.OPTIONS.PSH .EQ %00001000
|
|||
|
S.TCP.OPTIONS.RST .EQ %00000100
|
|||
|
S.TCP.OPTIONS.SYN .EQ %00000010
|
|||
|
S.TCP.OPTIONS.FIN .EQ %00000001
|
|||
|
S.TCP.WINDOW .EQ S.IP+14
|
|||
|
S.TCP.CHECKSUM .EQ S.IP+16
|
|||
|
S.TCP.URGPTR .EQ S.IP+18
|
|||
|
*
|
|||
|
S.TCP .EQ S.IP+20
|
|||
|
*--------------------------------------
|
|||
|
MAN
|
|||
|
SAVE inc/net.tcpip.i
|
|||
|
LOAD usr/src/lib/libtcpip.s
|
|||
|
ASM
|