Deleted Added
full compact
config.c (63673) config.c (125011)
1/*
2 * config.c
3 *
4 * Copyright (c) 1996-1999 Whistle Communications, Inc.
5 * All rights reserved.
6 *
7 * Subject to the following obligations and disclaimer of warranty, use and
8 * redistribution of this software, in source or object code forms, with or

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

28 * WITHOUT LIMITATION, ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
29 * PUNITIVE, OR CONSEQUENTIAL DAMAGES, PROCUREMENT OF SUBSTITUTE GOODS OR
30 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY
31 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
33 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
34 * OF SUCH DAMAGE.
35 *
1/*
2 * config.c
3 *
4 * Copyright (c) 1996-1999 Whistle Communications, Inc.
5 * All rights reserved.
6 *
7 * Subject to the following obligations and disclaimer of warranty, use and
8 * redistribution of this software, in source or object code forms, with or

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

28 * WITHOUT LIMITATION, ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
29 * PUNITIVE, OR CONSEQUENTIAL DAMAGES, PROCUREMENT OF SUBSTITUTE GOODS OR
30 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY
31 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
33 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
34 * OF SUCH DAMAGE.
35 *
36 * $FreeBSD: head/usr.sbin/ngctl/config.c 63673 2000-07-20 17:17:49Z archie $
36 * $FreeBSD: head/usr.sbin/ngctl/config.c 125011 2004-01-26 10:27:18Z ru $
37 */
38
39#include "ngctl.h"
40
41#define NOCONFIG "<no config>"
42
43static int ConfigCmd(int ac, char **av);
44
45const struct ngcmd config_cmd = {
46 ConfigCmd,
47 "config <path> [arguments]",
48 "get or set configuration of node at <path>",
37 */
38
39#include "ngctl.h"
40
41#define NOCONFIG "<no config>"
42
43static int ConfigCmd(int ac, char **av);
44
45const struct ngcmd config_cmd = {
46 ConfigCmd,
47 "config <path> [arguments]",
48 "get or set configuration of node at <path>",
49 NULL
49 NULL,
50 {}
50};
51
52static int
53ConfigCmd(int ac, char **av)
54{
55 u_char sbuf[sizeof(struct ng_mesg) + NG_TEXTRESPONSE];
56 struct ng_mesg *const resp = (struct ng_mesg *) sbuf;
57 char *const status = (char *) resp->data;

--- 46 unchanged lines hidden ---
51};
52
53static int
54ConfigCmd(int ac, char **av)
55{
56 u_char sbuf[sizeof(struct ng_mesg) + NG_TEXTRESPONSE];
57 struct ng_mesg *const resp = (struct ng_mesg *) sbuf;
58 char *const status = (char *) resp->data;

--- 46 unchanged lines hidden ---