1190207Srpaulo/* @(#) $Header: /tcpdump/master/tcpdump/udp.h,v 1.13 2007-08-08 17:20:58 hannes Exp $ (LBL) */ 275115Sfenner/* 375115Sfenner * Copyright (c) 1982, 1986, 1993 475115Sfenner * The Regents of the University of California. All rights reserved. 575115Sfenner * 675115Sfenner * Redistribution and use in source and binary forms, with or without 775115Sfenner * modification, are permitted provided that the following conditions 875115Sfenner * are met: 975115Sfenner * 1. Redistributions of source code must retain the above copyright 1075115Sfenner * notice, this list of conditions and the following disclaimer. 1175115Sfenner * 2. Redistributions in binary form must reproduce the above copyright 1275115Sfenner * notice, this list of conditions and the following disclaimer in the 1375115Sfenner * documentation and/or other materials provided with the distribution. 1475115Sfenner * 3. All advertising materials mentioning features or use of this software 1575115Sfenner * must display the following acknowledgement: 1675115Sfenner * This product includes software developed by the University of 1775115Sfenner * California, Berkeley and its contributors. 1875115Sfenner * 4. Neither the name of the University nor the names of its contributors 1975115Sfenner * may be used to endorse or promote products derived from this software 2075115Sfenner * without specific prior written permission. 2175115Sfenner * 2275115Sfenner * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 2375115Sfenner * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2475115Sfenner * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2575115Sfenner * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2675115Sfenner * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2775115Sfenner * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2875115Sfenner * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2975115Sfenner * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 3075115Sfenner * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 3175115Sfenner * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3275115Sfenner * SUCH DAMAGE. 3375115Sfenner * 3475115Sfenner * @(#)udp.h 8.1 (Berkeley) 6/10/93 3575115Sfenner */ 3675115Sfenner 3775115Sfenner/* 3875115Sfenner * Udp protocol header. 3975115Sfenner * Per RFC 768, September, 1981. 4075115Sfenner */ 4175115Sfennerstruct udphdr { 4275115Sfenner u_int16_t uh_sport; /* source port */ 4375115Sfenner u_int16_t uh_dport; /* destination port */ 4475115Sfenner u_int16_t uh_ulen; /* udp length */ 4575115Sfenner u_int16_t uh_sum; /* udp checksum */ 4675115Sfenner}; 47127668Sbms 48127668Sbms#define TFTP_PORT 69 /*XXX*/ 49127668Sbms#define KERBEROS_PORT 88 /*XXX*/ 50127668Sbms#define SUNRPC_PORT 111 /*XXX*/ 51127668Sbms#define SNMP_PORT 161 /*XXX*/ 52127668Sbms#define NTP_PORT 123 /*XXX*/ 53127668Sbms#define SNMPTRAP_PORT 162 /*XXX*/ 54127668Sbms#define ISAKMP_PORT 500 /*XXX*/ 55146773Ssam#define SYSLOG_PORT 514 /* rfc3164 */ 56127668Sbms#define TIMED_PORT 525 /*XXX*/ 57127668Sbms#define RIP_PORT 520 /*XXX*/ 58127668Sbms#define LDP_PORT 646 59127668Sbms#define AODV_PORT 654 /*XXX*/ 60172683Smlaier#define OLSR_PORT 698 /* rfc3626 */ 61127668Sbms#define KERBEROS_SEC_PORT 750 /*XXX*/ 62127668Sbms#define L2TP_PORT 1701 /*XXX*/ 63146773Ssam#define SIP_PORT 5060 64146773Ssam#define ISAKMP_PORT_NATT 4500 /* rfc3948 */ 65127668Sbms#define ISAKMP_PORT_USER1 7500 /*XXX - nonstandard*/ 66127668Sbms#define ISAKMP_PORT_USER2 8500 /*XXX - nonstandard*/ 67127668Sbms#define RX_PORT_LOW 7000 /*XXX*/ 68127668Sbms#define RX_PORT_HIGH 7009 /*XXX*/ 69127668Sbms#define NETBIOS_NS_PORT 137 70127668Sbms#define NETBIOS_DGRAM_PORT 138 71127668Sbms#define CISCO_AUTORP_PORT 496 /*XXX*/ 72127668Sbms#define RADIUS_PORT 1645 73127668Sbms#define RADIUS_NEW_PORT 1812 74127668Sbms#define RADIUS_ACCOUNTING_PORT 1646 75127668Sbms#define RADIUS_NEW_ACCOUNTING_PORT 1813 76127668Sbms#define HSRP_PORT 1985 /*XXX*/ 77172683Smlaier#define LMP_PORT 701 /* rfc4204 */ 78127668Sbms#define LWRES_PORT 921 79190207Srpaulo#define VQP_PORT 1589 80127668Sbms#define ZEPHYR_SRV_PORT 2103 81127668Sbms#define ZEPHYR_CLT_PORT 2104 82127668Sbms#define MPLS_LSP_PING_PORT 3503 /* draft-ietf-mpls-lsp-ping-02.txt */ 83127668Sbms#define BFD_CONTROL_PORT 3784 /* draft-katz-ward-bfd-v4v6-1hop-00.txt */ 84127668Sbms#define BFD_ECHO_PORT 3785 /* draft-katz-ward-bfd-v4v6-1hop-00.txt */ 85190207Srpaulo#define SFLOW_PORT 6343 /* http://www.sflow.org/developers/specifications.php */ 86190207Srpaulo#define LWAPP_DATA_PORT 12222 /* draft-ohara-capwap-lwapp-04.txt */ 87190207Srpaulo#define LWAPP_CONTROL_PORT 12223 /* draft-ohara-capwap-lwapp-04.txt */ 88251158Sdelphij#define OTV_PORT 8472 /* draft-hasmit-otv-04 */ 89127668Sbms 90127668Sbms#ifdef INET6 91127668Sbms#define RIPNG_PORT 521 /*XXX*/ 92127668Sbms#define DHCP6_SERV_PORT 546 /*XXX*/ 93127668Sbms#define DHCP6_CLI_PORT 547 /*XXX*/ 94235530Sdelphij#define BABEL_PORT 6696 95235530Sdelphij#define BABEL_PORT_OLD 6697 96127668Sbms#endif 97