ng_base.c (256550) | ng_base.c (260046) |
---|---|
1/*- 2 * Copyright (c) 1996-1999 Whistle Communications, Inc. 3 * All rights reserved. 4 * 5 * Subject to the following obligations and disclaimer of warranty, use and 6 * redistribution of this software, in source or object code forms, with or 7 * without modifications are expressly permitted by Whistle Communications; 8 * provided, however, that: --- 20 unchanged lines hidden (view full) --- 29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 31 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY 32 * OF SUCH DAMAGE. 33 * 34 * Authors: Julian Elischer <julian@freebsd.org> 35 * Archie Cobbs <archie@freebsd.org> 36 * | 1/*- 2 * Copyright (c) 1996-1999 Whistle Communications, Inc. 3 * All rights reserved. 4 * 5 * Subject to the following obligations and disclaimer of warranty, use and 6 * redistribution of this software, in source or object code forms, with or 7 * without modifications are expressly permitted by Whistle Communications; 8 * provided, however, that: --- 20 unchanged lines hidden (view full) --- 29 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 30 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 31 * THIS SOFTWARE, EVEN IF WHISTLE COMMUNICATIONS IS ADVISED OF THE POSSIBILITY 32 * OF SUCH DAMAGE. 33 * 34 * Authors: Julian Elischer <julian@freebsd.org> 35 * Archie Cobbs <archie@freebsd.org> 36 * |
37 * $FreeBSD: head/sys/netgraph/ng_base.c 256550 2013-10-15 17:44:35Z melifaro $ | 37 * $FreeBSD: head/sys/netgraph/ng_base.c 260046 2013-12-29 18:34:29Z glebius $ |
38 * $Whistle: ng_base.c,v 1.39 1999/01/28 23:54:53 julian Exp $ 39 */ 40 41/* 42 * This file implements the base netgraph code. 43 */ 44 45#include <sys/param.h> --- 422 unchanged lines hidden (view full) --- 468 &ng_generic_linkinfo_type, 469 &ng_generic_linkinfo_getLength 470}; 471static const struct ng_parse_type ng_generic_linkinfo_array_type = { 472 &ng_parse_array_type, 473 &ng_generic_linkinfo_array_type_info 474}; 475 | 38 * $Whistle: ng_base.c,v 1.39 1999/01/28 23:54:53 julian Exp $ 39 */ 40 41/* 42 * This file implements the base netgraph code. 43 */ 44 45#include <sys/param.h> --- 422 unchanged lines hidden (view full) --- 468 &ng_generic_linkinfo_type, 469 &ng_generic_linkinfo_getLength 470}; 471static const struct ng_parse_type ng_generic_linkinfo_array_type = { 472 &ng_parse_array_type, 473 &ng_generic_linkinfo_array_type_info 474}; 475 |
476DEFINE_PARSE_STRUCT_TYPE(typelist, TYPELIST, (&ng_generic_nodeinfoarray_type)); | 476DEFINE_PARSE_STRUCT_TYPE(typelist, TYPELIST, (&ng_generic_typeinfoarray_type)); |
477DEFINE_PARSE_STRUCT_TYPE(hooklist, HOOKLIST, 478 (&ng_generic_nodeinfo_type, &ng_generic_linkinfo_array_type)); 479DEFINE_PARSE_STRUCT_TYPE(listnodes, LISTNODES, 480 (&ng_generic_nodeinfoarray_type)); 481 482/* List of commands and how to convert arguments to/from ASCII */ 483static const struct ng_cmdlist ng_generic_cmds[] = { 484 { --- 59 unchanged lines hidden (view full) --- 544 NULL, 545 &ng_generic_listnodes_type 546 }, 547 { 548 NGM_GENERIC_COOKIE, 549 NGM_LISTTYPES, 550 "listtypes", 551 NULL, | 477DEFINE_PARSE_STRUCT_TYPE(hooklist, HOOKLIST, 478 (&ng_generic_nodeinfo_type, &ng_generic_linkinfo_array_type)); 479DEFINE_PARSE_STRUCT_TYPE(listnodes, LISTNODES, 480 (&ng_generic_nodeinfoarray_type)); 481 482/* List of commands and how to convert arguments to/from ASCII */ 483static const struct ng_cmdlist ng_generic_cmds[] = { 484 { --- 59 unchanged lines hidden (view full) --- 544 NULL, 545 &ng_generic_listnodes_type 546 }, 547 { 548 NGM_GENERIC_COOKIE, 549 NGM_LISTTYPES, 550 "listtypes", 551 NULL, |
552 &ng_generic_typeinfo_type | 552 &ng_generic_typelist_type |
553 }, 554 { 555 NGM_GENERIC_COOKIE, 556 NGM_TEXT_CONFIG, 557 "textconfig", 558 NULL, 559 &ng_parse_string_type 560 }, --- 3288 unchanged lines hidden --- | 553 }, 554 { 555 NGM_GENERIC_COOKIE, 556 NGM_TEXT_CONFIG, 557 "textconfig", 558 NULL, 559 &ng_parse_string_type 560 }, --- 3288 unchanged lines hidden --- |