libnetconf2
4.6.4
NETCONF server and client library in C.
Toggle main menu visibility
Loading...
Searching...
No Matches
netconf.h
Go to the documentation of this file.
1
16
17
#ifndef NC_NETCONF_H_
18
#define NC_NETCONF_H_
19
20
#ifdef __cplusplus
21
extern
"C"
{
22
#endif
23
28
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
55
typedef
enum
{
56
NC_SESSION_TERM_ERR
= -1,
57
NC_SESSION_TERM_NONE
= 0,
58
NC_SESSION_TERM_CLOSED
,
59
NC_SESSION_TERM_KILLED
,
60
NC_SESSION_TERM_DROPPED
,
61
NC_SESSION_TERM_TIMEOUT
,
62
NC_SESSION_TERM_BADHELLO
,
63
NC_SESSION_TERM_OTHER
64
}
NC_SESSION_TERM_REASON
;
65
69
typedef
enum
{
70
NC_MSG_ERROR
,
71
NC_MSG_WOULDBLOCK
,
72
NC_MSG_NONE
,
73
NC_MSG_HELLO
,
74
NC_MSG_BAD_HELLO
,
75
NC_MSG_RPC
,
76
NC_MSG_REPLY
,
77
NC_MSG_REPLY_ERR_MSGID
,
78
NC_MSG_NOTIF
,
79
NC_MSG_RAW
80
}
NC_MSG_TYPE
;
81
85
extern
const
char
*
nc_msgtype2str
[];
86
90
typedef
enum
{
91
NC_DATASTORE_ERROR
= 0,
92
NC_DATASTORE_CONFIG
,
93
NC_DATASTORE_URL
,
94
NC_DATASTORE_RUNNING
,
95
NC_DATASTORE_STARTUP
,
96
NC_DATASTORE_CANDIDATE
97
}
NC_DATASTORE
;
98
102
typedef
enum
{
103
NC_WD_UNKNOWN
= 0,
104
NC_WD_ALL
,
105
NC_WD_ALL_TAG
,
106
NC_WD_TRIM
,
107
NC_WD_EXPLICIT
108
}
NC_WD_MODE
;
109
113
typedef
enum
{
114
NC_RPL_OK
,
115
NC_RPL_DATA
,
116
NC_RPL_ERROR
,
117
NC_RPL_NOTIF
118
}
NC_RPL
;
119
123
typedef
enum
{
124
NC_PARAMTYPE_CONST
,
125
NC_PARAMTYPE_FREE
,
126
NC_PARAMTYPE_DUP_AND_FREE
127
}
NC_PARAMTYPE
;
128
130
131
#ifdef __cplusplus
132
}
133
#endif
134
135
#endif
/* NC_NETCONF_H_ */
NC_RPL
NC_RPL
Enumeration of NETCONF (both server and client) rpc-reply types.
Definition
netconf.h:113
NC_MSG_TYPE
NC_MSG_TYPE
Enumeration of NETCONF message types.
Definition
netconf.h:69
NC_DATASTORE
NC_DATASTORE
Enumeration of the supported types of datastores defined by NETCONF.
Definition
netconf.h:90
NC_WD_MODE
NC_WD_MODE
Enumeration of NETCONF with-defaults capability modes.
Definition
netconf.h:102
nc_msgtype2str
const char * nc_msgtype2str[]
Messages of NETCONF message type enum.
NC_SESSION_TERM_REASON
NC_SESSION_TERM_REASON
Enumeration of reasons of the NETCONF session termination as defined in RFC 6470.
Definition
netconf.h:55
NC_PARAMTYPE
NC_PARAMTYPE
Enumeration of function parameter treatments.
Definition
netconf.h:123
NC_RPL_OK
@ NC_RPL_OK
Definition
netconf.h:114
NC_RPL_DATA
@ NC_RPL_DATA
Definition
netconf.h:115
NC_RPL_ERROR
@ NC_RPL_ERROR
Definition
netconf.h:116
NC_RPL_NOTIF
@ NC_RPL_NOTIF
Definition
netconf.h:117
NC_MSG_REPLY_ERR_MSGID
@ NC_MSG_REPLY_ERR_MSGID
Definition
netconf.h:77
NC_MSG_NONE
@ NC_MSG_NONE
Definition
netconf.h:72
NC_MSG_BAD_HELLO
@ NC_MSG_BAD_HELLO
Definition
netconf.h:74
NC_MSG_WOULDBLOCK
@ NC_MSG_WOULDBLOCK
Definition
netconf.h:71
NC_MSG_HELLO
@ NC_MSG_HELLO
Definition
netconf.h:73
NC_MSG_RPC
@ NC_MSG_RPC
Definition
netconf.h:75
NC_MSG_REPLY
@ NC_MSG_REPLY
Definition
netconf.h:76
NC_MSG_RAW
@ NC_MSG_RAW
Definition
netconf.h:79
NC_MSG_ERROR
@ NC_MSG_ERROR
Definition
netconf.h:70
NC_MSG_NOTIF
@ NC_MSG_NOTIF
Definition
netconf.h:78
NC_DATASTORE_CANDIDATE
@ NC_DATASTORE_CANDIDATE
Definition
netconf.h:96
NC_DATASTORE_RUNNING
@ NC_DATASTORE_RUNNING
Definition
netconf.h:94
NC_DATASTORE_CONFIG
@ NC_DATASTORE_CONFIG
Definition
netconf.h:92
NC_DATASTORE_ERROR
@ NC_DATASTORE_ERROR
Definition
netconf.h:91
NC_DATASTORE_URL
@ NC_DATASTORE_URL
Definition
netconf.h:93
NC_DATASTORE_STARTUP
@ NC_DATASTORE_STARTUP
Definition
netconf.h:95
NC_WD_ALL_TAG
@ NC_WD_ALL_TAG
Definition
netconf.h:105
NC_WD_EXPLICIT
@ NC_WD_EXPLICIT
Definition
netconf.h:107
NC_WD_TRIM
@ NC_WD_TRIM
Definition
netconf.h:106
NC_WD_UNKNOWN
@ NC_WD_UNKNOWN
Definition
netconf.h:103
NC_WD_ALL
@ NC_WD_ALL
Definition
netconf.h:104
NC_SESSION_TERM_CLOSED
@ NC_SESSION_TERM_CLOSED
Definition
netconf.h:58
NC_SESSION_TERM_TIMEOUT
@ NC_SESSION_TERM_TIMEOUT
Definition
netconf.h:61
NC_SESSION_TERM_NONE
@ NC_SESSION_TERM_NONE
Definition
netconf.h:57
NC_SESSION_TERM_BADHELLO
@ NC_SESSION_TERM_BADHELLO
Definition
netconf.h:62
NC_SESSION_TERM_ERR
@ NC_SESSION_TERM_ERR
Definition
netconf.h:56
NC_SESSION_TERM_DROPPED
@ NC_SESSION_TERM_DROPPED
Definition
netconf.h:60
NC_SESSION_TERM_KILLED
@ NC_SESSION_TERM_KILLED
Definition
netconf.h:59
NC_SESSION_TERM_OTHER
@ NC_SESSION_TERM_OTHER
Definition
netconf.h:63
NC_PARAMTYPE_CONST
@ NC_PARAMTYPE_CONST
Definition
netconf.h:124
NC_PARAMTYPE_DUP_AND_FREE
@ NC_PARAMTYPE_DUP_AND_FREE
Definition
netconf.h:126
NC_PARAMTYPE_FREE
@ NC_PARAMTYPE_FREE
Definition
netconf.h:125
src
netconf.h
Privacy Policy
Generated on
for libnetconf2 by
1.17.0