aboutsummaryrefslogtreecommitdiffstats
path: root/packet-udp.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-03-03 23:46:50 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2003-03-03 23:46:50 +0000
commit917f568b66e94438f58f21b2ef2436743373b962 (patch)
tree1f74b727d6695538307add1b949865ca32d7fe9b /packet-udp.h
parent15eea3fbb6d24c4312f2db1f8e39fe67e93f885a (diff)
Added tap functionality to UDP
Added top talkers calculation for UDP socketpairs try -z io,users,udpip svn path=/trunk/; revision=7266
Diffstat (limited to 'packet-udp.h')
-rw-r--r--packet-udp.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/packet-udp.h b/packet-udp.h
index 923cd2096d..30dd8ecda5 100644
--- a/packet-udp.h
+++ b/packet-udp.h
@@ -1,6 +1,6 @@
/* packet-udp.h
*
- * $Id: packet-udp.h,v 1.6 2002/08/28 21:00:36 jmayer Exp $
+ * $Id: packet-udp.h,v 1.7 2003/03/03 23:46:48 sahlberg Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
@@ -25,6 +25,18 @@
#ifndef __PACKET_UDP_H__
#define __PACKET_UDP_H__
+/* UDP structs and definitions */
+typedef struct _e_udphdr {
+ guint16 uh_sport;
+ guint16 uh_dport;
+ guint16 uh_ulen;
+ guint16 uh_sum;
+ /* This can be either a ipv4 or a ipv6 header struct so make sure you know
+ what you try to dereference */
+ void *ip_header;
+} e_udphdr;
+
+
extern void decode_udp_ports(tvbuff_t *, int, packet_info *,
proto_tree *, int, int);