From 6eb838ddda8b4c94b291620558b84809321d6b7d Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Fri, 20 Sep 2019 16:27:20 +0930 Subject: [PATCH] wire: update csv to current bolt. Signed-off-by: Rusty Russell --- channeld/channeld.c | 4 ++++ wire/extracted_onion_wire_csv | 3 +++ 2 files changed, 7 insertions(+) diff --git a/channeld/channeld.c b/channeld/channeld.c index febdd6cfc..ccf4325cf 100644 --- a/channeld/channeld.c +++ b/channeld/channeld.c @@ -957,6 +957,10 @@ static u8 *make_failmsg(const tal_t *ctx, case WIRE_INVALID_ONION_KEY: msg = towire_invalid_onion_key(ctx, sha256); goto done; + case WIRE_INVALID_ONION_PAYLOAD: + /* FIXME: wire this into tlv parser somehow. */ + msg = towire_invalid_onion_payload(ctx, 0, 0); + goto done; } status_failed(STATUS_FAIL_INTERNAL_ERROR, "Asked to create failmsg %u (%s)", diff --git a/wire/extracted_onion_wire_csv b/wire/extracted_onion_wire_csv index 602599a4f..01576187d 100644 --- a/wire/extracted_onion_wire_csv +++ b/wire/extracted_onion_wire_csv @@ -45,3 +45,6 @@ msgtype,final_incorrect_htlc_amount,19 msgdata,final_incorrect_htlc_amount,incoming_htlc_amt,u64, msgtype,channel_disabled,UPDATE|20 msgtype,expiry_too_far,21 +msgtype,invalid_onion_payload,PERM|22 +msgdata,invalid_onion_payload,type,varint, +msgdata,invalid_onion_payload,offset,u16,