From Joerg Mayer: get rid of unused arguments.

svn path=/trunk/; revision=5333
This commit is contained in:
Guy Harris 2002-05-01 08:17:09 +00:00
parent 969e0f7dd4
commit ee154a2a11
2 changed files with 51 additions and 57 deletions

View File

@ -2,7 +2,7 @@
* Routines for Mobile IP dissection * Routines for Mobile IP dissection
* Copyright 2000, Stefan Raab <sraab@cisco.com> * Copyright 2000, Stefan Raab <sraab@cisco.com>
* *
* $Id: packet-mip.c,v 1.29 2002/04/29 09:57:29 guy Exp $ * $Id: packet-mip.c,v 1.30 2002/05/01 08:17:09 guy Exp $
* *
* Ethereal - Network traffic analyzer * Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com> * By Gerald Combs <gerald@ethereal.com>
@ -166,8 +166,7 @@ static const value_string mip_ext_stypes[]= {
}; };
/* Code to dissect extensions */ /* Code to dissect extensions */
static void static void
dissect_mip_extensions( tvbuff_t *tvb, int offset, packet_info *pinfo, dissect_mip_extensions( tvbuff_t *tvb, int offset, proto_tree *tree)
proto_tree *tree)
{ {
proto_item *ti; proto_item *ti;
proto_tree *exts_tree=NULL; proto_tree *exts_tree=NULL;
@ -379,7 +378,7 @@ dissect_mip( tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if (tree) { if (tree) {
if (tvb_reported_length_remaining(tvb, offset) > 0) if (tvb_reported_length_remaining(tvb, offset) > 0)
dissect_mip_extensions(tvb, offset, pinfo, mip_tree); dissect_mip_extensions(tvb, offset, mip_tree);
} }
} /* dissect_mip */ } /* dissect_mip */

View File

@ -2,7 +2,7 @@
* Routines for Microsoft Proxy packet dissection * Routines for Microsoft Proxy packet dissection
* Copyright 2000, Jeffrey C. Foster <jfoste@woodward.com> * Copyright 2000, Jeffrey C. Foster <jfoste@woodward.com>
* *
* $Id: packet-msproxy.c,v 1.28 2002/04/02 01:28:14 guy Exp $ * $Id: packet-msproxy.c,v 1.29 2002/05/01 08:14:32 guy Exp $
* *
* Ethereal - Network traffic analyzer * Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com> * By Gerald Combs <gerald@ethereal.com>
@ -318,7 +318,7 @@ static void add_msproxy_conversation( packet_info *pinfo,
static int display_application_name(tvbuff_t *tvb, int offset, static int display_application_name(tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree) { proto_tree *tree) {
/* display the application name in the proto tree. */ /* display the application name in the proto tree. */
@ -377,7 +377,7 @@ static char *get_msproxy_cmd_name( int cmd, int direction) {
static void dissect_user_info_2(tvbuff_t *tvb, int offset, packet_info *pinfo, static void dissect_user_info_2(tvbuff_t *tvb, int offset,
proto_tree *tree) { proto_tree *tree) {
/* decode the user, application, computer name */ /* decode the user, application, computer name */
@ -414,20 +414,20 @@ static void dissect_user_info_2(tvbuff_t *tvb, int offset, packet_info *pinfo,
static void dissect_msproxy_request_1(tvbuff_t *tvb, int offset, static void dissect_msproxy_request_1(tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree) { proto_tree *tree) {
/* decode the request _1 structure */ /* decode the request _1 structure */
offset += 182; offset += 182;
dissect_user_info_2( tvb, offset, pinfo, tree); dissect_user_info_2( tvb, offset, tree);
} }
static void dissect_bind(tvbuff_t *tvb, int offset, packet_info *pinfo, static void dissect_bind(tvbuff_t *tvb, int offset,
proto_tree *tree, hash_entry_t *conv_info) { proto_tree *tree, hash_entry_t *conv_info) {
/* decode the bind request */ /* decode the bind request */
@ -457,14 +457,14 @@ static void dissect_bind(tvbuff_t *tvb, int offset, packet_info *pinfo,
FALSE); FALSE);
offset += 82; offset += 82;
display_application_name( tvb, offset, pinfo, tree); display_application_name( tvb, offset, tree);
} }
} }
static void dissect_auth(tvbuff_t *tvb, int offset, static void dissect_auth(tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree) { proto_tree *tree) {
/* decode the authorization request */ /* decode the authorization request */
@ -480,7 +480,7 @@ static void dissect_auth(tvbuff_t *tvb, int offset,
static void dissect_tcp_bind(tvbuff_t *tvb, int offset, static void dissect_tcp_bind(tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree, hash_entry_t *conv_info) { proto_tree *tree, hash_entry_t *conv_info) {
/* decode the bind packet. Set the protocol type in the conversation */ /* decode the bind packet. Set the protocol type in the conversation */
/* information so the bind_info can use it to create the payload */ /* information so the bind_info can use it to create the payload */
@ -500,13 +500,13 @@ static void dissect_tcp_bind(tvbuff_t *tvb, int offset,
FALSE); FALSE);
offset += 96; offset += 96;
display_application_name( tvb, offset, pinfo, tree); display_application_name( tvb, offset, tree);
} }
} }
static void dissect_request_connect(tvbuff_t *tvb, int offset, static void dissect_request_connect(tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree, hash_entry_t *conv_info) { proto_tree *tree, hash_entry_t *conv_info) {
/* decode the connect request, display */ /* decode the connect request, display */
@ -537,13 +537,12 @@ static void dissect_request_connect(tvbuff_t *tvb, int offset,
offset += 84; offset += 84;
display_application_name( tvb, offset, pinfo, tree); display_application_name( tvb, offset, tree);
} }
} }
static void dissect_bind_info_ack(tvbuff_t *tvb, int offset, packet_info *pinfo, static void dissect_bind_info_ack(tvbuff_t *tvb, int offset, proto_tree *tree) {
proto_tree *tree, hash_entry_t *conv_info) {
/* decode the client bind info ack */ /* decode the client bind info ack */
@ -575,13 +574,13 @@ static void dissect_bind_info_ack(tvbuff_t *tvb, int offset, packet_info *pinfo,
offset, 4, FALSE); offset, 4, FALSE);
offset += 78; offset += 78;
display_application_name( tvb, offset, pinfo, tree); display_application_name( tvb, offset, tree);
} }
} }
static void dissect_request_resolve(tvbuff_t *tvb, int offset, static void dissect_request_resolve(tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree) { proto_tree *tree) {
/* dissect the request resolve structure */ /* dissect the request resolve structure */
/* display a string with a length, characters encoding */ /* display a string with a length, characters encoding */
@ -614,7 +613,7 @@ static void dissect_request_resolve(tvbuff_t *tvb, int offset,
static void dissect_udp_bind(tvbuff_t *tvb, int offset, static void dissect_udp_bind(tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree, hash_entry_t *conv_info) { proto_tree *tree, hash_entry_t *conv_info) {
/* Dissect the udp bind request. Load the protocol id (PT_UDP) and the */ /* Dissect the udp bind request. Load the protocol id (PT_UDP) and the */
/* remote address so bind_info can use it to create conversation */ /* remote address so bind_info can use it to create conversation */
@ -643,12 +642,12 @@ static void dissect_udp_bind(tvbuff_t *tvb, int offset,
offset += 96; offset += 96;
if ( tree) if ( tree)
display_application_name( tvb, offset, pinfo, tree); display_application_name( tvb, offset, tree);
} }
static void dissect_udp_assoc(tvbuff_t *tvb, int offset, static void dissect_udp_assoc(tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree, hash_entry_t *conv_info) { proto_tree *tree, hash_entry_t *conv_info) {
/* dissect the udp associate request. And load client port into */ /* dissect the udp associate request. And load client port into */
/* conversation data structure for later. */ /* conversation data structure for later. */
@ -665,11 +664,11 @@ static void dissect_udp_assoc(tvbuff_t *tvb, int offset,
offset += 90; offset += 90;
if ( tree) if ( tree)
display_application_name( tvb, offset, pinfo, tree); display_application_name( tvb, offset, tree);
} }
static void dissect_msproxy_request(tvbuff_t *tvb, packet_info *pinfo, static void dissect_msproxy_request(tvbuff_t *tvb,
proto_tree *tree, hash_entry_t *conv_info) { proto_tree *tree, hash_entry_t *conv_info) {
int offset = 0; int offset = 0;
@ -714,44 +713,43 @@ static void dissect_msproxy_request(tvbuff_t *tvb, packet_info *pinfo,
switch (cmd){ switch (cmd){
case MSPROXY_AUTH: case MSPROXY_AUTH:
dissect_auth( tvb, offset, pinfo, tree); dissect_auth( tvb, offset, tree);
break; break;
case MSPROXY_BIND: case MSPROXY_BIND:
dissect_bind( tvb, offset, pinfo, tree, conv_info); dissect_bind( tvb, offset, tree, conv_info);
break; break;
case MSPROXY_UDP_BIND_REQ: case MSPROXY_UDP_BIND_REQ:
dissect_udp_bind( tvb, offset, pinfo, tree, conv_info); dissect_udp_bind( tvb, offset, tree, conv_info);
break; break;
case MSPROXY_AUTH_2: /*$$ this is probably wrong place for this */ case MSPROXY_AUTH_2: /*$$ this is probably wrong place for this */
case MSPROXY_TCP_BIND: case MSPROXY_TCP_BIND:
dissect_tcp_bind( tvb, offset, pinfo, tree, conv_info); dissect_tcp_bind( tvb, offset, tree, conv_info);
break; break;
case MSPROXY_RESOLVE: case MSPROXY_RESOLVE:
dissect_request_resolve( tvb, offset, pinfo, tree); dissect_request_resolve( tvb, offset, tree);
break; break;
case MSPROXY_CONNECT: case MSPROXY_CONNECT:
case MSPROXY_LISTEN: case MSPROXY_LISTEN:
dissect_request_connect( tvb, offset, pinfo, tree, dissect_request_connect( tvb, offset, tree,
conv_info); conv_info);
break; break;
case MSPROXY_BINDINFO_ACK: case MSPROXY_BINDINFO_ACK:
dissect_bind_info_ack( tvb, offset, pinfo, tree, dissect_bind_info_ack( tvb, offset, tree);
conv_info);
break; break;
case MSPROXY_HELLO: case MSPROXY_HELLO:
case MSPROXY_HELLO_2: case MSPROXY_HELLO_2:
dissect_msproxy_request_1( tvb, offset, pinfo, tree); dissect_msproxy_request_1( tvb, offset, tree);
break; break;
case MSPROXY_UDPASSOCIATE: case MSPROXY_UDPASSOCIATE:
dissect_udp_assoc( tvb, offset, pinfo, tree, conv_info); dissect_udp_assoc( tvb, offset, tree, conv_info);
break; break;
default: default:
if ( tree) if ( tree)
@ -762,8 +760,7 @@ static void dissect_msproxy_request(tvbuff_t *tvb, packet_info *pinfo,
static void dissect_hello_ack(tvbuff_t *tvb, int offset, packet_info *pinfo, static void dissect_hello_ack(tvbuff_t *tvb, int offset, proto_tree *tree) {
proto_tree *tree, hash_entry_t *conv_info) {
/* decode the hello acknowledge packet */ /* decode the hello acknowledge packet */
@ -783,7 +780,7 @@ static void dissect_hello_ack(tvbuff_t *tvb, int offset, packet_info *pinfo,
static void dissect_user_info_ack(tvbuff_t *tvb, int offset, static void dissect_user_info_ack(tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree) { proto_tree *tree) {
/* decode the response _2 structure */ /* decode the response _2 structure */
@ -796,7 +793,7 @@ static void dissect_user_info_ack(tvbuff_t *tvb, int offset,
static void dissect_udpassociate_ack(tvbuff_t *tvb, int offset, static void dissect_udpassociate_ack(tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree) { proto_tree *tree) {
offset += 6; offset += 6;
@ -813,13 +810,13 @@ static void dissect_udpassociate_ack(tvbuff_t *tvb, int offset,
offset, 4, FALSE); offset, 4, FALSE);
offset += 96; offset += 96;
display_application_name( tvb, offset, pinfo, tree); display_application_name( tvb, offset, tree);
} }
} }
static void dissect_auth_1_ack(tvbuff_t *tvb, int offset, packet_info *pinfo, static void dissect_auth_1_ack(tvbuff_t *tvb, int offset,
proto_tree *tree) { proto_tree *tree) {
offset += 134; offset += 134;
@ -837,7 +834,7 @@ static void dissect_auth_1_ack(tvbuff_t *tvb, int offset, packet_info *pinfo,
static void dissect_msproxy_response_4( tvbuff_t *tvb, int offset, static void dissect_msproxy_response_4( tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree) { proto_tree *tree) {
/* decode the response _4 structure */ /* decode the response _4 structure */
@ -874,7 +871,7 @@ static void dissect_connect_ack( tvbuff_t *tvb, int offset, packet_info *pinfo,
offset, 4, FALSE); offset, 4, FALSE);
offset += 80; offset += 80;
display_application_name( tvb, offset, pinfo, tree); display_application_name( tvb, offset, tree);
} }
add_msproxy_conversation( pinfo, conv_info); add_msproxy_conversation( pinfo, conv_info);
@ -882,8 +879,7 @@ static void dissect_connect_ack( tvbuff_t *tvb, int offset, packet_info *pinfo,
static void dissect_tcp_bind_ack( tvbuff_t *tvb, int offset, packet_info *pinfo, static void dissect_tcp_bind_ack( tvbuff_t *tvb, int offset, proto_tree *tree) {
proto_tree *tree) {
/* decode the tcp bind */ /* decode the tcp bind */
@ -907,7 +903,7 @@ static void dissect_tcp_bind_ack( tvbuff_t *tvb, int offset, packet_info *pinfo,
offset += 88; offset += 88;
display_application_name( tvb, offset, pinfo, tree); display_application_name( tvb, offset, tree);
} }
} }
@ -953,7 +949,7 @@ static void dissect_bind_info( tvbuff_t *tvb, int offset, packet_info *pinfo,
offset, 4, FALSE); offset, 4, FALSE);
offset += 78; offset += 78;
display_application_name( tvb, offset, pinfo, tree); display_application_name( tvb, offset, tree);
} }
@ -962,8 +958,7 @@ static void dissect_bind_info( tvbuff_t *tvb, int offset, packet_info *pinfo,
static void dissect_resolve(tvbuff_t *tvb, int offset, packet_info *pinfo, static void dissect_resolve(tvbuff_t *tvb, int offset, proto_tree *tree) {
proto_tree *tree) {
/* dissect the response resolve structure */ /* dissect the response resolve structure */
/* display a string with a length, characters encoding */ /* display a string with a length, characters encoding */
@ -1037,30 +1032,30 @@ static void dissect_msproxy_response(tvbuff_t *tvb, packet_info *pinfo,
switch (cmd) { switch (cmd) {
case MSPROXY_HELLO_ACK: case MSPROXY_HELLO_ACK:
dissect_hello_ack( tvb, offset, pinfo, tree, conv_info); dissect_hello_ack( tvb, offset, tree);
break; break;
case MSPROXY_USERINFO_ACK: case MSPROXY_USERINFO_ACK:
dissect_user_info_ack( tvb, offset, pinfo, tree); dissect_user_info_ack( tvb, offset, tree);
break; break;
case MSPROXY_AUTH_1_ACK: case MSPROXY_AUTH_1_ACK:
dissect_auth_1_ack( tvb, offset, pinfo, tree); dissect_auth_1_ack( tvb, offset, tree);
break; break;
/* this also handle the MSPROXY_BIND_ACK ??? check this */ /* this also handle the MSPROXY_BIND_ACK ??? check this */
case MSPROXY_UDPASSOCIATE_ACK: case MSPROXY_UDPASSOCIATE_ACK:
dissect_udpassociate_ack( tvb, offset, pinfo, tree); dissect_udpassociate_ack( tvb, offset, tree);
break; break;
case MSPROXY_AUTH_2_ACK: case MSPROXY_AUTH_2_ACK:
case MSPROXY_AUTH_2_ACK2: case MSPROXY_AUTH_2_ACK2:
dissect_msproxy_response_4( tvb, offset, pinfo, tree); dissect_msproxy_response_4( tvb, offset, tree);
break; break;
case MSPROXY_TCP_BIND_ACK: case MSPROXY_TCP_BIND_ACK:
dissect_tcp_bind_ack( tvb, offset, pinfo, tree); dissect_tcp_bind_ack( tvb, offset, tree);
break; break;
case MSPROXY_CONNECT_ACK: case MSPROXY_CONNECT_ACK:
@ -1073,7 +1068,7 @@ static void dissect_msproxy_response(tvbuff_t *tvb, packet_info *pinfo,
break; break;
case MSPROXY_RESOLVE_ACK: case MSPROXY_RESOLVE_ACK:
dissect_resolve( tvb, offset, pinfo, tree); dissect_resolve( tvb, offset, tree);
break; break;
case MSPROXY_CONNECT_AUTHFAILED: case MSPROXY_CONNECT_AUTHFAILED:
@ -1152,7 +1147,7 @@ static void dissect_msproxy(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree)
if ( pinfo->srcport == UDP_PORT_MSPROXY) if ( pinfo->srcport == UDP_PORT_MSPROXY)
dissect_msproxy_response( tvb, pinfo, msproxy_tree, hash_info); dissect_msproxy_response( tvb, pinfo, msproxy_tree, hash_info);
else else
dissect_msproxy_request( tvb, pinfo, msproxy_tree, hash_info); dissect_msproxy_request( tvb, msproxy_tree, hash_info);
} }