libnetconf2 2.0.24
NETCONF server and client library in C.
Loading...
Searching...
No Matches
netconf.h
Go to the documentation of this file.
1
15#ifndef NC_NETCONF_H_
16#define NC_NETCONF_H_
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22#include <time.h>
23
30#define NC_NS_BASE "urn:ietf:params:xml:ns:netconf:base:1.0"
32#define NC_NS_NOTIF "urn:ietf:params:xml:ns:netconf:notification:1.0"
33
35#define NC_PORT_SSH 830
37#define NC_PORT_CH_SSH 4334
38
40#define NC_PORT_TLS 6513
42#define NC_PORT_CH_TLS 4335
43
50#define nc_set_rpc_callback(node, cb) (node->priv = cb)
51
65
80
84extern const char *nc_msgtype2str[];
85
97
108
118
127
130#ifdef __cplusplus
131}
132#endif
133
134#endif /* NC_NETCONF_H_ */
enum NC_REPLY NC_RPL
Enumeration of NETCONF (both server and client) rpc-reply types.
NC_MSG_TYPE
Enumeration of NETCONF message types.
Definition netconf.h:69
NC_WITHDEFAULTS_MODE
Enumeration of NETCONF with-defaults capability modes.
Definition netconf.h:101
enum NC_WITHDEFAULTS_MODE NC_WD_MODE
Enumeration of NETCONF with-defaults capability modes.
enum NC_DATASTORE_TYPE NC_DATASTORE
Enumeration of the supported types of datastores defined by NETCONF.
NC_REPLY
Enumeration of NETCONF (both server and client) rpc-reply types.
Definition netconf.h:112
const char * nc_msgtype2str[]
Messages of NETCONF message type enum.
NC_SESSION_TERM_REASON
Enumeration of reasons of the NETCONF session termination as defined in RFC 6470.
Definition netconf.h:55
NC_DATASTORE_TYPE
Enumeration of the supported types of datastores defined by NETCONF.
Definition netconf.h:89
NC_PARAMTYPE
Enumeration of function parameter treatments.
Definition netconf.h:122
@ NC_MSG_REPLY_ERR_MSGID
Definition netconf.h:77
@ NC_MSG_NONE
Definition netconf.h:72
@ NC_MSG_BAD_HELLO
Definition netconf.h:74
@ NC_MSG_WOULDBLOCK
Definition netconf.h:71
@ NC_MSG_HELLO
Definition netconf.h:73
@ NC_MSG_RPC
Definition netconf.h:75
@ NC_MSG_REPLY
Definition netconf.h:76
@ NC_MSG_ERROR
Definition netconf.h:70
@ NC_MSG_NOTIF
Definition netconf.h:78
@ NC_WD_ALL_TAG
Definition netconf.h:104
@ NC_WD_EXPLICIT
Definition netconf.h:106
@ NC_WD_TRIM
Definition netconf.h:105
@ NC_WD_UNKNOWN
Definition netconf.h:102
@ NC_WD_ALL
Definition netconf.h:103
@ NC_RPL_OK
Definition netconf.h:113
@ NC_RPL_DATA
Definition netconf.h:114
@ NC_RPL_ERROR
Definition netconf.h:115
@ NC_RPL_NOTIF
Definition netconf.h:116
@ NC_SESSION_TERM_CLOSED
Definition netconf.h:58
@ NC_SESSION_TERM_TIMEOUT
Definition netconf.h:61
@ NC_SESSION_TERM_NONE
Definition netconf.h:57
@ NC_SESSION_TERM_BADHELLO
Definition netconf.h:62
@ NC_SESSION_TERM_ERR
Definition netconf.h:56
@ NC_SESSION_TERM_DROPPED
Definition netconf.h:60
@ NC_SESSION_TERM_KILLED
Definition netconf.h:59
@ NC_SESSION_TERM_OTHER
Definition netconf.h:63
@ NC_DATASTORE_CANDIDATE
Definition netconf.h:95
@ NC_DATASTORE_RUNNING
Definition netconf.h:93
@ NC_DATASTORE_CONFIG
Definition netconf.h:91
@ NC_DATASTORE_ERROR
Definition netconf.h:90
@ NC_DATASTORE_URL
Definition netconf.h:92
@ NC_DATASTORE_STARTUP
Definition netconf.h:94
@ NC_PARAMTYPE_CONST
Definition netconf.h:123
@ NC_PARAMTYPE_DUP_AND_FREE
Definition netconf.h:125
@ NC_PARAMTYPE_FREE
Definition netconf.h:124