Begin checksumming icmp4
This commit is contained in:
parent
7c93952c53
commit
404d4ff0df
4 changed files with 33 additions and 5 deletions
|
|
@ -38,6 +38,10 @@ const bit<8> ICMP6_ECHO_REPLY = 129;
|
|||
const bit<8> ICMP6_NS = 135;
|
||||
const bit<8> ICMP6_NA = 136;
|
||||
|
||||
const bit<8> ICMP_ECHO_REPLY = 0;
|
||||
const bit<8> ICMP_ECHO_REQUEST = 8;
|
||||
|
||||
|
||||
/* RFC4861, Section 4.6 */
|
||||
const bit<8> ICMP6_NDP_OPT_SOURCE_LL = 1;
|
||||
const bit<8> ICMP6_NDP_OPT_TARGET_LL = 2;
|
||||
|
|
@ -52,6 +56,7 @@ const task_t TASK_DEBUG = 3;
|
|||
const task_t TASK_ICMP6_REPLY = 4;
|
||||
const task_t TASK_CHECKSUM_ICMP6 = 5; /* data plane */
|
||||
const task_t TASK_CHECKSUM_ICMP6_NA = 6; /* data plane */
|
||||
const task_t TASK_CHECKSUM_ICMP = 7; /* data plane */
|
||||
|
||||
|
||||
/* 48+48+16 = 112 */
|
||||
|
|
@ -147,7 +152,6 @@ header icmp_t {
|
|||
bit<8> type;
|
||||
bit<8> code;
|
||||
bit<16> checksum;
|
||||
bit<32> rest;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue