Commit Graph

343 Commits

Author SHA1 Message Date
Alexander Afanasyev 6f570de8d7 core: Make PrivilegeHeper::drop|raise no-op operations on platforms that do not support drop/elevation of privileges
Change-Id: I13b53ba27cee59d58b816d060501499517e6dc37
2015-02-11 20:59:09 -08:00
Alexander Afanasyev 31367925c6 rib: Refactor initialization of NRD instance
This commit also makes Face used inside NRD be adaptive to nfd.conf.
More specifically, it will use the same unix socket path as specified in
face_system.unix section.  If this section is not present, it will use
the same tcp port as specified in face_system.tcp section.  If tcp
section is also absent, nrd will abort execution.

Change-Id: I48f75ddf972f259055cd61824e3c228ca1d6a639
Refs: #2496
2015-02-11 16:13:26 -08:00
Alexander Afanasyev 31c781e453 daemon: Refactor initialization of NFD instance
Change-Id: Ie4181a0b65e249c7067a11e941dcea77f010e4b1
Refs: #2496
2015-02-10 19:12:05 -08:00
Junxiao Shi a788e25e70 fw: rename RetransmissionSuppression to RetxSuppressionFixed
This commit also declares RetxSuppression base class as the API
for any retransmission suppression decision algorithms,
so that other algorithms can be introduced.

refs #1913

Change-Id: I5539565d2dd238d1421f5bd828fde4ecfba0a820
2015-02-04 06:56:03 -08:00
Alexander Afanasyev 7c10b3bdc8 docs: Prepare release notes for version 0.3.0
Change-Id: If0ae14cbf97ee3d9b92a3467d0b6592c10e66698
Refs: #2462, #2352, #2209
2015-02-02 19:21:57 -08:00
Junxiao Shi 5af9bd3d6d table: reduce implicit digest computation in ContentStore
refs #1706

Change-Id: Ic6c4c25f2ef722b9ee37e22362ad57a434bbf821
2015-02-02 15:37:34 -08:00
Davide Pesavento 66ff0989c5 face: cleanup log messages in all faces and print fail reason
Change-Id: I405198b375a0317663d29810ee87922a19edccaa
Refs: #2450
2015-02-02 17:59:02 +01:00
Davide Pesavento 9a090a0f91 EthernetFace: report packets dropped by the kernel if debug is enabled
Change-Id: I8b0f9774c4ad785da476aba88f0b6a212256bf51
Refs: #2441
2015-01-30 03:55:23 +01:00
Alexander Afanasyev 0e156df634 face: Remove unnecessary use of DNS resolver in (Udp|Tcp|WebSocket)Factory
Change-Id: Idbc743fe4c7d567a09acccef98fe6de26f8295f0
Refs: #2422
2015-01-27 09:24:35 -08:00
Junxiao Shi a37405dbd8 face: fix NDNLP PartialMessage cleanup scheduling
refs #2414

Change-Id: Ida9e47e41c4dde9b3ee0ee7003fc4aaa79ea55df
2015-01-26 15:05:26 -07:00
Junxiao Shi 80ee7cb931 fw: access strategy
refs #1999

Change-Id: I5fc284d7ae82ed933bf5937d5c687885e73c3e0a
2015-01-24 21:44:20 -07:00
Junxiao Shi 04cf5a99d9 Merge branch 'feature-cs' into master
refs #2254

Change-Id: Iafd4b8d51477fc11340156cc65c2732923e16354
2015-01-22 17:35:49 -07:00
Junxiao Shi 6316220d36 fw: fix NccStrategy loop back to sole downstream
refs #1998

Change-Id: I81c089f67aa6278a4fcb42ec79a32eed065e19f5
2015-01-21 14:26:21 -08:00
Junxiao Shi fc20696c59 table: ContentStore enumeration
refs #2254

Change-Id: Ic440afea2197f12f7720adb559b836d08e864bed
2015-01-20 12:16:43 -07:00
Chengyu Fan 4381fb6b11 core: use ndn::dns from ndn-cxx
refs #2207

Change-Id: Ice97c9203283b5b89982049cb29c0ccfed0ef422
2015-01-19 23:08:52 -08:00
Alexander Afanasyev 319f2c8dbc src: Update copyright notices for files modified in 2015
Change-Id: Ia52e6e891a06fcc7ace06eafd2fffecd7bd55a95
Refs: #2352
2015-01-19 21:45:21 -08:00
Junxiao Shi 192af1f71c fw: abstract retransmission suppression logic
Consumer retransmission suppression logic of best-route v2 strategy
is abstracted into RetransmissionSuppression class, so that it can
be reused in other strategies.

