diff options
author | fenner <fenner@FreeBSD.org> | 1998-09-15 19:36:32 +0000 |
---|---|---|
committer | fenner <fenner@FreeBSD.org> | 1998-09-15 19:36:32 +0000 |
commit | cfc42b58f229425374e675f86614cf26ffa356e4 (patch) | |
tree | 6bd786e664682d3877b9cca3efa525ac67d8e005 /contrib/tcpdump/print-null.c | |
parent | a9b9c86c8a0ccde5c1480bf5a0ba250d949a6d65 (diff) | |
download | FreeBSD-src-cfc42b58f229425374e675f86614cf26ffa356e4.zip FreeBSD-src-cfc42b58f229425374e675f86614cf26ffa356e4.tar.gz |
Virgin import of LBL tcpdump v3.4
Diffstat (limited to 'contrib/tcpdump/print-null.c')
-rw-r--r-- | contrib/tcpdump/print-null.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/contrib/tcpdump/print-null.c b/contrib/tcpdump/print-null.c index ba731d8..a5bbd27 100644 --- a/contrib/tcpdump/print-null.c +++ b/contrib/tcpdump/print-null.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 1991, 1993, 1994, 1995, 1996 + * Copyright (c) 1991, 1993, 1994, 1995, 1996, 1997 * The Regents of the University of California. All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -21,7 +21,7 @@ #ifndef lint static const char rcsid[] = - "@(#) $Header: print-null.c,v 1.22 96/12/10 23:18:58 leres Exp $ (LBL)"; + "@(#) $Header: print-null.c,v 1.24 97/05/28 12:52:47 leres Exp $ (LBL)"; #endif #include <sys/param.h> @@ -50,15 +50,19 @@ struct rtentry; #include <stdio.h> #include <string.h> -#include "addrtoname.h" #include "interface.h" - -#define NULL_HDRLEN 4 +#include "addrtoname.h" #ifndef AF_NS #define AF_NS 6 /* XEROX NS protocols */ #endif +/* + * The DLT_NULL packet header is 4 bytes long. It contains a network + * order 32 bit integer that specifies the family, e.g. AF_INET + */ +#define NULL_HDRLEN 4 + static void null_print(const u_char *p, const struct ip *ip, u_int length) { |