From 917f568b66e94438f58f21b2ef2436743373b962 Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Mon, 3 Mar 2003 23:46:50 +0000 Subject: Added tap functionality to UDP Added top talkers calculation for UDP socketpairs try -z io,users,udpip svn path=/trunk/; revision=7266 --- packet-udp.h | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'packet-udp.h') 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 @@ -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); -- cgit v1.2.3