From c709d10b6fa115cf0be302186f54ff063dcfee4c Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Sat, 11 May 2002 18:52:55 +0000 Subject: Use a name, not a number, to refer to the IP protocol number for UDP. svn path=/trunk/; revision=5444 --- packet-portmap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packet-portmap.c') diff --git a/packet-portmap.c b/packet-portmap.c index dff5543f12..f5ce917ed4 100644 --- a/packet-portmap.c +++ b/packet-portmap.c @@ -1,7 +1,7 @@ /* packet-portmap.c * Routines for portmap dissection * - * $Id: packet-portmap.c,v 1.36 2002/05/09 12:10:05 sahlberg Exp $ + * $Id: packet-portmap.c,v 1.37 2002/05/11 18:52:55 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs @@ -84,7 +84,7 @@ dissect_getport_call(tvbuff_t *tvb, int offset, packet_info *pinfo _U_, rpc_call_info_value *rpc_call=pinfo->private_data; if(rpc_call){ proto = tvb_get_ntohl(tvb, offset+8); - if(proto==17){ /* only do this for UDP */ + if(proto==IP_PROTO_UDP){ /* only do this for UDP */ rpc_call->private_data=(void *)PT_UDP; } } -- cgit v1.2.3