status.c (9caee2ece77615135bbc2531d21b62e81aed5cb5) status.c (c3759b3a3f3937321c2d00b5f26ec4ab076f2883)
1
2/*
3 * status.c
4 *
5 * Copyright (c) 1996-1999 Whistle Communications, Inc.
6 * All rights reserved.
7 *
8 * Subject to the following obligations and disclaimer of warranty, use and

--- 39 unchanged lines hidden (view full) ---

48
49static int StatusCmd(int ac, char **av);
50
51const struct ngcmd status_cmd = {
52 StatusCmd,
53 "status <path>",
54 "Get human readable status information from the node at <path>",
55 NULL,
1
2/*
3 * status.c
4 *
5 * Copyright (c) 1996-1999 Whistle Communications, Inc.
6 * All rights reserved.
7 *
8 * Subject to the following obligations and disclaimer of warranty, use and

--- 39 unchanged lines hidden (view full) ---

48
49static int StatusCmd(int ac, char **av);
50
51const struct ngcmd status_cmd = {
52 StatusCmd,
53 "status <path>",
54 "Get human readable status information from the node at <path>",
55 NULL,
56 {}
56 { NULL }
57};
58
59static int
60StatusCmd(int ac, char **av)
61{
62 u_char sbuf[sizeof(struct ng_mesg) + NG_TEXTRESPONSE];
63 struct ng_mesg *const resp = (struct ng_mesg *) sbuf;
64 char *const status = (char *) resp->data;

--- 37 unchanged lines hidden ---
57};
58
59static int
60StatusCmd(int ac, char **av)
61{
62 u_char sbuf[sizeof(struct ng_mesg) + NG_TEXTRESPONSE];
63 struct ng_mesg *const resp = (struct ng_mesg *) sbuf;
64 char *const status = (char *) resp->data;

--- 37 unchanged lines hidden ---