refs #2377

Change-Id: I7de2c2d0e60c5ad3467e24283e9b03bd03f65bdc
2015-01-19 10:50:32 -07:00
Junxiao Shi 5640ec8934 table: better ContentStore findRightmost algorithm
refs #2254

Change-Id: Ib8f473f0cce1a1636b600a98494292499d71972e
2015-01-15 21:43:55 -07:00
Junxiao Shi 35353963db table: MeasurementsAccessor findLongestPrefixMatch & findExactMatch
This commit also improves unit testing of MeasurementsAccessor,
and changes signature of MeasurementsAccessor constructor.

refs #2314

Change-Id: Ie0494628c6d3faac0473bc4cfb21998f89270aaf
2015-01-09 14:04:43 -08:00
Junxiao Shi 1e46be30e4 core: rename nfd::EventId to nfd::scheduler::EventId
refs #2298

Change-Id: I5d4f4c5234fd370666e81a8a8e7d312694a6ad5d
2015-01-09 09:52:56 -07:00
Junxiao Shi 767cb33632 table: Measurements::findLongestPrefixMatch(pit::Entry)
refs #2314

Change-Id: Iebe80240760b22b573da1e6d23b43273ff3efbeb
2015-01-08 09:35:49 -07:00
Junxiao Shi b30c7b0596 table: accept predicate in Measurements::findLongestPrefixMatch
This commit also deletes unused Measurements::s_defaultLifetime constant.

refs #2314

Change-Id: I6ffce7dee828f1f9aa47099777df6ee0615ce4f1
2015-01-07 23:52:58 -08:00
Junxiao Shi c099ddb587 face: replace EventEmitter usage with Signal
refs #2300

Change-Id: I17d0d65d2c474b17dd9f23f271a6144b0b4fbc07
2015-01-06 20:50:15 -07:00
Junxiao Shi a22a217261 face: fix overhead estimation in NDNLP slicer
refs #2317

