From 0130c7b34e9e4e831c2794f00a0d017040a967a9 Mon Sep 17 00:00:00 2001 From: Andrey Konovalov Date: Wed, 8 Feb 2017 15:49:03 +0100 Subject: prog, sys: add icmpv6 packet descriptions and checksums Also generalize checksums into the two kinds: inet and pseudo. Inet checksums is just the Internet checksum of a packet. Pseudo checksum is the Internet checksum of a packet with a pseudo header. --- sys/vnet_amd64.const | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'sys/vnet_amd64.const') diff --git a/sys/vnet_amd64.const b/sys/vnet_amd64.const index e9c262f0d..a9ebe9aad 100644 --- a/sys/vnet_amd64.const +++ b/sys/vnet_amd64.const @@ -63,6 +63,34 @@ ETH_P_TIPC = 35018 ETH_P_TSN = 8944 ETH_P_WCCP = 34878 ETH_P_X25 = 2053 +ICMPV6_ADDR_UNREACH = 3 +ICMPV6_ADM_PROHIBITED = 1 +ICMPV6_DEST_UNREACH = 1 +ICMPV6_DHAAD_REPLY = 145 +ICMPV6_DHAAD_REQUEST = 144 +ICMPV6_ECHO_REPLY = 129 +ICMPV6_ECHO_REQUEST = 128 +ICMPV6_EXC_FRAGTIME = 1 +ICMPV6_EXC_HOPLIMIT = 0 +ICMPV6_HDR_FIELD = 0 +ICMPV6_MGM_QUERY = 130 +ICMPV6_MGM_REDUCTION = 132 +ICMPV6_MGM_REPORT = 131 +ICMPV6_MLD2_REPORT = 143 +ICMPV6_MOBILE_PREFIX_ADV = 147 +ICMPV6_MOBILE_PREFIX_SOL = 146 +ICMPV6_NI_QUERY = 139 +ICMPV6_NI_REPLY = 140 +ICMPV6_NOROUTE = 0 +ICMPV6_NOT_NEIGHBOUR = 2 +ICMPV6_PARAMPROB = 4 +ICMPV6_PKT_TOOBIG = 2 +ICMPV6_POLICY_FAIL = 5 +ICMPV6_PORT_UNREACH = 4 +ICMPV6_REJECT_ROUTE = 6 +ICMPV6_TIME_EXCEED = 3 +ICMPV6_UNK_NEXTHDR = 1 +ICMPV6_UNK_OPTION = 2 ICMP_ADDRESS = 17 ICMP_ADDRESSREPLY = 18 ICMP_DEST_UNREACH = 3 -- cgit mrf-deployment