Deleted Added
sdiff udiff text old ( 106665 ) new ( 123600 )
full compact
1
2/*
3 * ng_parse.c
4 *
5 * Copyright (c) 1999 Whistle Communications, Inc.
6 * All rights reserved.
7 *
8 * Subject to the following obligations and disclaimer of warranty, use and

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

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 * Author: Archie Cobbs <archie@freebsd.org>
38 *
39 * $Whistle: ng_parse.c,v 1.3 1999/11/29 01:43:48 archie Exp $
40 * $FreeBSD: head/sys/netgraph/ng_parse.c 106665 2002-11-08 21:13:18Z jhb $
41 */
42
43#include <sys/types.h>
44#include <sys/param.h>
45#include <sys/systm.h>
46#include <sys/kernel.h>
47#include <sys/errno.h>
48#include <sys/malloc.h>
49#include <sys/ctype.h>
50
51#include <netinet/in.h>
52
53#include <netgraph/ng_message.h>
54#include <netgraph/netgraph.h>
55#include <netgraph/ng_parse.h>
56
57#ifdef NG_SEPARATE_MALLOC
58MALLOC_DEFINE(M_NETGRAPH_PARSE, "netgraph_parse", "netgraph parse info");

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

994 NULL,
995 ng_ipaddr_parse,
996 ng_ipaddr_unparse,
997 ng_ipaddr_getDefault,
998 ng_int32_getAlign
999};
1000
1001/************************************************************************
1002 BYTE ARRAY TYPE
1003 ************************************************************************/
1004
1005/* Get the length of a byte array */
1006static int
1007ng_parse_bytearray_subtype_getLength(const struct ng_parse_type *type,
1008 const u_char *start, const u_char *buf)
1009{

--- 794 unchanged lines hidden ---