summaryrefslogtreecommitdiff
path: root/ospf.h
diff options
context:
space:
mode:
authorDenis Ovsienko <infrastation@yandex.ru>2013-12-29 17:46:42 +0400
committerDenis Ovsienko <infrastation@yandex.ru>2013-12-29 18:02:29 +0400
commit35c5cd9911f3fcc385e4a04c31016c253ee7a426 (patch)
treef9e529193504e65cd8b3216b782e8b0890592779 /ospf.h
parent47cd247bea92e51dea234a069b5d9d21c6292b3d (diff)
downloadtcpdump-35c5cd9911f3fcc385e4a04c31016c253ee7a426.tar.gz
OSPFv3: add crypto authentication (RFC6506) support
* Update ospf6_print() to distinguish packet length and OSPFv3 data length. * Fix ospf6_print_lshdr(), ospf6_print_lsa() and ospf6_decode_v3() to print the variable-sized part of DBDesc, LS-Upd and LS-Ack packets with the declared length of the OSPFv3 data in mind. * Implement as little LLS decoding in ospf6_print_lls() as necessary to indicate and skip an LLS data block. * Implement normal AT decoding in ospf6_decode_at(). * Add ospf6_decode_v3_trailer() to couple the above with ospf6_print(). This commit doesn't include a sample capture as the only existing RFC6506 implementation is not yet ready to serve as a reference.
Diffstat (limited to 'ospf.h')
-rw-r--r--ospf.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ospf.h b/ospf.h
index b86458ba..3ce0d329 100644
--- a/ospf.h
+++ b/ospf.h
@@ -137,6 +137,8 @@
#define MCLA_VERTEX_NETWORK 2
/* Link-Local-Signaling */
+#define OSPF_LLS_HDRLEN 4U /* RFC5613 Section 2.2 */
+
#define OSPF_LLS_EO 1 /* RFC4811, RFC4812 */
#define OSPF_LLS_MD5 2 /* RFC4813 */