From 2b61f99d1e4f04cdc9639aa9d02e25cefc69acc3 Mon Sep 17 00:00:00 2001 From: Daniel Lenski Date: Fri, 30 Jun 2023 14:12:27 -0700 Subject: [PATCH] More comments on contents of hard-coded oNCP packets Signed-off-by: Daniel Lenski --- oncp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/oncp.c b/oncp.c index 25354a1a..a8175601 100644 --- a/oncp.c +++ b/oncp.c @@ -327,12 +327,12 @@ static const unsigned char kmp_tail[] = { 0x01, 0x00, 0x00, 0x00, 0x00, static const unsigned char kmp_tail_out[] = { 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00 }; static const unsigned char data_hdr[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, - 0x01, 0x2c, 0x01, 0x00, 0x00, 0x00, + 0x01, 0x2c, 0x01, 0x00, 0x00, 0x00, /* KMP message ID = 300 (0x12c) */ 0x01, 0x00, 0x00, 0x00, 0x00, 0x00 }; #ifdef HAVE_ESP static const unsigned char esp_kmp_hdr[] = { - 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x2e, + 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x2e, /* KMP message ID = 302 (0x12e) */ 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, /* KMP header */ 0x00, 0x56, /* KMP length */ 0x00, 0x07, 0x00, 0x00, 0x00, 0x50, /* TLV group 7 */ @@ -347,14 +347,14 @@ static const unsigned char esp_kmp_part2[] = { static const struct pkt esp_enable_pkt = { .next = NULL, { .oncp = { .rec = { 0x21, 0x00 }, - .kmp = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x2f, + .kmp = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x2f, /* KMP message ID = 303 (0x12f), len = 13 (0x0d) */ 0x01, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x0d } } }, .data = { 0x00, 0x06, 0x00, 0x00, 0x00, 0x07, /* Group 6, len 7 */ 0x00, 0x01, 0x00, 0x00, 0x00, 0x01, /* Attr 1, len 1 */ - 0x01 + 0x01 /* Value (1 to enable ESP, 0 to disable) */ }, .len = 13 }; -- 2.50.1