print-udp.c (172686) | print-udp.c (190207) |
---|---|
1/* 2 * Copyright (c) 1988, 1989, 1990, 1991, 1992, 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 --- 4 unchanged lines hidden (view full) --- 13 * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of 14 * the University nor the names of its contributors may be used to endorse 15 * or promote products derived from this software without specific prior 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 * | 1/* 2 * Copyright (c) 1988, 1989, 1990, 1991, 1992, 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 --- 4 unchanged lines hidden (view full) --- 13 * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of 14 * the University nor the names of its contributors may be used to endorse 15 * or promote products derived from this software without specific prior 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 * $FreeBSD: head/contrib/tcpdump/print-udp.c 172686 2007-10-16 02:31:48Z mlaier $ | 21 * $FreeBSD: head/contrib/tcpdump/print-udp.c 190207 2009-03-21 18:30:25Z rpaulo $ |
22 */ 23 24#ifndef lint 25static const char rcsid[] _U_ = | 22 */ 23 24#ifndef lint 25static const char rcsid[] _U_ = |
26 "@(#) $Header: /tcpdump/master/tcpdump/print-udp.c,v 1.138.2.1 2007/03/28 07:45:46 hannes Exp $ (LBL)"; | 26 "@(#) $Header: /tcpdump/master/tcpdump/print-udp.c,v 1.142 2007-08-08 17:20:58 hannes Exp $ (LBL)"; |
27#endif 28 29#ifdef HAVE_CONFIG_H 30#include "config.h" 31#endif 32 33#include <tcpdump-stdinc.h> 34 --- 645 unchanged lines hidden (view full) --- 680 olsr_print((const u_char *)(up + 1), length); 681 else if (ISPORT(MPLS_LSP_PING_PORT)) 682 lspping_print((const u_char *)(up + 1), length); 683 else if (dport == BFD_CONTROL_PORT || 684 dport == BFD_ECHO_PORT ) 685 bfd_print((const u_char *)(up+1), length, dport); 686 else if (ISPORT(LMP_PORT)) 687 lmp_print((const u_char *)(up + 1), length); | 27#endif 28 29#ifdef HAVE_CONFIG_H 30#include "config.h" 31#endif 32 33#include <tcpdump-stdinc.h> 34 --- 645 unchanged lines hidden (view full) --- 680 olsr_print((const u_char *)(up + 1), length); 681 else if (ISPORT(MPLS_LSP_PING_PORT)) 682 lspping_print((const u_char *)(up + 1), length); 683 else if (dport == BFD_CONTROL_PORT || 684 dport == BFD_ECHO_PORT ) 685 bfd_print((const u_char *)(up+1), length, dport); 686 else if (ISPORT(LMP_PORT)) 687 lmp_print((const u_char *)(up + 1), length); |
688 else if (ISPORT(VQP_PORT)) 689 vqp_print((const u_char *)(up + 1), length); 690 else if (ISPORT(SFLOW_PORT)) 691 sflow_print((const u_char *)(up + 1), length); 692 else if (dport == LWAPP_CONTROL_PORT) 693 lwapp_control_print((const u_char *)(up + 1), length, 1); 694 else if (sport == LWAPP_CONTROL_PORT) 695 lwapp_control_print((const u_char *)(up + 1), length, 0); 696 else if (ISPORT(LWAPP_DATA_PORT)) 697 lwapp_data_print((const u_char *)(up + 1), length); |
|
688 else if (ISPORT(SIP_PORT)) 689 sip_print((const u_char *)(up + 1), length); 690 else if (ISPORT(SYSLOG_PORT)) 691 syslog_print((const u_char *)(up + 1), length); 692 else 693 (void)printf("UDP, length %u", 694 (u_int32_t)(ulen - sizeof(*up))); 695#undef ISPORT --- 12 unchanged lines hidden --- | 698 else if (ISPORT(SIP_PORT)) 699 sip_print((const u_char *)(up + 1), length); 700 else if (ISPORT(SYSLOG_PORT)) 701 syslog_print((const u_char *)(up + 1), length); 702 else 703 (void)printf("UDP, length %u", 704 (u_int32_t)(ulen - sizeof(*up))); 705#undef ISPORT --- 12 unchanged lines hidden --- |