Deleted Added
full compact
print-igrp.c (56893) print-igrp.c (75115)
1/*
2 * Copyright (c) 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

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

18 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
19 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20 *
21 * Initial contribution from Francis Dupont (francis.dupont@inria.fr)
22 */
23
24#ifndef lint
25static const char rcsid[] =
1/*
2 * Copyright (c) 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

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

18 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
19 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20 *
21 * Initial contribution from Francis Dupont (francis.dupont@inria.fr)
22 */
23
24#ifndef lint
25static const char rcsid[] =
26 "@(#) $Header: /tcpdump/master/tcpdump/print-igrp.c,v 1.11 1999/11/21 09:36:53 fenner Exp $ (LBL)";
26 "@(#) $Header: /tcpdump/master/tcpdump/print-igrp.c,v 1.15 2000/09/29 04:58:40 guy Exp $ (LBL)";
27#endif
28
29#ifdef HAVE_CONFIG_H
30#include "config.h"
31#endif
32
33#include <sys/param.h>
34#include <sys/types.h> /* concession to AIX */
35#include <sys/socket.h>
36
37#include <netinet/in.h>
27#endif
28
29#ifdef HAVE_CONFIG_H
30#include "config.h"
31#endif
32
33#include <sys/param.h>
34#include <sys/types.h> /* concession to AIX */
35#include <sys/socket.h>
36
37#include <netinet/in.h>
38#include <netinet/in_systm.h>
39#include <netinet/ip.h>
40#include <netinet/ip_var.h>
41#include <netinet/udp.h>
42#include <netinet/udp_var.h>
43
44#include <errno.h>
45#include <stdio.h>
46
47#include "interface.h"
48#include "addrtoname.h"
49#include "igrp.h"
38
39#include <errno.h>
40#include <stdio.h>
41
42#include "interface.h"
43#include "addrtoname.h"
44#include "igrp.h"
45#include "ip.h"
50#include "extract.h" /* must come after interface.h */
51
52static void
53igrp_entry_print(register struct igrprte *igr, register int is_interior,
54 register int is_exterior)
55{
56 register u_int delay, bandwidth;
57 u_int metric, mtu;

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

102
103 /* Header */
104 TCHECK(*hdr);
105 nint = EXTRACT_16BITS(&hdr->ig_ni);
106 nsys = EXTRACT_16BITS(&hdr->ig_ns);
107 next = EXTRACT_16BITS(&hdr->ig_nx);
108
109 (void)printf(" %s V%d edit=%d AS=%d (%d/%d/%d)",
46#include "extract.h" /* must come after interface.h */
47
48static void
49igrp_entry_print(register struct igrprte *igr, register int is_interior,
50 register int is_exterior)
51{
52 register u_int delay, bandwidth;
53 u_int metric, mtu;

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

98
99 /* Header */
100 TCHECK(*hdr);
101 nint = EXTRACT_16BITS(&hdr->ig_ni);
102 nsys = EXTRACT_16BITS(&hdr->ig_ns);
103 next = EXTRACT_16BITS(&hdr->ig_nx);
104
105 (void)printf(" %s V%d edit=%d AS=%d (%d/%d/%d)",
110 tok2str(op2str, "op-#%d", hdr->ig_op),
111 hdr->ig_v,
106 tok2str(op2str, "op-#%d", IGRP_OP(hdr->ig_vop)),
107 IGRP_V(hdr->ig_vop),
112 hdr->ig_ed,
113 EXTRACT_16BITS(&hdr->ig_as),
114 nint,
115 nsys,
116 next);
117
118 length -= sizeof(*hdr);
119 while (length >= IGRP_RTE_SIZE) {

--- 24 unchanged lines hidden ---
108 hdr->ig_ed,
109 EXTRACT_16BITS(&hdr->ig_as),
110 nint,
111 nsys,
112 next);
113
114 length -= sizeof(*hdr);
115 while (length >= IGRP_RTE_SIZE) {

--- 24 unchanged lines hidden ---