48#ifndef _H_subsys_magic
77#define SERVER_MAP_FILE_LINELEN 1024
80#define SERVER_MAP_WILDCARD "*"
83#define SERVER_MAP_ID_MAXLEN 64
94typedef struct subsys_cb_t_ {
349 unsigned int portnum);
status_t
global error return code
Definition: status_enum.h:210
proto_id_t
the type of protocol starting the subsystem
Definition: subsystem.h:117
#define SUBSYS_BUFFLEN
max length of an <ncx-connect> message
Definition: subsystem.h:80
status_t(* subsys_stdout_fn_t)(const char *buff, size_t bufflen)
STDOUT FUNCTION TEMPLATE subsys_stdout_fn_t.
Definition: subsystem.h:149
ssize_t(* subsys_stdin_fn_t)(char *buff, size_t bufflen)
STDIN FUNCTION TEMPLATE subsys_stdin_fn_t.
Definition: subsystem.h:162
void clean_subsys_cb(subsys_cb_t *cb)
Clean the fields of a subsystem control block.
Definition: subsys_util.c:1018
void init_subsys_cb(subsys_cb_t *cb)
Initialize the fields of a subsystem control block.
Definition: subsys_util.c:1002
void configure_cli_parms(subsys_cb_t *cb, int argc, char **argv)
Configure CLI parameters.
Definition: subsys_util.c:1056
status_t start_subsys_tcp_ncx(int *retfd, const char *user)
Start the subsystem for a tcp-ncx transport connection.
Definition: subsys_util.c:1200
status_t start_subsys_extern_tcp_ncx(int *retfd, const char *user, const char *addr, unsigned int portnum)
Start the subsystem to connect to an external tcp-ncx socket.
Definition: subsys_util.c:1280
status_t get_ssh_parms(subsys_cb_t *cb)
Get the SSH environment parameters.
Definition: subsys_util.c:724
status_t start_subsys_ypshell(int *retfd)
Start the subsystem for yp-shell.
Definition: subsys_util.c:1138
status_t start_connection(subsys_cb_t *cb)
Start the connection to the server.
Definition: subsys_util.c:882
status_t get_server_root_mapfile(subsys_cb_t *cb)
Get the name of the server root mapfile set.
Definition: subsys_util.c:834
status_t send_cli_ncxconnect(subsys_cb_t *cb)
Send the <ncx-connect> message to the ncxserver for CLI protocol.
Definition: subsys_util.c:934
Global error messages for status code enumerations.
one subsystem control block for session
Definition: subsys_util.h:94
const char * content_length
Content-Length if a RESTCONF session.
Definition: subsys_util.h:106
boolean nonblocking_set_ok
Flag non-blocking failed.
Definition: subsys_util.h:181
const char * http_accept
Accept a RESTCONF session.
Definition: subsys_util.h:121
char * server_root_mapfile
server root ID string
Definition: subsys_util.h:154
const char * ha_server_id
The HA server-id.
Definition: subsys_util.h:127
int ncxsock
socket number
Definition: subsys_util.h:172
boolean yp_ha_mode
flag YP-HA mode
Definition: subsys_util.h:187
subsys_stdout_fn_t stdout_fn
override STDOUT function
Definition: subsys_util.h:148
const char * match
Match if a RESTCONF session.
Definition: subsys_util.h:115
int32 content_len
content length
Definition: subsys_util.h:151
const char * user
User ID for the session.
Definition: subsys_util.h:124
const char * subsys_id
subsystem ID to use
Definition: subsys_util.h:196
const char * modified_since
Modified-Since if a RESTCONF session.
Definition: subsys_util.h:109
boolean extern_mode
flag external mode
Definition: subsys_util.h:190
proto_id_t proto_id
protocol in use
Definition: subsys_util.h:193
boolean nonblocking
Use non-blocking.
Definition: subsys_util.h:178
subsys_stdin_fn_t stdin_fn
override STDIN function
Definition: subsys_util.h:145
const char * request_uri
request URI if a RESTCONF session
Definition: subsys_util.h:97
char * server_addr
server address from SSH_CONNECTION
Definition: subsys_util.h:169
const char * ha_server_addr
YP-HA support; this address will override the AF_LOCAL or the TCP socket file read by subsys_info_rea...
Definition: subsys_util.h:136
char * server_root
server root ID string
Definition: subsys_util.h:157
boolean ncxconnect
Use ncxconnect.
Definition: subsys_util.h:175
char * client_addr
client address
Definition: subsys_util.h:163
FILE * errfile
error file
Definition: subsys_util.h:202
const char * request_method
request method if a RESTCONF session
Definition: subsys_util.h:100
const char * none_match
None-Match if a RESTCONF session.
Definition: subsys_util.h:118
const char * content_type
content-type if a RESTCONF session
Definition: subsys_util.h:103
const char * unmodified_since
Unmodified-Since if a RESTCONF session.
Definition: subsys_util.h:112
char * port
server port
Definition: subsys_util.h:166
boolean server_root_from_env
server root from ENV
Definition: subsys_util.h:160
int traceLevel
debug trace level set (0 - 3)
Definition: subsys_util.h:199
boolean no_connect
flag no connection
Definition: subsys_util.h:184
fd_set fds
file descriptors
Definition: subsys_util.h:205
uint16 ha_server_port
HA server port number The ha_server_port is also used by the extern tcp-ncx mode (extern_mode == TRUE...
Definition: subsys_util.h:142
Define magic string value for <ncx-connect> messages.
Thin client IO handler for YumaPro server.