Deleted Added
full compact
print-mobile.c (127668) print-mobile.c (146773)
1/* $NetBSD: print-mobile.c,v 1.2 1998/09/30 08:57:01 hwr Exp $ */
2
3/*
4 * (c) 1998 The NetBSD Foundation, Inc.
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Heiko W.Rupp <hwr@pilhuhn.de>

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

37 */
38
39#ifdef HAVE_CONFIG_H
40#include "config.h"
41#endif
42
43#ifndef lint
44static const char rcsid[] _U_ =
1/* $NetBSD: print-mobile.c,v 1.2 1998/09/30 08:57:01 hwr Exp $ */
2
3/*
4 * (c) 1998 The NetBSD Foundation, Inc.
5 * All rights reserved.
6 *
7 * This code is derived from software contributed to The NetBSD Foundation
8 * by Heiko W.Rupp <hwr@pilhuhn.de>

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

37 */
38
39#ifdef HAVE_CONFIG_H
40#include "config.h"
41#endif
42
43#ifndef lint
44static const char rcsid[] _U_ =
45 "@(#) $Header: /tcpdump/master/tcpdump/print-mobile.c,v 1.12.2.2 2003/11/16 08:51:33 guy Exp $";
45 "@(#) $Header: /tcpdump/master/tcpdump/print-mobile.c,v 1.15 2004/03/24 01:58:14 guy Exp $";
46#endif
47
48#include <tcpdump-stdinc.h>
49
50#include <stdio.h>
51
52#include "interface.h"
53#include "addrtoname.h"

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

72{
73 const u_char *cp = bp +8 ;
74 const struct mobile_ip *mob;
75 u_short proto,crc;
76 u_char osp =0; /* old source address present */
77
78 mob = (const struct mobile_ip *)bp;
79
46#endif
47
48#include <tcpdump-stdinc.h>
49
50#include <stdio.h>
51
52#include "interface.h"
53#include "addrtoname.h"

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

72{
73 const u_char *cp = bp +8 ;
74 const struct mobile_ip *mob;
75 u_short proto,crc;
76 u_char osp =0; /* old source address present */
77
78 mob = (const struct mobile_ip *)bp;
79
80 if (length < MOBILE_SIZE) {
80 if (length < MOBILE_SIZE || !TTEST(*mob)) {
81 fputs("[|mobile]", stdout);
82 return;
83 }
84 fputs("mobile: ", stdout);
85
86 proto = EXTRACT_16BITS(&mob->proto);
87 crc = EXTRACT_16BITS(&mob->hcheck);
88 if (proto & OSRC_PRES) {

--- 21 unchanged lines hidden ---
81 fputs("[|mobile]", stdout);
82 return;
83 }
84 fputs("mobile: ", stdout);
85
86 proto = EXTRACT_16BITS(&mob->proto);
87 crc = EXTRACT_16BITS(&mob->hcheck);
88 if (proto & OSRC_PRES) {

--- 21 unchanged lines hidden ---