diff options
| author | Bill Fenner <fenner@FreeBSD.org> | 1998-09-15 19:46:59 +0000 |
|---|---|---|
| committer | Bill Fenner <fenner@FreeBSD.org> | 1998-09-15 19:46:59 +0000 |
| commit | 699fc31439c6d227def4f2fdf7b4f4c5f3d02828 (patch) | |
| tree | 0f65e43947993b82a8cd54d6bbd653f4940945a5 /contrib/tcpdump/print-null.c | |
| parent | 90dc276c84c804d608fad6d71f9daf536f2203a3 (diff) | |
Notes
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 cf845d41118a..f1469ab8006a 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) { |
