Skip to main content

ICS Header in PDP11 Code

Following is a specification of the ICS header in PDP11 code:

;
; GGP/ICMP Header
;
. = 0
GH.TYP: .BLKB 1 ;Message type
GC.RPY = 0 ;Echo reply
GC.UPD = 1 ;Routing update
GC.ACK = 2 ;Positive acknowledgment
GC.DNR = 3 ;Destination unreachable
GC.SQN = 4 ;Source quench
GC.RDR = 5 ;Redirect
GC.ECH = 10 ;Echo
GC.STA = 11 ;Net interface status
GC.NAK = 12 ;Negative acknowledgment
GC.TIM = 15 ;Timestamp
GC.TRP = 16 ;Timestamp Reply
GH.COD: .BLKB 1 ;Message code
GH.SEQ: .BLKW 1 ;Sequence number
GH.HDR = . ;Beginning of original
;internet header
GH.ORG: .BLKW 2 ;Originating timestamp
GH.REC: .BLKW 2 ;Received timestamp
GH.XMT: .BLKW 2 ;Transmitted timestamp
GH.LEN = . ;End of timestamp header

Note that all PDP11 word fields (.BLKW above) are "byte-swapped," that is, the order of byte transmission is the high-order byte followed by the low-order byte of the PDP11 word.