blob: cfec8e2789f3c10b964e5940b4712d9befd3b189 [file] [log] [blame]
Junxiao Shi6c135622016-11-21 14:30:33 +00001nfdc-face
2=========
3
4SYNOPSIS
5--------
Junxiao Shi0d976922017-04-01 14:35:21 +00006| nfdc face [list [[remote] <FACEURI>] [local <FACEURI>] [scheme <SCHEME>]]
Junxiao Shid6958012017-02-20 03:34:48 +00007| nfdc face show [id] <FACEID>
Junxiao Shi0d976922017-04-01 14:35:21 +00008| nfdc face create [remote] <FACEURI> [[persistency] <PERSISTENCY>] [local <FACEURI>]
Junxiao Shid6958012017-02-20 03:34:48 +00009| nfdc face destroy [face] <FACEID|FACEURI>
Junxiao Shi1d7fef52017-02-02 05:33:14 +000010| nfdc channel [list]
Junxiao Shi6c135622016-11-21 14:30:33 +000011
12DESCRIPTION
13-----------
14In NFD, a face is the generalization of network interface.
15It could be a physical network interface to communicate on a physical link,
16an overlay communication channel between NFD and a remote node,
17or an inter-process communication channel between NFD and a local application.
18
Junxiao Shi0d976922017-04-01 14:35:21 +000019The **nfdc face list** command shows a list of faces, their properties, and statistics,
20optionally filtered by remote endpoint, local endpoint, and FaceUri scheme.
21When multiple filters are specified, returned faces must satisfy all filters.
Junxiao Shi6c135622016-11-21 14:30:33 +000022
Junxiao Shi1f481fa2017-01-26 15:14:43 +000023The **nfdc face show** command shows properties and statistics of one specific face.
24
Junxiao Shi0d976922017-04-01 14:35:21 +000025The **nfdc face create** command creates a UDP unicast, TCP, or Ethernet unicast face.
26Local FaceUri is required for creating Ethernet unicast faces; otherwise it must be omitted.
Junxiao Shi6c135622016-11-21 14:30:33 +000027
Junxiao Shi05dd4442017-02-06 22:50:07 +000028The **nfdc face destroy** command destroys an existing face.
Junxiao Shi6c135622016-11-21 14:30:33 +000029
Junxiao Shi1d7fef52017-02-02 05:33:14 +000030The **nfdc channel list** command shows a list of channels.
31Channels are listening sockets that can accept incoming connections and create new faces.
32
Junxiao Shi6c135622016-11-21 14:30:33 +000033OPTIONS
34-------
Junxiao Shif0dfb332017-02-02 05:32:25 +000035<FACEID>
Junxiao Shi1f481fa2017-01-26 15:14:43 +000036 Numerical identifier of the face.
Junxiao Shi1d7fef52017-02-02 05:33:14 +000037 It is displayed in the output of **nfdc face list** and **nfdc face create** commands.
Junxiao Shi1f481fa2017-01-26 15:14:43 +000038
Junxiao Shif0dfb332017-02-02 05:32:25 +000039<FACEURI>
Junxiao Shi0d976922017-04-01 14:35:21 +000040 A URI representing the remote or local endpoint of a face.
41 Examples:
Junxiao Shi6c135622016-11-21 14:30:33 +000042
Junxiao Shi0d976922017-04-01 14:35:21 +000043 - udp4://192.0.2.1:6363
44 - udp6://[2001:db8::1]:6363
45 - udp://example.net
46 - tcp4://192.0.2.1:6363
47 - tcp6://[2001:db8::1]:6363
48 - tcp://example.net
49 - unix:///var/run/nfd.sock
50 - fd://6
51 - ether://[08:00:27:01:01:01]
52 - dev://eth0
Junxiao Shi6c135622016-11-21 14:30:33 +000053
54 When a hostname is specified, a DNS query is used to obtain the IP address.
55
Junxiao Shi0d976922017-04-01 14:35:21 +000056<SCHEME>
57 The scheme portion of either remote or local endpoint.
58 Examples:
59
60 - udp4
61 - unix
62 - dev
63
Junxiao Shi1d7fef52017-02-02 05:33:14 +000064<PERSISTENCY>
65 Either "persistent" or "permanent".
66 A "persistent" face (the default) is closed when a socket error occurs.
67 A "permanent" face survives socket errors, and is closed only with a **nfdc destroy** command.
68
Junxiao Shi1f481fa2017-01-26 15:14:43 +000069EXIT CODES
70----------
71
720: Success
73
741: An unspecified error occurred
75
762: Malformed command line
77
Junxiao Shi05dd4442017-02-06 22:50:07 +0000783: Face not found (**nfdc face show** and **nfdc face destroy** only)
Junxiao Shi6c135622016-11-21 14:30:33 +000079
Junxiao Shi05dd4442017-02-06 22:50:07 +0000804: FaceUri canonization failed (**nfdc face create** and **nfdc face destroy** only)
81
825: Ambiguous: multiple matching faces are found (**nfdc face destroy** only)
Junxiao Shi1d7fef52017-02-02 05:33:14 +000083
Junxiao Shi6c135622016-11-21 14:30:33 +000084SEE ALSO
85--------
86nfd(1), nfdc(1)