print-msdp.c (127668) | print-msdp.c (146773) |
---|---|
1/* 2 * Copyright (c) 2001 William C. Fenner. 3 * 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 7 * distributions retain the above copyright notice and this paragraph 8 * in its entirety, and (2) distributions including binary code include 9 * the above copyright notice and this paragraph in its entirety in 10 * the documentation or other materials provided with the distribution. 11 * The name of William C. Fenner may not be used to endorse or 12 * promote products derived from this software without specific prior 13 * written permission. THIS SOFTWARE IS PROVIDED ``AS IS'' AND 14 * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT 15 * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 16 * FOR A PARTICULAR PURPOSE. 17 */ 18#ifndef lint 19static const char rcsid[] _U_ = | 1/* 2 * Copyright (c) 2001 William C. Fenner. 3 * 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 7 * distributions retain the above copyright notice and this paragraph 8 * in its entirety, and (2) distributions including binary code include 9 * the above copyright notice and this paragraph in its entirety in 10 * the documentation or other materials provided with the distribution. 11 * The name of William C. Fenner may not be used to endorse or 12 * promote products derived from this software without specific prior 13 * written permission. THIS SOFTWARE IS PROVIDED ``AS IS'' AND 14 * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT 15 * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 16 * FOR A PARTICULAR PURPOSE. 17 */ 18#ifndef lint 19static const char rcsid[] _U_ = |
20 "@(#) $Header: /tcpdump/master/tcpdump/print-msdp.c,v 1.4.2.2 2003/11/16 08:51:34 guy Exp $"; | 20 "@(#) $Header: /tcpdump/master/tcpdump/print-msdp.c,v 1.7 2005/04/06 21:32:41 mcr Exp $"; |
21#endif 22 23#ifdef HAVE_CONFIG_H 24#include "config.h" 25#endif 26 27#include <tcpdump-stdinc.h> 28 --- 36 unchanged lines hidden (view full) --- 65 else 66 (void)printf(" SA-Response"); 67 TCHECK(*sp); 68 (void)printf(" %u entries", *sp); 69 if ((u_int)((*sp * 12) + 8) < len) { 70 (void)printf(" [w/data]"); 71 if (vflag > 1) { 72 (void)printf(" "); | 21#endif 22 23#ifdef HAVE_CONFIG_H 24#include "config.h" 25#endif 26 27#include <tcpdump-stdinc.h> 28 --- 36 unchanged lines hidden (view full) --- 65 else 66 (void)printf(" SA-Response"); 67 TCHECK(*sp); 68 (void)printf(" %u entries", *sp); 69 if ((u_int)((*sp * 12) + 8) < len) { 70 (void)printf(" [w/data]"); 71 if (vflag > 1) { 72 (void)printf(" "); |
73 ip_print(sp + *sp * 12 + 8 - 3, | 73 ip_print(gndo, sp + *sp * 12 + 8 - 3, |
74 len - (*sp * 12 + 8)); 75 } 76 } 77 break; 78 case 2: 79 (void)printf(" SA-Request"); 80 TCHECK2(*sp, 5); 81 (void)printf(" for %s", ipaddr_string(sp + 1)); --- 12 unchanged lines hidden (view full) --- 94 } 95 sp += (len - 3); 96 length -= (len - 3); 97 } 98 return; 99trunc: 100 (void)printf(" [|msdp]"); 101} | 74 len - (*sp * 12 + 8)); 75 } 76 } 77 break; 78 case 2: 79 (void)printf(" SA-Request"); 80 TCHECK2(*sp, 5); 81 (void)printf(" for %s", ipaddr_string(sp + 1)); --- 12 unchanged lines hidden (view full) --- 94 } 95 sp += (len - 3); 96 length -= (len - 3); 97 } 98 return; 99trunc: 100 (void)printf(" [|msdp]"); 101} |
102 103/* 104 * Local Variables: 105 * c-style: whitesmith 106 * c-basic-offset: 8 107 * End: 108 */ |
|