51 Commits
Author SHA1 Message Date
Junxiao Shi 931ca9f576 name-prefix-list: delete unused methods and cleanup tests
Unit tests for NamePrefixList type are deduplicated. This allows
deleting countSources() method and NamePair type, which were used
sparsely in the unit tests and not needed by the rest of the codebase.

refs #4094

Change-Id: Id5a6e6b90f863dfeef2ed71e67a9823d84088a48
2023-08-21 10:14:46 +00:00
Junxiao Shi 52f16644ab name-prefix-list: compare names only in operator==
NamePrefixList type is now a sorted container. The sort() method is
deleted.

The remove() method is renamed to erase(), in accordance with ndn-cxx
code style recommendations.

refs #4094

Change-Id: I2d3f2fa768a8dd9a51108f6f4064243b21fd6df8
2023-08-21 01:47:10 +00:00
Junxiao Shi 43f37a08fc Change namespace of DummyClientFace, Signal, Segmenter, SegmentFetcher
refs #3940

Change-Id: Ia3c9b4adcca9ff79a14be705ca9da525914f3dff
2023-08-20 02:23:22 +00:00
Davide Pesavento 658fd85bc7 Avoid using deprecated ndn-cxx type aliases
Change-Id: I55fd500377698adc8035113bdff2d64091a36e07
2023-05-10 22:15:03 -04:00
Davide Pesavento 69904fcb73 tests: fix compatibility with signed Interests in v0.3 format
Change-Id: I52bd2bfb5d9551614e2cf012b19b966d84306368
2022-10-14 09:45:34 -04:00
Alexander Afanasyev 135288cf4f lsdb: Fetch LSA from the face the notification about LSAs came from
Change-Id: Iadb7a22bcc8b2d7801787e5d88b37eec4eafc974
2022-05-24 16:12:14 -04:00
Davide Pesavento 8de8a8b37a tests: sync common testing infrastructure with ndn-cxx
Change-Id: I1e5cdcda8f6d3d9f9addc7a9f17359aedef9db7e
2022-05-12 01:26:43 -04:00
Ashlesh Gawande 5d93aa5b04 lsdb: emit signals when modified
RoutingTable and NamePrefixTable consume the signal
and behave accordingly.

refs: #4127

Change-Id: I6540f30f0222f804b01dc7d9640831c84e5264cc
2021-02-27 08:04:41 -08:00
Davide Pesavento d90338d230 Replace remaining uses of BOOST_THROW_EXCEPTION with NDN_THROW
Change-Id: I0c149acbe5607d928cdf9e8d73813d5e74ca45d0
2021-01-08 11:50:43 -05:00
Ashlesh GawandeandNick Gordon 57a8717ec7 lsdb: rebuild using boost::multi_index to replace 3 LSA lists
refs: #4127

Co-authored-by: Nick Gordon <nmgordon@memphis.edu>

