print-vjc.c (127668) | print-vjc.c (146773) |
---|---|
1/* 2 * Copyright (c) 1990, 1991, 1993, 1994, 1995, 1996, 1997 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that: (1) source code distributions 7 * retain the above copyright notice and this paragraph in its entirety, (2) 8 * distributions including binary code include the above copyright notice and --- 11 unchanged lines hidden (view full) --- 20 */ 21 22#ifdef HAVE_CONFIG_H 23#include "config.h" 24#endif 25 26#ifndef lint 27static const char rcsid[] _U_ = | 1/* 2 * Copyright (c) 1990, 1991, 1993, 1994, 1995, 1996, 1997 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that: (1) source code distributions 7 * retain the above copyright notice and this paragraph in its entirety, (2) 8 * distributions including binary code include the above copyright notice and --- 11 unchanged lines hidden (view full) --- 20 */ 21 22#ifdef HAVE_CONFIG_H 23#include "config.h" 24#endif 25 26#ifndef lint 27static const char rcsid[] _U_ = |
28 "@(#) $Header: /tcpdump/master/tcpdump/print-vjc.c,v 1.11.2.3 2003/11/19 01:09:12 guy Exp $ (LBL)"; | 28 "@(#) $Header: /tcpdump/master/tcpdump/print-vjc.c,v 1.15 2004/03/25 03:31:17 mcr Exp $ (LBL)"; |
29#endif 30 31#include <tcpdump-stdinc.h> 32 33#include <pcap.h> 34#include <stdio.h> 35 36#include "interface.h" --- 40 unchanged lines hidden (view full) --- 77 * Without a BSD/OS VJC-compressed PPP trace, or knowledge of what the 78 * BSD/OS VJC code does, we can't say what's the case. 79 * 80 * We therefore leave "proto" - which is the PPP protocol type - in place, 81 * *not* marked as unused, for now, so that GCC warnings about the 82 * unused argument remind us that we should fix this some day. 83 */ 84int | 29#endif 30 31#include <tcpdump-stdinc.h> 32 33#include <pcap.h> 34#include <stdio.h> 35 36#include "interface.h" --- 40 unchanged lines hidden (view full) --- 77 * Without a BSD/OS VJC-compressed PPP trace, or knowledge of what the 78 * BSD/OS VJC code does, we can't say what's the case. 79 * 80 * We therefore leave "proto" - which is the PPP protocol type - in place, 81 * *not* marked as unused, for now, so that GCC warnings about the 82 * unused argument remind us that we should fix this some day. 83 */ 84int |
85vjc_print(register const char *bp, u_short proto) | 85vjc_print(register const char *bp, u_short proto _U_) |
86{ 87 int i; 88 89 switch (bp[0] & 0xf0) { 90 case TYPE_IP: 91 if (eflag) 92 printf("(vjc type=IP) "); 93 return PPP_IP; --- 26 unchanged lines hidden --- | 86{ 87 int i; 88 89 switch (bp[0] & 0xf0) { 90 case TYPE_IP: 91 if (eflag) 92 printf("(vjc type=IP) "); 93 return PPP_IP; --- 26 unchanged lines hidden --- |