* Variables to allow for proper deletion of dissector registration when
* the user changes port from the gui.
*/
- static int gateway_tcp_port;
- static int gateway_udp_port;
- static int callagent_tcp_port;
- static int callagent_udp_port;
+ static guint gateway_tcp_port;
+ static guint gateway_udp_port;
+ static guint callagent_tcp_port;
+ static guint callagent_udp_port;
if (!mgcp_prefs_initialized)
{
#define NETFLAG_LENGTH_MASK 0x0000ffff
#define NET_HEADERSIZE 8
#define DEFAULTnet_hostport 26000
-static unsigned int gbl_quakeServerPort=DEFAULTnet_hostport;
+static guint gbl_quakeServerPort=DEFAULTnet_hostport;
#define NETFLAG_LENGTH_MASK 0x0000ffff
#define NETFLAG_DATA 0x00010000
proto_reg_handoff_quake(void)
{
static gboolean Initialized=FALSE;
- static int ServerPort;
+ static guint ServerPort;
if (!Initialized) {
quake_handle = create_dissector_handle(dissect_quake, proto_quake);
static dissector_handle_t data_handle;
#define PORT_MASTER 27910
-static unsigned int gbl_quake2ServerPort=PORT_MASTER;
+static guint gbl_quake2ServerPort=PORT_MASTER;
static void
{
static gboolean Initialized=FALSE;
static dissector_handle_t quake2_handle;
- static int ServerPort;
+ static guint ServerPort;
if (!Initialized) {
quake2_handle = create_dissector_handle(dissect_quake2,
#define QUAKE3_SERVER_PORT 27960
#define QUAKE3_MASTER_PORT 27950
-static unsigned int gbl_quake3_server_port=QUAKE3_SERVER_PORT;
-static unsigned int gbl_quake3_master_port=QUAKE3_MASTER_PORT;
+static guint gbl_quake3_server_port=QUAKE3_SERVER_PORT;
+static guint gbl_quake3_master_port=QUAKE3_MASTER_PORT;
static const value_string names_direction[] = {
{
static gboolean initialized=FALSE;
static dissector_handle_t quake3_handle;
- static int server_port;
- static int master_port;
+ static guint server_port;
+ static guint master_port;
int i;
if (!initialized) {
/* I took this name and value directly out of the QW source. */
#define PORT_MASTER 27500
-static unsigned int gbl_quakeworldServerPort=PORT_MASTER;
+static guint gbl_quakeworldServerPort=PORT_MASTER;
/* out of band message id bytes (taken out of quakeworldsource/client/protocol.h */
{
static gboolean Initialized=FALSE;
static dissector_handle_t quakeworld_handle;
- static int ServerPort;
+ static guint ServerPort;
if (!Initialized) {
quakeworld_handle = create_dissector_handle(dissect_quakeworld,