Skip to content

About

A partial implementation of the NFD Management protocol, used to send control commands -- like registering a route -- to a locally running NFD forwarder.

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ndn-nfd-mgmt

docs.rs crates.io license

A partial implementation of the NFD Management protocol, used to send control commands -- like registering a route -- to a locally running NFD forwarder.

This crate only implements the parts of the protocol that ndn-app needs -- it is not a complete implementation of NFD Management.

Installation

cargo add ndn-nfd-mgmt

How it works

  • make_command builds the command Interest for a module/method pair (e.g. rib/register) and ControlParameters, following NFD's /localhost/nfd/<module>/<method>/<parameters> naming convention. The caller is responsible for signing and sending it.
  • ControlParameters only carries a name; NFD's control commands support several more optional fields (FaceId, Cost, Flags, ...) this crate doesn't implement.
  • ControlResponse decodes NFD's reply: a status code, a status message, and a body.

Related crates

  • ndn-app is an application framework that uses this crate to register routes with a local forwarder.
  • ndn-tlv provides the TLV encoding/decoding traits this crate's types are built on.
  • ndn-protocol implements the Interest and Data packet types this crate's commands are built from.

License

MIT


Produced as part of a Master's thesis in Computer Science.

About

A partial implementation of the NFD Management protocol, used to send control commands -- like registering a route -- to a locally running NFD forwarder.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages