Deleted Added
full compact
print-ipx.c (147904) print-ipx.c (162021)
1/*
2 * Copyright (c) 1994, 1995, 1996
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

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

16 * written permission.
17 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
18 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
19 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20 *
21 * Format and print Novell IPX packets.
22 * Contributed by Brad Parker (brad@fcr.com).
23 *
1/*
2 * Copyright (c) 1994, 1995, 1996
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

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

16 * written permission.
17 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
18 * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
19 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
20 *
21 * Format and print Novell IPX packets.
22 * Contributed by Brad Parker (brad@fcr.com).
23 *
24 * $FreeBSD: head/contrib/tcpdump/print-ipx.c 147904 2005-07-11 04:14:02Z sam $
24 * $FreeBSD: head/contrib/tcpdump/print-ipx.c 162021 2006-09-04 20:25:04Z sam $
25 */
26
27#ifndef lint
28static const char rcsid[] _U_ =
29 "@(#) $Header: /tcpdump/master/tcpdump/print-ipx.c,v 1.40.2.2 2005/05/06 08:27:00 guy Exp $";
30#endif
31
32#ifdef HAVE_CONFIG_H

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

193 ipx++;
194 length -= 2;
195
196 switch (command) {
197 case 1:
198 (void)printf("ipx-rip-req");
199 if (length > 0) {
200 TCHECK(ipx[3]);
25 */
26
27#ifndef lint
28static const char rcsid[] _U_ =
29 "@(#) $Header: /tcpdump/master/tcpdump/print-ipx.c,v 1.40.2.2 2005/05/06 08:27:00 guy Exp $";
30#endif
31
32#ifdef HAVE_CONFIG_H

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

193 ipx++;
194 length -= 2;
195
196 switch (command) {
197 case 1:
198 (void)printf("ipx-rip-req");
199 if (length > 0) {
200 TCHECK(ipx[3]);
201 (void)printf(" %x/%d.%d", EXTRACT_32BITS(&ipx[0]),
201 (void)printf(" %u/%d.%d", EXTRACT_32BITS(&ipx[0]),
202 EXTRACT_16BITS(&ipx[2]), EXTRACT_16BITS(&ipx[3]));
203 }
204 break;
205 case 2:
206 (void)printf("ipx-rip-resp");
207 for (i = 0; i < 50 && length > 0; i++) {
208 TCHECK(ipx[3]);
202 EXTRACT_16BITS(&ipx[2]), EXTRACT_16BITS(&ipx[3]));
203 }
204 break;
205 case 2:
206 (void)printf("ipx-rip-resp");
207 for (i = 0; i < 50 && length > 0; i++) {
208 TCHECK(ipx[3]);
209 (void)printf(" %x/%d.%d", EXTRACT_32BITS(&ipx[0]),
209 (void)printf(" %u/%d.%d", EXTRACT_32BITS(&ipx[0]),
210 EXTRACT_16BITS(&ipx[2]), EXTRACT_16BITS(&ipx[3]));
211
212 ipx += 4;
213 length -= 8;
214 }
215 break;
216 default:
217 (void)printf("ipx-rip-?%x", command);
218 break;
219 }
220 return;
221trunc:
222 printf("[|ipx %d]", length);
223}
210 EXTRACT_16BITS(&ipx[2]), EXTRACT_16BITS(&ipx[3]));
211
212 ipx += 4;
213 length -= 8;
214 }
215 break;
216 default:
217 (void)printf("ipx-rip-?%x", command);
218 break;
219 }
220 return;
221trunc:
222 printf("[|ipx %d]", length);
223}