version 1.1, 2012/02/21 23:32:47
|
version 1.1.1.2, 2021/03/17 00:39:23
|
Line 45
|
Line 45
|
static void NgClose(Link l); |
static void NgClose(Link l); |
static void NgShutdown(Link l); |
static void NgShutdown(Link l); |
static void NgStat(Context ctx); |
static void NgStat(Context ctx); |
static int NgSetCommand(Context ctx, int ac, char *av[], void *arg); | static int NgSetCommand(Context ctx, int ac, const char *const av[], const void *arg); |
static int NgIsSync(Link l); |
static int NgIsSync(Link l); |
static int NgPeerAddr(Link l, void *buf, size_t buf_len); |
static int NgPeerAddr(Link l, void *buf, size_t buf_len); |
|
|
Line 75
|
Line 75
|
NgSetCommand, NULL, 2, (void *) SET_NODE }, |
NgSetCommand, NULL, 2, (void *) SET_NODE }, |
{ "hook {hook}", "Set hook to attach to", |
{ "hook {hook}", "Set hook to attach to", |
NgSetCommand, NULL, 2, (void *) SET_HOOK }, |
NgSetCommand, NULL, 2, (void *) SET_HOOK }, |
{ NULL }, | { NULL, NULL, NULL, NULL, 0, NULL }, |
}; |
}; |
|
|
/* |
/* |
Line 197 NgStat(Context ctx)
|
Line 197 NgStat(Context ctx)
|
*/ |
*/ |
|
|
static int |
static int |
NgSetCommand(Context ctx, int ac, char *av[], void *arg) | NgSetCommand(Context ctx, int ac, const char *const av[], const void *arg) |
{ |
{ |
NgInfo const ng = (NgInfo) ctx->lnk->info; |
NgInfo const ng = (NgInfo) ctx->lnk->info; |
|
|
Line 225 NgSetCommand(Context ctx, int ac, char *av[], void *ar
|
Line 225 NgSetCommand(Context ctx, int ac, char *av[], void *ar
|
static int |
static int |
NgIsSync(Link l) |
NgIsSync(Link l) |
{ |
{ |
|
(void)l; |
return (1); |
return (1); |
} |
} |
|
|