Change-Id: Ic179f90019e472157b0d61c6db02a4afaf4843b6
2020-07-18 19:17:26 -07:00
Alexander Afanasyev 0ad01f3834 Adjust includes for the updated locations of ndn-cxx security headers
Change-Id: I01787a91cdb70b7136f3c4e9e646e68888e6d064
2020-06-10 12:24:26 -04:00
Ashlesh Gawande 0db4d4d8fc **breaking** consolidate src/tlv/*lsa* into src/lsa/*lsa*
Lsa de/serialize functions are replaced by wireEncode/Decode.
Update LSA wire formats. Change TLV assignments as required.
Update nlsrc to print using new encoding.

refs: #4787

Change-Id: Ie8d40b7836d51ea5bb444c8db208dc2b3a0d1cec
2020-04-14 20:06:01 -07:00
Saurab Dulal 427e012304 security: refactor CertificateStore class
Refs: #5075

Change-Id: I8ab92012b3acf405503ab33c9320463accc682a9
2020-02-13 23:05:28 -06:00
Davide Pesavento cb065f1773 tests: sync common test infrastructure with ndn-cxx
Change-Id: I6f2ee4b5b644d6fddcebbe1158b1dd9ad2159417
2019-12-27 01:03:34 -05:00
Ashlesh Gawande 6b388fc36d src: change initialization order
Send Hello Interest after route to neighbor is successfully registered
--> First Hello interval is eliminated
--> After Hello Nack, wait exponentially before processing it as a timeout
Register sync route for each neighbor after its Hello Data is validated

refs: #5009

Change-Id: Ice39a591f1e58e474b494d93c913fa45e10f24f2
2019-11-13 19:16:50 -06:00
Ashlesh Gawande 85998a1dc9 src: decouple classes from Nlsr object
refs: #1952, #2803, #3960, #4288

Change-Id: Ibe3ac3820f11e8107ee4b13e510d53c27467a6cb
2019-02-01 14:23:55 -06:00
Ashlesh Gawande 939b6f8652 src: use psync::SegmentPublisher and fix proccessing of interests w/ segments
refs: #4784, #4760

Change-Id: Ia017a6f340e1cd35991068453c9da595c453ca1f
2018-12-22 15:45:50 -06:00
Muktadir Chowdhury c3ea26f000 Serve other routers' certificate and LSA
refs #4448, #4430

Change-Id: I3a9a9ae613770774be06effe26dfb866ea49f05a
2018-01-29 23:23:19 +00:00
dmcoomes cf8d0eda75 Use ndn-cxx logging facility
refs: #3949

Change-Id: I5d0931c3576c88e0c2fa52bdd0a716946400e0bc
2018-01-22 13:24:35 -06:00
Muktadir Chowdhury f04f98943d Convert to v2::security and adapt to ndn-cxx changes
Change-Id: I54f1b758cfb8f3f6cbc66a1aec5120ae1640b0ec
refs: #3964
2017-11-30 20:54:47 +00:00
Nick Gordon faf49f4c32 lsa: leverage class hierarchy when serializing.
refs: #4354

Change-Id: Ia3e79694c785b208184137d8ef0813629d61cc83
2017-10-26 11:08:25 -05:00
Nick Gordon 727d4830d7 lsa: change type variable to enum class
Change-Id: I7fba951649771700ce6ccc4be7fb400546607e96
refs: #4340
2017-10-19 15:44:06 -07:00
Nick Gordon 8f23b5d58e sync: improved unit tests
refs: #4264

Change-Id: I981f3d8f653e4750ee6f9d77f2c89188f11d8ebb
2017-09-06 14:23:16 -07:00
Nick Gordon 9eac4d9830 sync: removed ref to lsdb.
Sync now emits to a signal whenever a new LSA is detected, and the LSDB
listens to this signal.  Sync consults a function object gotten at ctor time
to determine LSA newness.  This means Sync no longer needs a reference to
the LSDB, and LSA newness criteria can be freely manipulated.

Change-Id: Ifce3ebfc921ad846fcfa12d99c78f3b337180827
refs: #4264
2017-09-05 12:20:53 -07:00
Nick Gordon 098aae410a tests: make LSDB tests more deterministic
TestLsdb/LsdbSync now iterates over all sent Interests to
check that any of them match, as opposed to checking
positionally, which cannot be guaranteed to pass.

Change-Id: Ib9e3a4b0aea4e1a4dd9f1c7e65d1b2a299863a9c
refs: #4257
2017-08-23 14:47:29 -07:00
Nick Gordon e98480b5d1 nlsr: removed references to ndn-cxx/common aliases and improved namespacing
Change-Id: I65e4691305b0157f334fc68d96998c119ef8b03b
refs: #3406
2017-08-22 13:37:21 -05:00
Nick Gordon f14ec357d5 nlsr: Add support for sources to NamePrefixList
Added support for string sources to NamePrefixList entries.  Required was
some tweaking of the API, and refactoring usage around the codebase.

Change-Id: I44813e024a88dc1f591f427b0fad568a7d5353ab
refs: #4177
2017-08-16 15:00:14 -07:00
Ashlesh Gawande 3e105a0493 Use separate name prefix and sequence number for each LSA type
refs: #1523

Change-Id: I9db6b3a3ea9ce5e17e132d2a4e2ae9f30dd4f591
2017-06-09 13:54:24 -05:00
dmcoomes 9f93666519 nlsr: Don't use ndn aliases provided by ndn-cxx/common.hpp
refs: #3983

Change-Id: I31da8d68e0285dcfe9c7d3e5e678c00397d22bef
2017-03-09 12:12:40 -06:00
Laqin Fan a4cf402084 nlsr: Pass keyChain to NLSR constructor
refs: #3742

Change-Id: I186784da2989aa8bcc396c81c4fc80254a6f313a
2017-02-01 10:18:05 -08:00
Nick Gordon feae5574b8 boilerplate: Update copyright year in .cpp files
refs: #3923

Change-Id: I8a46f2634527094d82c85c605384f25ddd172732
2017-01-13 12:18:32 -06:00
Nick Gordon fad8e257c0 Fixed namespace formatting across all files.
refs: #3735

Change-Id: Ia04f0895de9906e280d6140f775bb6609db714e6
2016-08-12 13:49:12 -07:00
Muktadir R Chowdhury aa3b085384 lsdb: Segment LSAs larger than max segment size
refs: #2965

Change-Id: I5dd091b663db2cc5e2d925144e57ee55a486b3cd
2016-07-26 12:27:55 -05:00
Ashlesh Gawande d02c3880d5 lsa: Accept LSA type argument in LSA base constructor
refs: #2788

Change-Id: I12d9b26fb9087b037134988f1594576ed7ba90f3
2016-07-25 18:28:39 -05:00
Muktadir R Chowdhury c69da0a350 tests: Use ndn-cxx/DummyClientFace
refs: #2637

Change-Id: Ife16a81d08e538b4b0a82f1f5d4cc819fc764257
2016-01-11 12:05:24 -06:00
Vince Lehman 9d09780605 comm: Create SyncSocket on initialization
refs: #2649

Change-Id: I9e5891b8ad5de9a6ff6ac4edab4bab1564a309c8
2015-04-11 13:19:11 -05:00
Vince Lehman c2e51f6b6b src: Update copyright notices for files modified in 2015
refs: #2398

Change-Id: I83b7ad4da70cf784aa478295a873bf6411428acb
2015-01-22 11:25:03 -06:00
alvy 49b1c0c23f src: Replace LSA string literals with constants
refs: #2310

Change-Id: I0823c320400fe03b6268982cec05578c04d82ca8
2015-01-22 08:01:13 -08:00
Vince Lehman 0bcf9a361d comm: Make SyncLogic responsible for update prefix
refs: #2289

Change-Id: I7687e36c88853bdf58de654b1ca280662a826b4b
2015-01-15 10:07:39 -08:00
Ashlesh Gawande 5bf83175c3 src: Stop outdated LSA retrieval
refs: #1987

Change-Id: I5c2bbe75e4bb0a09d971a35db87591873f81a84b
2014-10-16 10:24:16 -05:00
Vince Lehman f1aa52389a src: Sort names before std::set_difference
refs: #2029

Change-Id: I170f17cd69fd5a109913c6ebe9a13ab5552132a3
2014-10-08 12:51:25 -07:00
Vince Lehman 904c2413b2 comm: Stop SyncLogicHandler from fetching own LSAs
refs: #2005

Change-Id: I717a5258673dd5308fdf6561dbdb626ae4c74e9f
2014-10-01 17:22:36 -05:00
Vince Lehman 7c60329b07 src: Remove Scheduler instance from Nlsr class
refs: #1981

Change-Id: Iecbe9f975c2740ce04df8593ccde03486d4b7be8
2014-09-11 17:54:26 -05:00
Vince Lehman f99b87fe07 src: Add additional log levels
refs: #1935

Change-Id: Ie3ef3f04fbcadd8fb9ee6f3aade4a35bd2a88105
2014-08-29 11:58:18 -05:00
Alexander Afanasyev 411ee4bf23 config+lsdb: Retry retrieve each LSA for lsa-refresh-time
This commit also includes extension of the config file
(`lsa-interest-lifetime` parameter in general section)

Change-Id: Ifd01af8cc98d41f7bdc953799a280e4b4269a358
Refs: #1873, #1874
2014-08-20 10:26:34 -05:00
akmhoque 3d06e79119 src: Adding copyright message
Change-Id: Ie511b5e0b54161cd9c428498de34d32ed40e74df
2014-05-28 08:22:57 -05:00
akmhoque c7a79b2adb src: Expiration time change for LSA and Fib entry
Changed lifetime of LSA and FIB Entry to ndn::time::system_clock::TimePoint
type expiration timepoint. And refreshing event is scheduled at that timepoint

Refs: #1594

Change-Id: Ib31fe7ca79e79174eb3a5a4956ed5334da093b1b
2014-05-27 13:49:33 -05:00
akmhoque 157b0a473a src: configuration file parsing
used boost::property_tree::info_parser for parsing nlsr's configuration file and
changed configuration command style to info command style. Removed tokenizer from
nlsr

Refs: #1542

Change-Id: If017ddd7eef5caa59b33940bfc27a71aa4de266b
2014-05-20 12:47:44 -05:00
akmhoque 31d1d4b331 src: Replace Tokenizer with the methods of ndn::Name
Purpose of this commit is to replace Tokenizer in all
places except conf-file-processor.*pp with the methods
of ndn::Name. One static method in class NameHelper
is added. Tokenizer will be removed finally when
configuration file parsing commit is complete.

Refs: 1533

Change-Id: I14a67655eb963c5cc5b045c3c9f7d516e405ff19
2014-05-12 11:08:57 -05:00
akmhoque fdbddb114e src: Renaming class to spell out them (Adl, Nhl, Npl, Npt, Npte)
Refs: #1534

Change-Id: If4a205e8ad2419505cc796027a5c863471ef5439
2014-05-02 23:40:42 -07:00