hilata | 6ee6e07 | 2014-04-20 17:10:18 -0500 | [diff] [blame] | 1 | .. _ndn-autoconfig-server: |
| 2 | |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 3 | ndn-autoconfig-server |
| 4 | ===================== |
| 5 | |
Davide Pesavento | 9f6a7d9 | 2020-10-06 15:21:48 -0400 | [diff] [blame] | 6 | Synopsis |
| 7 | -------- |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 8 | |
Davide Pesavento | 9f6a7d9 | 2020-10-06 15:21:48 -0400 | [diff] [blame] | 9 | **ndn-autoconfig-server** [**-h**] [**-V**] [**-p** *PREFIX*]... *FACEURI* |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 10 | |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 11 | Description |
| 12 | ----------- |
| 13 | |
Niv Sardi | 5e8755c | 2016-12-13 14:11:53 -0300 | [diff] [blame] | 14 | ``ndn-autoconfig-server`` is a daemon that implements the server part for the stage 1 of |
hilata | 6ee6e07 | 2014-04-20 17:10:18 -0500 | [diff] [blame] | 15 | :ref:`NDN hub discovery procedure`. |
| 16 | |
| 17 | This daemon essentially waits for Interests for ``/localhop/ndn-autoconf/hub`` and |
Niv Sardi | 5e8755c | 2016-12-13 14:11:53 -0300 | [diff] [blame] | 18 | satisfies them with a Data packet that contains a TLV-encoded FaceUri block. The value of |
| 19 | this block is the ``Uri`` for the HUB, preferably a UDP tunnel. |
hilata | 6ee6e07 | 2014-04-20 17:10:18 -0500 | [diff] [blame] | 20 | |
Junxiao Shi | f0dfb33 | 2017-02-02 05:32:25 +0000 | [diff] [blame] | 21 | ``<FACEURI>`` |
hilata | 6ee6e07 | 2014-04-20 17:10:18 -0500 | [diff] [blame] | 22 | FaceUri for this NDN hub. |
| 23 | |
Junxiao Shi | f0dfb33 | 2017-02-02 05:32:25 +0000 | [diff] [blame] | 24 | ``-p <PREFIX>`` |
Niv Sardi | 5e8755c | 2016-12-13 14:11:53 -0300 | [diff] [blame] | 25 | A local prefix for which the local hub allows end applications to register prefixes |
Yingdi Yu | 7b0e9cf | 2014-08-29 14:57:32 -0700 | [diff] [blame] | 26 | (See more details in :ref:`local-prefix-discovery`). One can supply more than one |
| 27 | prefixes. All supplied prefixes will be put into the local prefix discovery data |
| 28 | as described in :ref:`local-prefix-discovery`. If no prefix is specified, |
| 29 | auto-config-server will not serve any local prefix discovery data. |
| 30 | |
Davide Pesavento | 59769b1 | 2017-11-12 23:52:06 -0500 | [diff] [blame] | 31 | ``-h`` |
| 32 | Print usage and exit. |
| 33 | |
| 34 | ``-V`` |
| 35 | Print version number and exit. |
| 36 | |
| 37 | Exit status |
| 38 | ----------- |
| 39 | |
| 40 | 0: No error. |
| 41 | |
| 42 | 1: An unspecified error occurred. |
| 43 | |
| 44 | 2: Malformed command line, e.g., invalid, missing, or unknown argument. |
| 45 | |
| 46 | 4: Insufficient privileges. |
| 47 | |
hilata | 6ee6e07 | 2014-04-20 17:10:18 -0500 | [diff] [blame] | 48 | Examples |
| 49 | -------- |
| 50 | |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 51 | :: |
| 52 | |
hilata | 6ee6e07 | 2014-04-20 17:10:18 -0500 | [diff] [blame] | 53 | ndn-autoconfig-server tcp://spurs.cs.ucla.edu |
Alexander Afanasyev | 49272f7 | 2014-04-06 21:49:46 -0700 | [diff] [blame] | 54 | |
Yingdi Yu | 7b0e9cf | 2014-08-29 14:57:32 -0700 | [diff] [blame] | 55 | ndn-autoconfig-server -p /ndn/edu/ucla tcp://spurs.cs.ucla.edu |
| 56 | |
hilata | 6ee6e07 | 2014-04-20 17:10:18 -0500 | [diff] [blame] | 57 | See also |
| 58 | -------- |
| 59 | |
| 60 | :ref:`ndn-autoconfig` |