1
2/*
3 * types.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
--- 20 unchanged lines hidden (view full) ---
29 * WITHOUT LIMITATION, ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
30 * PUNITIVE, OR CONSEQUENTIAL DAMAGES, PROCUREMENT OF SUBSTITUTE GOODS OR
31 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY
32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
34 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
35 * OF SUCH DAMAGE.
36 *
37 * $FreeBSD: head/usr.sbin/ngctl/types.c 160423 2006-07-17 08:35:47Z stefanf $
38 */
39
40#include <err.h>
41#include <netgraph.h>
42#include <stdio.h>
43#include <stdlib.h>
44#include <unistd.h>
45
46#include "ngctl.h"
47
48static int TypesCmd(int ac, char **av);
49
50const struct ngcmd types_cmd = {
51 TypesCmd,
52 "types",
53 "Show information about all installed node types",
54 NULL,
55 { NULL }
56};
57
58static int
59TypesCmd(int ac, char **av __unused)
60{
61 struct ng_mesg *resp;
62 struct typelist *tlist;
63 int rtn = CMDRTN_OK;
--- 38 unchanged lines hidden ---
2/*
3 * types.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
--- 20 unchanged lines hidden (view full) ---
29 * WITHOUT LIMITATION, ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
30 * PUNITIVE, OR CONSEQUENTIAL DAMAGES, PROCUREMENT OF SUBSTITUTE GOODS OR
31 * SERVICES, LOSS OF USE, DATA OR PROFITS, HOWEVER CAUSED AND UNDER ANY
32 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
33 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
34 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY
35 * OF SUCH DAMAGE.
36 *
37 * $FreeBSD: head/usr.sbin/ngctl/types.c 160423 2006-07-17 08:35:47Z stefanf $
38 */
39
40#include <err.h>
41#include <netgraph.h>
42#include <stdio.h>
43#include <stdlib.h>
44#include <unistd.h>
45
46#include "ngctl.h"
47
48static int TypesCmd(int ac, char **av);
49
50const struct ngcmd types_cmd = {
51 TypesCmd,
52 "types",
53 "Show information about all installed node types",
54 NULL,
55 { NULL }
56};
57
58static int
59TypesCmd(int ac, char **av __unused)
60{
61 struct ng_mesg *resp;
62 struct typelist *tlist;
63 int rtn = CMDRTN_OK;
--- 38 unchanged lines hidden ---