1
0
mirror of https://github.com/rtbrick/bngblaster.git synced 2024-05-06 15:54:57 +00:00

120 Commits

Author SHA1 Message Date
Christian Giese
a913ac73c1 LSPGEN: fix OSPFv3 external prefix 2024-04-30 17:00:00 +00:00
Christian Giese
82ff68f0f2 fix lspgen ISIS fragment size 2024-04-30 11:42:59 +00:00
Hannes Gredler
5278d3c2f9 ospf3 LSA fragmentation (#255)
* Do fragment ospf3 router LSAs over several LSA-IDs
* Do fragment ospf3 Intra-Area-Prefix LSAs over several LSA-IDs

---------

Co-authored-by: Hannes Gredler <hannes@rtbrick.com>
2024-04-25 09:02:23 +02:00
Hannes Gredler
53161aa698 use RFC ospf3 codepoints for prefix sid and range TLVs 2024-04-05 12:43:19 +00:00
Christian
ca851e071a update copyright to 2024 2024-02-23 21:12:51 +01:00
Christian Giese
a30bfe1971 fix codeql warning (#226) 2024-02-09 16:20:27 +00:00
Christian Giese
f7321792ab fletcher checksum
Use same fletcher checksum
function for bngblaster and lspgen.
2024-02-06 14:04:22 +00:00
Hannes Gredler
11707c0de9 fix a bug in the fletcher checksum calculation, add fletcher checksum verification behind debug flag 2024-02-06 11:56:58 +00:00
Hannes Gredler
4f6ee7fa55 bump the total amount of LSA quantum that OSPF can originate to 1.6MB per node 2024-02-04 18:53:56 +00:00
Hannes Gredler
0f044e2289 use 63/64 bit arithmethic, such that Fletcher checksum calculation does not overflow beyond 5803 bytes. 2024-01-19 12:18:32 +00:00
Hannes Gredler
b1bdce931e do not fill the socket buffer too tight, large (ospf) packets may not fit. 2024-01-18 14:39:40 +00:00
Hannes Gredler
aac8fa7d2e lspgen config reader: read ospf2 and ospf3 configs 2024-01-11 18:56:06 +00:00
Hannes Gredler
0b3f0052c5 lspgen config reader: determine protocol and instance and throw an error if any is missing 2024-01-11 14:45:22 +00:00
Christian Giese
fb7d968548 Revert "add libdict to repo"
This reverts commit 4b28ba190d.
2024-01-04 23:03:49 +00:00
Hannes Gredler
20d101cf84 generate local and remote link ID for lspgen/ospf configs 2024-01-03 16:55:14 +00:00
Hannes Gredler
c3bb1ba042 generate lspgen config file for ospf3 2024-01-03 14:01:28 +00:00
Hannes Gredler
52c875796a generate config file for ospf2 2024-01-03 12:49:55 +00:00
Christian Giese
4b28ba190d add libdict to repo 2023-12-21 11:03:22 +00:00
Hannes Gredler
e8fc1b0c3b Lspgen transport changes (#218)
* change the lsggen <-> bngblaster transport, such that:
  - once the buffer is full, the json datagram will be completed and session will be restarted
  - set send buffer size to 4MB
  - do not smear refresh timers if user only wants to have a single-shot LSDB updat (aka quit_loop)e

---------
Co-authored-by: Hannes Gredler <hannes@rtbrick.com>
2023-12-21 12:02:50 +01:00
Christian Giese
644cc32aaf remove -m64 (#216) 2023-11-19 08:06:16 +00:00
Christian Giese
2abd7b362a add cmake option for native CPU type 2023-11-13 13:10:42 +00:00
Hannes Gredler
856b1d0656 bump serialization buffer to 16K 2023-11-02 14:37:32 +00:00
Hannes Gredler
0403695ae6 add support for link-multiplier 2023-11-02 09:23:35 +00:00
Hannes Gredler
16a8ffe639 The wireshark issue #1944 is fixed now.
https://gitlab.com/wireshark/wireshark/-/issues/19444
Build RI LSA information first.
2023-10-31 15:37:14 +00:00
Hannes Gredler
049f3cbf17 ospf3: change flooding scope of RI LSA to area 2023-10-31 09:17:05 +00:00
Hannes Gredler
d9a9562839 ospf3: pick correct link-state-id for RI LSA 2023-10-31 09:09:39 +00:00
Hannes Gredler
152c0a226e correctly display the amount of ipv6 link prefixes 2023-10-30 10:42:45 +00:00
Christian Giese
3e2572aef9 fix lspgen ospf3 socket 2023-10-18 13:02:49 +00:00
Hannes Gredler
2212206d95 ospf3: generate ipv6 link prefixes 2023-10-13 08:43:39 +00:00
Hannes Gredler
626abb52da ospf3: include pseudo-header in checksum calculation 2023-10-13 08:23:15 +00:00
Christian Giese
0f437d215f fix LSPGEN OSPFv3 LSA-1 options 2023-10-12 21:25:13 +00:00
Christian Giese
e4b9421d45 fix LSPGEN Referenced LS Type 2023-10-12 20:08:41 +00:00
Hannes Gredler
a093cf89fe proper set the remote-link-id for the links 2023-10-12 18:00:42 +00:00
Hannes Gredler
e50041c765 ospf3: encode a running number (1,2,3) for the connectors remote-interface-id 2023-10-12 17:45:38 +00:00
Hannes Gredler
123f7369ee ospf3: fix the referenced link state id generation 2023-10-04 10:14:58 +00:00
Hannes Gredler
3ad6567603 Use a monotonic per-node increasing number as link-state-id for ospf3 2023-09-26 15:43:17 +00:00
Hannes Gredler
47c9839e99 Serialize ospf3 SR information 2023-09-26 15:16:42 +00:00
Hannes Gredler
ae71720685 Improve codepoint name logging in the ospf2 and ospf3 serializer 2023-09-26 14:29:48 +00:00
Hannes Gredler
b0fce07e78 ospf3 start support for SR 2023-09-26 14:01:18 +00:00
Hannes Gredler
c74f4140b0 simplify ospf attr logging 2023-09-23 09:35:25 +00:00
Hannes Gredler
fedd6b5d88 Provide more details for the --help argument 2023-09-23 08:38:11 +00:00
Hannes Gredler
2228fd3582 Merge branch 'ospf_dev' into dev 2023-09-22 08:55:20 +00:00
Hannes Gredler
6c62b2c504 Encode the Prefix-SID Index using an Extended Prefix and not an Extended Prefix Range 2023-09-22 08:54:47 +00:00
Hannes Gredler
04273b811d Apply the proper node-index to the loopback-ip pool when announcing the extended prefix for ospf2 2023-09-21 06:07:59 +00:00
Hannes Gredler
c93c0284df Fix external packing calculation for ospf3 2023-09-20 14:32:25 +00:00
Hannes Gredler
f47538a18c Merge branch 'dev' into ospf_dev 2023-09-20 14:29:08 +00:00
Hannes Gredler
5a9afdfe02 correctly pad SID Index subTLV 2023-09-20 14:19:18 +00:00
Hannes Gredler
ad278395a1 Fix external packing calculation for ospf2 and isis 2023-09-20 14:09:28 +00:00
Hannes Gredler
6d18e28605 copy the correct ospfv3 source address 2023-09-15 17:01:04 +00:00
Hannes Gredler
b741018093 add ospf3 support for intra-area-prefix LSA 2023-09-15 16:52:18 +00:00