Change-Id: I1b2ec985a075083386c7117494478666eb28802e
2015-01-06 12:07:44 -08:00
Alexander Afanasyev c91ebfa900 table: Allow iteration over CS entries
Change-Id: I23bf0da9a853de70187c9e72a0f7a5cb98107fbd
Refs: #2340
2015-01-06 10:50:27 -08:00
Alexander Afanasyev 8934c4212a table: Ensure that Cs::erase removes the item from the cleanup index
Change-Id: Iefe658904829fa662c4854c38a5d57dad5e80222
Refs: #2348
2015-01-06 10:50:27 -08:00
Alexander Afanasyev 750fa1cf86 table: Allow iteration over PIT entries
Change-Id: If48d7f827ccb5df0480cfa27bd2f3db4e3f796fa
Refs: #2339
2015-01-06 10:50:27 -08:00
Alexander Afanasyev 09fc3d9df8 table: Ensure Fib::const_iterator is default and copy constructible
This functionality is necessary for ndnSIM python bindings and is
technically required by ForwardIterator C++ concept
(http://en.cppreference.com/w/cpp/concept/ForwardIterator)

Change-Id: Ibe0812c3a2cf05840cd3e83b941cc52affe2ac65
Refs: #2338
2015-01-06 10:50:27 -08:00
Alexander Afanasyev eae4f80d2c face: Limit exposure of EthernetFace implementation
It seems that gcc 4.6 on Ubuntu 12.04 has some issue with
std::unordered_map in EthernetFace implementation, causing it segfault
in some cases.

Change-Id: I0c5a3be66e357e2bd83841d833d601c2fba6936a
Refs: #2347
2015-01-06 10:48:00 -08:00
Junxiao Shi 39ef261a29 table: StrategyInfoHost stores multiple StrategyInfo of distinct types
refs #2240

Change-Id: I25062260e3bb4f2f36989305431d4b718d320505
2015-01-04 04:55:45 -08:00
Davide Pesavento f8b41eb1b1 face: Fix ioctl() calls on platforms where libpcap uses /dev/bpf*
Change-Id: I2ed2cacf4915458d9b95f0a07beda46039aaa39d
Refs: #2327, #2328
2014-12-30 03:14:33 +01:00
Davide Pesavento 8eb9957db6 face: Support MTU larger than 1500 in EthernetFace (for jumbo frames)
Change-Id: Id784315569e11794dceaceffb4bb0af21b69be44
Refs: #2305
2014-12-19 19:14:36 +01:00
Alexander Afanasyev c5173de511 face: Don't crash when attempting to create UdpFace over a half-working connection
Change-Id: Ib32128074f8dfe834fde033517325f994d648767
Refs: #2311
2014-12-18 13:12:42 -08:00
Chengyu Fan b94af7c82f mgmt: Allow only canonical FaceUri in faces/create command
refs #1910

Change-Id: I89a84cd8584d5a718bcc85db05cc337b4b4f8f73
2014-12-16 21:47:07 -08:00
Junxiao Shi a938818047 table: rewrite ContentStore
This is the first of a series of commits that rewrites the ContentStore
with a cleaner design.

refs #2254

Change-Id: I6595dca63137760d2283934a8f311a14dc2183bf
2014-12-15 21:48:30 -07:00
Junxiao Shi 49e11e797e fw: give strategy access to FaceTable
refs #2272
Change-Id: I1a390dac1da8489adcffb71d488b3b8a52d257bd
2014-12-15 11:31:01 -08:00
Junxiao Shi 1e064171da fw: use Signal in FaceTable
refs #2272

Change-Id: I831963b8311c257178ad0da16d62e48b476bfee3
2014-12-15 11:30:55 -08:00
Junxiao Shi 1c93cae6c5 fw: add override specifier to Strategy triggers
refs #2281

Change-Id: I5357ac6a93260492900d24c8955fdd7397ef2d27
2014-12-12 06:47:59 -08:00
Steve DiBenedetto cd4ee5fcb4 mgmt,rib: check command length before accessing verb
refs: #2151

Change-Id: I0e67fd4b4df10d842648797ed42771af7c53a938
2014-12-09 00:12:43 -07:00
Junxiao Shi ac7b437cdb table/face: fix unused variable warnings in NameTree and NDNLP Slicer
refs #2290, #2287

Change-Id: I40f80f4c8a9fe830edafeada2bbd0b881194d0a3
2014-12-15 07:33:22 -08:00
Alexander Afanasyev 70aaf8ad81 face: Prevent infinite loop in TcpFactory and UdpFactory
Change-Id: Idd694bc08033c524f3c0e569ed74341aa33fce31
Refs: #2292
2014-12-14 17:32:29 -08:00
Matteo Sammarco 66df974ce8 face: implement NDNLP fragmentation in EthernetFace
Change-Id: I5b9ff271087ca0b2d5ee38be2f77911cfe9283f4
Refs: #1209
2014-12-08 06:35:09 -08:00
Junxiao Shi e368d999a1 table: simplify Measurements with C++11 features
This commit also changes TableMeasurements test suite to use UnitTestTimeFixture.

refs #2100

Change-Id: I6af9fbae435fb50d26f6ec54abc7219680c8ade8
2014-12-07 19:56:27 -07:00
Hila Ben Abraham 2ef995772b tools: display nfd software verion in nfd-status-http-server and nfd-status
refs #1916

Change-Id: I0ba272d4ba9314d483776526d05eaf0f2393dbac
2014-12-06 23:32:34 -08:00
Junxiao Shi afbd74d9f1 core: eliminate MapValueIterator in favor of boost::adaptors::map_values
refs #2239

Change-Id: Ifcc03513b1cbe580de12725baa4338f822a71417
2014-12-04 03:39:16 -08:00
Junxiao Shi 5ccd0c27fd table: use boost::iterator_range in NameTree
refs #2155

Change-Id: I14efacf26aa1143177038fff3cf20d9d845f2c68
2014-12-04 01:41:45 -08:00
Junxiao Shi 4b2e6cb321 table: fix Fib::removeNextHopFromAllEntries invalidating NameTree iterator
refs #2177

Change-Id: I19b8234d94b804273404176d6751a91f082653b7
2014-12-03 10:36:27 -08:00
Davide Pesavento 7726ae5182 face: make EthernetFace more robust against errors.
We now call .fail() instead of throwing an exception.

Also modernize the code with some C++11 features.
In particular, std::unique_ptr is now used to manage
the pcap instance.

Change-Id: I91200ff9ab64ddb2d86f082647043e42ca85f538
Refs: #1984
2014-12-02 20:35:27 +01:00
Junxiao Shi 60607c734d table: make NameTree enumeration usable with range-based for
NameTree::fullEnumerate and NameTree::partialEnumerate are changed
to return a type usable with range-based for.

NameTree enumeration test cases are also simplified.

refs #2155

Change-Id: I315d9502d2194670aa7054ab956ededefb0c7ca0
2014-11-29 10:35:06 -08:00
Junxiao Shi 2bf8d2a703 table: pit::FaceRecord uses DEFAULT_INTEREST_LIFETIME from ndn-cxx
refs #2202

Change-Id: If3988f34006d0f5e86aa801774f3a9be15bfa9b8
2014-11-29 10:26:15 -08:00