Commit Graph
171 Commits
Author SHA1 Message Date
Alexander Afanasyev 7b7dfdd1ad tools: Fixing bugs in nfd-status
Also in this commit: implementing const_reverse_iterator in FaceTable.
It also would be good to have reverse iterator in Fib, but not strictly
necessary.

Change-Id: Ie9cf849b718f5db76db2957b4452790f9ae68fd3
Refs: #1378
2014-03-22 17:27:10 -07:00
Davide Pesavento e4631003a9 face: silence silly warning thrown by clang.
Clang 3.3 complains about a "missing field initializer" for struct ifreq.
However, according to the standard, if there are fewer initializers in a
brace-enclosed list than there are elements or members of an aggregate,
the remainder of the aggregate shall be initialized implicitly as if they
were declared static, i.e. with zero or default-constructed value.

Therefore using "= {0}" is correct (and common practice in C). Emitting
a warning doesn't make sense. As a matter of fact recent GCC releases
disabled it.

Luckily this is C++ and we can simply use the "empty braces" initializer
(which wouldn't be valid C99 syntax) to silence the compiler.

Change-Id: Ibee8d17cc9b5d0eaa5270c52f3596b7994b5e911
2014-03-21 15:44:42 -07:00
Davide Pesavento d8d4d98656 face: delete redundant protocol typedefs.
Change-Id: I32e1100e7395070a29ee813658aac82b63b6c4f2
2014-03-21 23:34:33 +01:00
Davide Pesavento 73c65d7bae face: mark UnixStreamFace constructor explicit.
The keyword was accidentally removed in commit
355c066fe1.

Change-Id: I1e345cf5ccb1d5ddc56419fb19493eb446590880
2014-03-21 18:08:59 +01:00
Davide Pesavento b60cc1298d face: use NetworkInterfaceInfo directly in EthernetFace.
Finally getting rid of EthernetFactory::findAllInterfaces()
and EthernetFace::getInterfaceAddress().

Change-Id: I94fe2016cc98778af3115569b1d21d5c48425d9c
2014-03-20 21:07:22 -07:00
Alexander Afanasyev 355c066fe1 face: Implementing new "isOnDemand" flag
This flags replaces isPermanent flag in datagram faces, but with the
reversed logic (isPermanent = !isOnDemand)

Change-Id: I37ba604e5f105ca95a79a08b8cfc3d640df8b412
Refs: #1376
2014-03-20 18:10:44 -07:00
Steve DiBenedetto fbb40a8d29 mgmt: add face event notification and notification stream
refs: #1244

Change-Id: I14bd327be53bcb607b457d6cb4bd66bd28a2feaa
2014-03-20 17:09:05 -06:00
jeraldabraham b6dde389bf tools/nfd-status: plain text status command
Change-Id: Id0f5eebd7d811ee8f4f76eb867687f78c445ad97
Refs: #1328
2014-03-19 22:50:34 -07:00
Davide Pesavento 6fc750f7cb tools: fix two warnings produced by gcc-4.8.
Change-Id: Ia27dd0b84b4a0e429f005ba4c0a5a5479dfc6769
2014-03-18 23:15:35 -07:00
Alexander Afanasyev eb3197fa35 all: Update code to compile with latest time-related changes in ndn-cpp-dev library
Change-Id: I7e859989c833001f49b286d4a9917f4dc740b4a4
2014-03-18 17:34:12 -07:00
Steve DiBenedetto 791c46a9b8 mgmt: enable UDP and Ethernet multicast in default configuration
refs: #1332

Change-Id: I44c5c74d114b869ddc8ca360ca50fe956797e0a3
2014-03-18 16:54:06 -07:00
Junxiao Shi bd392bf1e4 fw: FaceTable onAdd,onRemove events
refs #1244

Change-Id: I8710dedaba94c1fcd852bd3aa2f21d39ad0bd7ee
2014-03-18 15:24:19 -07:00
jeraldabraham 8d840000e9 ndn-tlv-poke: simple producer to read payload from stdin and send it to local NDN forwarder as a single Data packet
refs: #1350

Change-Id: I5f5f86819beadfa6ecb4e62944d774417de8d6c0
2014-03-17 13:43:48 -07:00
hilata dd50ada734 tools: NDN hub discovery server & client
refs: #1295, #1296

Change-Id: I2fb5a0a8d6435e39aca080cb51b683820dbd959e
2014-03-17 14:28:35 -05:00
Steve DiBenedetto 6214e568a9 mgmt: add support for FIB enumeration protocol
refs: #1192

Change-Id: If9198c7d90d8882e9590ce93165667923df59a03
2014-03-17 12:56:46 -06:00
Junxiao Shi ea48d8bb7c mgmt: StatusServer
refs #1199

Change-Id: Idf2181dde857970f026e8147b60d09dea45007a1
2014-03-17 11:11:44 -07:00
Steve DiBenedetto 1a3c6738a8 mgmt: add certificate generation/export instructions to nfd.conf.sample.in and README.md
rename configuration file's "keyfile" field to "certfile" to reflect usage of
  an NDN certificate
nfd.conf certfile paths are now interpreted as relative to nfd.conf's location

refs: #1332

Change-Id: Ib91cffd3d113ef084bf19e87a85172ddfd16b7eb
2014-03-17 09:01:06 -07:00
Junxiao Shi c542b2b6a9 fw: invoke FaceTable::remove upon Face::onFail
refs #1358

Change-Id: Ic19a88f0aea5adefbd3179de09f9f4e049922ff8
2014-03-16 23:00:58 -07:00
Junxiao Shi 57f0f311f2 fw: make strategies understand scope
refs #1253

Change-Id: I57f7a6008e6f08c9817e58f480020eb9219a4aec
2014-03-16 17:19:28 -07:00
hilata 141eaae99e nfdc: strategy-choice
Change-Id: I806ed8296b6cc3be4a142ac2b5e08629930614a2
refs: #1312
2014-03-16 17:00:28 -07:00
jeraldabraham 20b2dc5db2 ndn-tlv-peek: simple consumer program that sends one interest and expects one response
refs: #1349

Change-Id: I5b98baf63ffdea5ec1c9bf1e98953e2035339e41
2014-03-16 13:51:38 -07:00
Steve DiBenedetto 1d75f54e4b mgmt: refactor StrategyChoiceManager to use StrategyChoiceOptions (from FibManagementOptions)
refs: #1311

Change-Id: I104acede81d2ff00607b37ebccf741836aee3efb
2014-03-16 13:30:25 -07:00
Junxiao Shi 11bd9c28e8 fw: /localhop scope control on outgoing Interests
refs #1253

Change-Id: I359747688568934070d1583995957835ac690f28
2014-03-15 22:27:19 -07:00
Junxiao Shi b289cc18fc fw: ForwarderCounters
refs #1199

Change-Id: I0664825d7b09b4e7e893876aefc5af10e53b90b1
2014-03-15 16:22:33 -07:00
Steve DiBenedetto 9f6c3642ce mgmt: add face/list support and general purpose data segementer
refs: #1245

Change-Id: I3769941022b7ed6e2a8d39622032e4e16909f645
2014-03-15 11:40:17 -07:00
Davide Pesavento 9eaeac7716 face: enable promiscuous mode in Ethernet face.
This is a temporary hack to be able to receive NDN packets sent to
an Ethernet multicast address different from the broadcast address.
It'll be removed when task #1278 is properly implemented.

Change-Id: I87380637ef2993cf28889ab69f13dc8b75b9644e
2014-03-15 10:18:33 +01:00
Alexander Afanasyev eee71fd6bc face: Disable IPv4-mapping of IPv6 addresses in TCP and UDP channels
Change-Id: I9997ed4114b9708778ee55f82f567264dede6798
Refs: #1352
2014-03-13 17:49:00 -07:00
Junxiao Shi e349ea10e0 table: clear StrategyInfo during strategy change
refs #1234

Change-Id: Idd5383a5f8bc706aceea5a630b93cd4ab9bd2c3a
2014-03-13 15:36:41 -07:00
Davide Pesavento 126249b30a tests: delete two unused variables in UDP tests and cleanup some code.
Change-Id: I453196b28ae227c98ed2e112eaa21cf6d8076534
2014-03-13 02:42:21 +01:00
Steve DiBenedetto 9dcc63304c mgmt: fix bad NFD_LOG_INFO statement in ManagerBase
refs: #1351

Change-Id: Id37451358840191310dd3c28b74b09faf5eb5731
2014-03-12 16:34:55 -07:00
Steve DiBenedetto 84da5bfa3f mgmt: add sample configuration file and install default configuration
refs: #1332

Change-Id: Ic50aac57382b9760aa3b1c22b7dd2a9fec589cf9
2014-03-12 17:13:05 -06:00
Steve DiBenedetto 4aca99c601 mgmt: add UDP IPv4 and ethernet multicast face creation to face manager
refs: #1195

Change-Id: I693772d6a5c79873c5715718a6cacd80dc8c74e1
2014-03-12 16:07:39 -06:00
Davide Pesavento 56fb59799d face: Implementation of ethernet::Address::fromString()
Change-Id: I18279bee23f8e80ee667099c1207e50556fbd1a1
2014-03-12 10:47:01 -07:00
HangZhang 5d46942329 table: FIB enumeration
refs #1315

Change-Id: I535d519836720c40f72904e5520d11026ea30a33
2014-03-12 10:12:00 -07:00
Junxiao Shi f3c0781d22 fw: refine pipelines, dispatch to strategy
refs #1345 #1255

Change-Id: If1cfc26049f87318103fc09c3b211ebf1eb3ebaa
2014-03-11 22:33:15 -07:00
hilata dc947ec7b7 nfdc: delete fib/insert and fib/delete commands.
refs: #1342

Change-Id: I38ac207ca78acb159975448680a74fc37e27e8ec
2014-03-11 17:46:46 -07:00
Steve DiBenedetto d030cfca45 mgmt: fib manager implicit fib entry insertion and deletion
refs: #1340

Change-Id: If552bbff71b54c4616ff4478a470c9cdc2a5c4e4
2014-03-11 17:13:28 -07:00
Steve DiBenedetto 2c2b889ea2 mgmt, main: add support for authorized commands
refs: #1227

Change-Id: I907d1fa6e78775470c5376fcdfe898be4c311001
2014-03-11 17:08:31 -07:00
HangZhang cb4fc83bff table: shortcuts between FIB, PIT, Measurements, StrategyChoice
refs #1202

Change-Id: Ie63ab792e840de7e0889d385d3e8ea8a112cb7e5
2014-03-11 16:31:09 -07:00
Giulio Grassi 69871f03d3 face: close idle Datagram faces
refs #1281

Change-Id: Ifc766964f653d3991b55d76361c8b9bbe5d630cf
2014-03-11 15:54:48 -07:00
Davide Pesavento 248d6bd666 core: add free function to enumerate network interfaces.
Change-Id: Icd89662afe9e1295cd18a615970c5b4299529b38
Refs: #1306
2014-03-11 12:17:49 -07:00
Junxiao Shi efceadc378 fib: implicitly delete empty Entry
Fib::removeNextHopFromAllEntries automatically deletes fib::Entry
if the last nexthop record is being removed.

refs #1341

Change-Id: I36d42fe8f9fc8f03d194f845020aff408cd70488
2014-03-09 19:39:26 -07:00
Haowei Yuan e1079fc4e4 table: NameTree enumeration
refs #1318

Change-Id: I26f25cefe8f2939ca884103f1b081c0c02325207
2014-03-09 19:37:04 -05:00
Steve DiBenedetto 5330e0dda1 mgmt, main: add strategy choice management and deprecate fib/set-strategy
refs: #1311

Change-Id: Icc88f201f3c13a5a25ec1bdadec35f93c76b2b94
2014-03-08 21:45:28 -07:00
Steve DiBenedetto abe9e97a5e mgmt: added FaceManager to create and destroy faces
Change-Id: I5a7ca67faed1bfd850943fe4c93675d84c79ac39
Refs: #1195
2014-03-08 14:10:49 -07:00
Alexander Afanasyev 7e698e6aac face: Incrementing Face counters
Change-Id: Ia1d7917bb52cf01ab2ff304638bc9f6cbdb2626f
Refs: #1178
2014-03-08 20:27:43 +00:00
Alexander Afanasyev 6f5ff63f86 face: Fixing a bug in UdpChannel with missing async_receive
In cases when UdpChannel dispatches received UDP packet to a newly
created UdpFace, the Channel failed to resume reception of datagram on
the channel.

Change-Id: If876dacc237bd0a6a660d4d88581959782dc349b
2014-03-08 20:27:43 +00:00
Alexander Afanasyev 69a342712d face: Fix bug when TcpChannel::handleSuccessfulConnect seem to be called before channel is acutally connected
Change-Id: Ibf50da48f01137649ffd90e8f6d16c4f03c87a2b
Refs: #1344
2014-03-08 01:58:47 -08:00
Steve DiBenedetto 86fce8ea6e mgmt: create Data response using make_shared
refs: #1335

Change-Id: Ib237616d39575b00bfc8c3cbeeb8048dea2cf4db
2014-03-06 12:16:55 -07:00
Ilya Moiseenko 76cf77a5cb table: ContentStore based on skip list
ref: #1212

Change-Id: Iaa13aa7c110c3cd059438bf553a19b4fcd07e137
2014-03-06 15:29:38 +00:00