diff --git a/epan/dissectors/packet-ansi_637.c b/epan/dissectors/packet-ansi_637.c index 8876a28c8c..999a87657b 100644 --- a/epan/dissectors/packet-ansi_637.c +++ b/epan/dissectors/packet-ansi_637.c @@ -34,14 +34,6 @@ # include "config.h" #endif -#ifdef HAVE_SYS_TYPES_H -# include -#endif - -#ifdef HAVE_NETINET_IN_H -# include -#endif - #include #include #include diff --git a/epan/dissectors/packet-ansi_683.c b/epan/dissectors/packet-ansi_683.c index 0cd8524fcf..fd6a38b1bd 100644 --- a/epan/dissectors/packet-ansi_683.c +++ b/epan/dissectors/packet-ansi_683.c @@ -34,14 +34,6 @@ # include "config.h" #endif -#ifdef HAVE_SYS_TYPES_H -# include -#endif - -#ifdef HAVE_NETINET_IN_H -# include -#endif - #include #include diff --git a/epan/dissectors/packet-ansi_801.c b/epan/dissectors/packet-ansi_801.c index 1aa027fb96..a015b8bbf6 100644 --- a/epan/dissectors/packet-ansi_801.c +++ b/epan/dissectors/packet-ansi_801.c @@ -42,14 +42,6 @@ #include #include -#ifdef HAVE_SYS_TYPES_H -# include -#endif - -#ifdef HAVE_NETINET_IN_H -# include -#endif - #include diff --git a/epan/dissectors/packet-bssap.c b/epan/dissectors/packet-bssap.c index bbcad23769..65c0bb2700 100644 --- a/epan/dissectors/packet-bssap.c +++ b/epan/dissectors/packet-bssap.c @@ -37,14 +37,6 @@ #include -#ifdef HAVE_SYS_TYPES_H -# include -#endif - -#ifdef HAVE_NETINET_IN_H -# include -#endif - #include #include #include diff --git a/epan/dissectors/packet-csm-encaps.c b/epan/dissectors/packet-csm-encaps.c index 3c4918b09f..bdd1023b5e 100644 --- a/epan/dissectors/packet-csm-encaps.c +++ b/epan/dissectors/packet-csm-encaps.c @@ -29,14 +29,6 @@ # include "config.h" #endif -#ifdef HAVE_SYS_TYPES_H -# include -#endif - -#ifdef HAVE_NETINET_IN_H -# include -#endif - #include #include diff --git a/epan/dissectors/packet-dcerpc-bossvr.c b/epan/dissectors/packet-dcerpc-bossvr.c index 34b912ae0f..bd294ec7c1 100644 --- a/epan/dissectors/packet-dcerpc-bossvr.c +++ b/epan/dissectors/packet-dcerpc-bossvr.c @@ -31,10 +31,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-cds_clerkserver.c b/epan/dissectors/packet-dcerpc-cds_clerkserver.c index bcd1c75eb7..a5a5016866 100644 --- a/epan/dissectors/packet-dcerpc-cds_clerkserver.c +++ b/epan/dissectors/packet-dcerpc-cds_clerkserver.c @@ -5,7 +5,7 @@ * Copyright 2002, Jaime Fournier * This information is based off the released idl files from opengroup. * ftp://ftp.opengroup.org/pub/dce122/dce/src/directory.tar.gz directory/cds/stubs/cds_clerkserver.idl - * + * * $Id$ * * Wireshark - Network traffic analyzer @@ -32,10 +32,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-cds_solicit.c b/epan/dissectors/packet-dcerpc-cds_solicit.c index 62cec6fefa..b9b96baf67 100644 --- a/epan/dissectors/packet-dcerpc-cds_solicit.c +++ b/epan/dissectors/packet-dcerpc-cds_solicit.c @@ -3,7 +3,7 @@ * Copyright 2002, Jaime Fournier * This information is based off the released idl files from opengroup. * ftp://ftp.opengroup.org/pub/dce122/dce/src/directory.tar.gz directory/cds/stubs/cds_solicit.idl - * + * * $Id$ * * Wireshark - Network traffic analyzer @@ -30,10 +30,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-conv.c b/epan/dissectors/packet-dcerpc-conv.c index 8f9d5a2b05..af20c74c6c 100644 --- a/epan/dissectors/packet-dcerpc-conv.c +++ b/epan/dissectors/packet-dcerpc-conv.c @@ -28,10 +28,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-cprpc_server.c b/epan/dissectors/packet-dcerpc-cprpc_server.c index 9f7581cae8..c9917c9dfb 100644 --- a/epan/dissectors/packet-dcerpc-cprpc_server.c +++ b/epan/dissectors/packet-dcerpc-cprpc_server.c @@ -3,7 +3,7 @@ * Copyright 2002, Jaime Fournier * This information is based off the released idl files from opengroup. * ftp://ftp.opengroup.org/pub/dce122/dce/src/directory.tar.gz directory/cds/stubs/cprpc_server.idl - * + * * $Id$ * * Wireshark - Network traffic analyzer @@ -30,10 +30,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-dtsprovider.c b/epan/dissectors/packet-dcerpc-dtsprovider.c index 982227a5e1..b5bcc945cc 100644 --- a/epan/dissectors/packet-dcerpc-dtsprovider.c +++ b/epan/dissectors/packet-dcerpc-dtsprovider.c @@ -30,10 +30,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-dtsstime_req.c b/epan/dissectors/packet-dcerpc-dtsstime_req.c index b4a524e03b..68894171b2 100644 --- a/epan/dissectors/packet-dcerpc-dtsstime_req.c +++ b/epan/dissectors/packet-dcerpc-dtsstime_req.c @@ -1,9 +1,9 @@ /* packet-dcerpc-dtsstime_req.c - * Routines for Time services stuff. + * Routines for Time services stuff. * Copyright 2002, Jaime Fournier * This information is based off the released idl files from opengroup. * ftp://ftp.opengroup.org/pub/dce122/dce/src/time.tar.gz time/service/dtsstime_req.idl - * + * * $Id$ * * Wireshark - Network traffic analyzer @@ -30,10 +30,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-fileexp.c b/epan/dissectors/packet-dcerpc-fileexp.c index 1afe740ce6..b86cacbf32 100644 --- a/epan/dissectors/packet-dcerpc-fileexp.c +++ b/epan/dissectors/packet-dcerpc-fileexp.c @@ -31,10 +31,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-fldb.c b/epan/dissectors/packet-dcerpc-fldb.c index 248c2cf078..0aaa2a03b0 100644 --- a/epan/dissectors/packet-dcerpc-fldb.c +++ b/epan/dissectors/packet-dcerpc-fldb.c @@ -31,10 +31,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-ftserver.c b/epan/dissectors/packet-dcerpc-ftserver.c index ea9bf8ef4a..1cfeb09959 100644 --- a/epan/dissectors/packet-dcerpc-ftserver.c +++ b/epan/dissectors/packet-dcerpc-ftserver.c @@ -31,10 +31,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-icl_rpc.c b/epan/dissectors/packet-dcerpc-icl_rpc.c index e9c1861e07..063306903d 100644 --- a/epan/dissectors/packet-dcerpc-icl_rpc.c +++ b/epan/dissectors/packet-dcerpc-icl_rpc.c @@ -5,7 +5,7 @@ * ftp://ftp.opengroup.org/pub/dce122/dce/src/file.tar.gz icl_rpc.idl * * $Id$ - * + * * Wireshark - Network traffic analyzer * By Gerald Combs * Copyright 1998 Gerald Combs @@ -30,10 +30,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-krb5rpc.c b/epan/dissectors/packet-dcerpc-krb5rpc.c index b1940a6bd6..4e4277d127 100644 --- a/epan/dissectors/packet-dcerpc-krb5rpc.c +++ b/epan/dissectors/packet-dcerpc-krb5rpc.c @@ -31,10 +31,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include diff --git a/epan/dissectors/packet-dcerpc-llb.c b/epan/dissectors/packet-dcerpc-llb.c index 5c439cf0bd..de059246f6 100644 --- a/epan/dissectors/packet-dcerpc-llb.c +++ b/epan/dissectors/packet-dcerpc-llb.c @@ -4,7 +4,7 @@ * Copyright 2004, Jaime Fournier * This information is based off the released idl files from opengroup. * ftp://ftp.opengroup.org/pub/dce122/dce/src/admin.tar.gz ./admin/dced/idl/llb.idl - * + * * $Id$ * * Wireshark - Network traffic analyzer @@ -31,10 +31,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-rdaclif.c b/epan/dissectors/packet-dcerpc-rdaclif.c index 993f897fc8..6058cde0b2 100644 --- a/epan/dissectors/packet-dcerpc-rdaclif.c +++ b/epan/dissectors/packet-dcerpc-rdaclif.c @@ -6,7 +6,7 @@ * ftp://ftp.opengroup.org/pub/dce122/dce/src/security.tar.gz ../security/idl/rdaclif.idl * * $Id$ - * + * * Wireshark - Network traffic analyzer * By Gerald Combs * Copyright 1998 Gerald Combs @@ -31,10 +31,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-rep_proc.c b/epan/dissectors/packet-dcerpc-rep_proc.c index b5fec00b2c..118132b640 100644 --- a/epan/dissectors/packet-dcerpc-rep_proc.c +++ b/epan/dissectors/packet-dcerpc-rep_proc.c @@ -31,10 +31,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-roverride.c b/epan/dissectors/packet-dcerpc-roverride.c index 3beabc303c..8d280e93b5 100644 --- a/epan/dissectors/packet-dcerpc-roverride.c +++ b/epan/dissectors/packet-dcerpc-roverride.c @@ -31,10 +31,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-rpriv.c b/epan/dissectors/packet-dcerpc-rpriv.c index d13c29005d..518a1ac4d5 100644 --- a/epan/dissectors/packet-dcerpc-rpriv.c +++ b/epan/dissectors/packet-dcerpc-rpriv.c @@ -31,10 +31,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-rs_acct.c b/epan/dissectors/packet-dcerpc-rs_acct.c index 82fd1489cf..7e2447c374 100644 --- a/epan/dissectors/packet-dcerpc-rs_acct.c +++ b/epan/dissectors/packet-dcerpc-rs_acct.c @@ -31,10 +31,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-rs_attr.c b/epan/dissectors/packet-dcerpc-rs_attr.c index 2ae3e8eb5b..5e9273d572 100644 --- a/epan/dissectors/packet-dcerpc-rs_attr.c +++ b/epan/dissectors/packet-dcerpc-rs_attr.c @@ -4,7 +4,7 @@ * Copyright 2002, Jaime Fournier * This information is based off the released idl files from opengroup. * ftp://ftp.opengroup.org/pub/dce122/dce/src/security.tar.gz security/idl/rs_attr.idl - * + * * $Id$ * * Wireshark - Network traffic analyzer @@ -31,10 +31,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-rs_attr_schema.c b/epan/dissectors/packet-dcerpc-rs_attr_schema.c index 758dc6c302..85463b042c 100644 --- a/epan/dissectors/packet-dcerpc-rs_attr_schema.c +++ b/epan/dissectors/packet-dcerpc-rs_attr_schema.c @@ -6,7 +6,7 @@ * ftp://ftp.opengroup.org/pub/dce122/dce/src/security.tar.gz security/idl/rs_attr_schema.idl * * $Id$ - * + * * Wireshark - Network traffic analyzer * By Gerald Combs * Copyright 1998 Gerald Combs @@ -31,10 +31,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-rs_bind.c b/epan/dissectors/packet-dcerpc-rs_bind.c index b281e62d19..8b97791e03 100644 --- a/epan/dissectors/packet-dcerpc-rs_bind.c +++ b/epan/dissectors/packet-dcerpc-rs_bind.c @@ -4,7 +4,7 @@ * Copyright 2003, Jaime Fournier * This information is based off the released idl files from opengroup. * ftp://ftp.opengroup.org/pub/dce122/dce/src/security.tar.gz security/idl/rs_bind.idl - * + * * $Id$ * * Wireshark - Network traffic analyzer @@ -31,10 +31,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" @@ -50,7 +46,7 @@ static gint ett_rs_bind = -1; static e_uuid_t uuid_rs_bind = { 0xd46113d0, 0xa848, 0x11cb, {0xb8, 0x63, 0x08, 0x00, 0x1e, 0x04, 0x6a, 0xa5} - + }; static guint16 ver_rs_bind = 2; diff --git a/epan/dissectors/packet-dcerpc-rs_misc.c b/epan/dissectors/packet-dcerpc-rs_misc.c index 94e5c48e91..17b85693cf 100644 --- a/epan/dissectors/packet-dcerpc-rs_misc.c +++ b/epan/dissectors/packet-dcerpc-rs_misc.c @@ -31,10 +31,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-rs_pgo.c b/epan/dissectors/packet-dcerpc-rs_pgo.c index a9049632bf..f34f398a1c 100644 --- a/epan/dissectors/packet-dcerpc-rs_pgo.c +++ b/epan/dissectors/packet-dcerpc-rs_pgo.c @@ -31,10 +31,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-rs_prop_acct.c b/epan/dissectors/packet-dcerpc-rs_prop_acct.c index a3788506a7..5a8977376f 100644 --- a/epan/dissectors/packet-dcerpc-rs_prop_acct.c +++ b/epan/dissectors/packet-dcerpc-rs_prop_acct.c @@ -5,7 +5,7 @@ * ftp://ftp.opengroup.org/pub/dce122/dce/src/file.tar.gz bubasics/rs_prop_acct.idl * * $Id$ - * + * * Wireshark - Network traffic analyzer * By Gerald Combs * Copyright 1998 Gerald Combs @@ -30,10 +30,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-rs_prop_acl.c b/epan/dissectors/packet-dcerpc-rs_prop_acl.c index e0bee0e2b3..c75a282ba3 100644 --- a/epan/dissectors/packet-dcerpc-rs_prop_acl.c +++ b/epan/dissectors/packet-dcerpc-rs_prop_acl.c @@ -6,7 +6,7 @@ * ftp://ftp.opengroup.org/pub/dce122/dce/src/security.tar.gz security/idl/rs_prop_acl.idl * * $Id$ - * + * * Wireshark - Network traffic analyzer * By Gerald Combs * Copyright 1998 Gerald Combs @@ -31,10 +31,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-rs_prop_attr.c b/epan/dissectors/packet-dcerpc-rs_prop_attr.c index 1e3482b225..eecadf3b37 100644 --- a/epan/dissectors/packet-dcerpc-rs_prop_attr.c +++ b/epan/dissectors/packet-dcerpc-rs_prop_attr.c @@ -6,7 +6,7 @@ * ftp://ftp.opengroup.org/pub/dce122/dce/src/security.tar.gz security/idl/rs_prop_attr.idl * * $Id$ - * + * * Wireshark - Network traffic analyzer * By Gerald Combs * Copyright 1998 Gerald Combs @@ -31,10 +31,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-rs_prop_pgo.c b/epan/dissectors/packet-dcerpc-rs_prop_pgo.c index 6fdcaaeba3..5b9cfe2e16 100644 --- a/epan/dissectors/packet-dcerpc-rs_prop_pgo.c +++ b/epan/dissectors/packet-dcerpc-rs_prop_pgo.c @@ -1,12 +1,12 @@ /* packet-dcerpc-rs_prop_pgo.c - * + * * Routines for rs_prop_pgo dissection * Copyright 2004, Jaime Fournier * This information is based off the released idl files from opengroup. * ftp://ftp.opengroup.org/pub/dce122/dce/src/security.tar.gz security/idl/rs_prop_pgo.idl * * $Id$ - * + * * Wireshark - Network traffic analyzer * By Gerald Combs * Copyright 1998 Gerald Combs @@ -31,10 +31,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-rs_prop_plcy.c b/epan/dissectors/packet-dcerpc-rs_prop_plcy.c index 7118ddaa8d..66891d8c73 100644 --- a/epan/dissectors/packet-dcerpc-rs_prop_plcy.c +++ b/epan/dissectors/packet-dcerpc-rs_prop_plcy.c @@ -6,7 +6,7 @@ * ftp://ftp.opengroup.org/pub/dce122/dce/src/security.tar.gz security/idl/rs_prop_plcy.idl * * $Id$ - * + * * Wireshark - Network traffic analyzer * By Gerald Combs * Copyright 1998 Gerald Combs @@ -31,10 +31,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-rs_pwd_mgmt.c b/epan/dissectors/packet-dcerpc-rs_pwd_mgmt.c index bc5731b579..af0f80dc2c 100644 --- a/epan/dissectors/packet-dcerpc-rs_pwd_mgmt.c +++ b/epan/dissectors/packet-dcerpc-rs_pwd_mgmt.c @@ -6,7 +6,7 @@ * ftp://ftp.opengroup.org/pub/dce122/dce/src/security.tar.gz security/idl/rs_pwd_mgmt.idl * * $Id$ - * + * * Wireshark - Network traffic analyzer * By Gerald Combs * Copyright 1998 Gerald Combs @@ -31,10 +31,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-rs_repadm.c b/epan/dissectors/packet-dcerpc-rs_repadm.c index 08ecb2474d..044a04ba28 100644 --- a/epan/dissectors/packet-dcerpc-rs_repadm.c +++ b/epan/dissectors/packet-dcerpc-rs_repadm.c @@ -31,10 +31,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-rs_replist.c b/epan/dissectors/packet-dcerpc-rs_replist.c index 870f49dcde..b924b22262 100644 --- a/epan/dissectors/packet-dcerpc-rs_replist.c +++ b/epan/dissectors/packet-dcerpc-rs_replist.c @@ -4,7 +4,7 @@ * Copyright 2002, Jaime Fournier * This information is based off the released idl files from opengroup. * ftp://ftp.opengroup.org/pub/dce122/dce/src/security.tar.gz security/idl/rs_repadm.idl - * + * * $Id$ * * Wireshark - Network traffic analyzer @@ -31,10 +31,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-rs_repmgr.c b/epan/dissectors/packet-dcerpc-rs_repmgr.c index 21b5681640..bf74b67207 100644 --- a/epan/dissectors/packet-dcerpc-rs_repmgr.c +++ b/epan/dissectors/packet-dcerpc-rs_repmgr.c @@ -6,7 +6,7 @@ * ftp://ftp.opengroup.org/pub/dce122/dce/src/security.tar.gz security/idl/rs_repmgr.idl * * $Id$ - * + * * Wireshark - Network traffic analyzer * By Gerald Combs * Copyright 1998 Gerald Combs @@ -31,10 +31,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-rs_unix.c b/epan/dissectors/packet-dcerpc-rs_unix.c index 0c9271f82c..8a8aa1b968 100644 --- a/epan/dissectors/packet-dcerpc-rs_unix.c +++ b/epan/dissectors/packet-dcerpc-rs_unix.c @@ -31,10 +31,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-rsec_login.c b/epan/dissectors/packet-dcerpc-rsec_login.c index f7b3d88089..69cfffb96f 100644 --- a/epan/dissectors/packet-dcerpc-rsec_login.c +++ b/epan/dissectors/packet-dcerpc-rsec_login.c @@ -4,7 +4,7 @@ * Copyright 2002, Jaime Fournier * This information is based off the released idl files from opengroup. * ftp://ftp.opengroup.org/pub/dce122/dce/src/security.tar.gz security/idl/rsec_login.idl - * + * * $Id$ * * Wireshark - Network traffic analyzer @@ -31,10 +31,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-secidmap.c b/epan/dissectors/packet-dcerpc-secidmap.c index f3b7c641d0..9a6d726660 100644 --- a/epan/dissectors/packet-dcerpc-secidmap.c +++ b/epan/dissectors/packet-dcerpc-secidmap.c @@ -4,7 +4,7 @@ * Copyright 2002, Jaime Fournier * This information is based off the released idl files from opengroup. * ftp://ftp.opengroup.org/pub/dce122/dce/src/security.tar.gz security/idl/rsecidmap.idl - * + * * $Id$ * * Wireshark - Network traffic analyzer @@ -31,10 +31,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" @@ -56,7 +52,7 @@ static dcerpc_sub_dissector secidmap_dissectors[] = { { 2, "avoid_cn_bug", NULL, NULL}, { 3, "parse_name_cache", NULL, NULL}, { 4, "gen_name_cache", NULL, NULL}, - + { 0, NULL, NULL, NULL }, }; @@ -83,4 +79,3 @@ proto_reg_handoff_secidmap (void) /* Register the protocol as dcerpc */ dcerpc_init_uuid (proto_secidmap, ett_secidmap, &uuid_secidmap, ver_secidmap, secidmap_dissectors, hf_secidmap_opnum); } - diff --git a/epan/dissectors/packet-dcerpc-tkn4int.c b/epan/dissectors/packet-dcerpc-tkn4int.c index 8267b2b792..68e6b62b50 100644 --- a/epan/dissectors/packet-dcerpc-tkn4int.c +++ b/epan/dissectors/packet-dcerpc-tkn4int.c @@ -31,10 +31,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-ubikdisk.c b/epan/dissectors/packet-dcerpc-ubikdisk.c index f574b63d3f..337af62c89 100644 --- a/epan/dissectors/packet-dcerpc-ubikdisk.c +++ b/epan/dissectors/packet-dcerpc-ubikdisk.c @@ -31,10 +31,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-ubikvote.c b/epan/dissectors/packet-dcerpc-ubikvote.c index 1cc5e77e55..21523d95a0 100644 --- a/epan/dissectors/packet-dcerpc-ubikvote.c +++ b/epan/dissectors/packet-dcerpc-ubikvote.c @@ -31,10 +31,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-dcerpc-update.c b/epan/dissectors/packet-dcerpc-update.c index ac3d76314d..59c1a5229f 100644 --- a/epan/dissectors/packet-dcerpc-update.c +++ b/epan/dissectors/packet-dcerpc-update.c @@ -31,10 +31,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include #include "packet-dcerpc.h" diff --git a/epan/dissectors/packet-fc.c b/epan/dissectors/packet-fc.c index 9f8a33a31d..8e175987de 100644 --- a/epan/dissectors/packet-fc.c +++ b/epan/dissectors/packet-fc.c @@ -32,14 +32,6 @@ #include -#ifdef HAVE_SYS_TYPES_H -# include -#endif - -#ifdef HAVE_NETINET_IN_H -# include -#endif - #include #include diff --git a/epan/dissectors/packet-fcct.c b/epan/dissectors/packet-fcct.c index 3943b96137..2a14339d22 100644 --- a/epan/dissectors/packet-fcct.c +++ b/epan/dissectors/packet-fcct.c @@ -29,14 +29,6 @@ #include -#ifdef HAVE_SYS_TYPES_H -# include -#endif - -#ifdef HAVE_NETINET_IN_H -# include -#endif - #include #include diff --git a/epan/dissectors/packet-fcels.c b/epan/dissectors/packet-fcels.c index 77ce232286..5721938e56 100644 --- a/epan/dissectors/packet-fcels.c +++ b/epan/dissectors/packet-fcels.c @@ -34,14 +34,6 @@ #include -#ifdef HAVE_SYS_TYPES_H -# include -#endif - -#ifdef HAVE_NETINET_IN_H -# include -#endif - #include #include diff --git a/epan/dissectors/packet-fcfcs.c b/epan/dissectors/packet-fcfcs.c index 78e96b9a9b..976dd7fce5 100644 --- a/epan/dissectors/packet-fcfcs.c +++ b/epan/dissectors/packet-fcfcs.c @@ -29,14 +29,6 @@ #include -#ifdef HAVE_SYS_TYPES_H -# include -#endif - -#ifdef HAVE_NETINET_IN_H -# include -#endif - #include #include diff --git a/epan/dissectors/packet-fclctl.c b/epan/dissectors/packet-fclctl.c index 0475fb8570..b21508d68d 100644 --- a/epan/dissectors/packet-fclctl.c +++ b/epan/dissectors/packet-fclctl.c @@ -1,5 +1,5 @@ /* packet-fclctl.c - * Routines for FC Link Control Frames + * Routines for FC Link Control Frames * Copyright 2001, Dinesh G Dutt * * $Id$ @@ -7,17 +7,17 @@ * Wireshark - Network traffic analyzer * By Gerald Combs * Copyright 1998 Gerald Combs - * + * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. - * + * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. - * + * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. @@ -29,14 +29,6 @@ #include -#ifdef HAVE_SYS_TYPES_H -# include -#endif - -#ifdef HAVE_NETINET_IN_H -# include -#endif - #include #include @@ -132,7 +124,7 @@ fclctl_get_typestr (guint8 linkctl_type, guint8 type) { if ((linkctl_type == FC_LCTL_FBSYB) || (linkctl_type == FC_LCTL_FBSYL)) { - return (val_to_str ((type & 0xF0), fc_lctl_fbsy_val, "0x%x")); + return (val_to_str ((type & 0xF0), fc_lctl_fbsy_val, "0x%x")); } return ""; } @@ -141,13 +133,13 @@ const gchar * fclctl_get_paramstr (guint32 linkctl_type, guint32 param) { if (linkctl_type == FC_LCTL_PBSY) { - return g_strdup_printf("%s, %s", + return g_strdup_printf("%s, %s", val_to_str (((param & 0xFF000000) >> 24), fc_lctl_pbsy_acode_val, "0x%x"), val_to_str (((param & 0x00FF0000) >> 16), fc_lctl_pbsy_rjt_val, "0x%x")); } if ((linkctl_type == FC_LCTL_FRJT) || (linkctl_type == FC_LCTL_PRJT)) { - return g_strdup_printf("%s, %s", + return g_strdup_printf("%s, %s", val_to_str (((param & 0xFF000000) >> 24), fc_lctl_rjt_acode_val, "0x%x"), val_to_str (((param & 0x00FF0000) >> 16), fc_lctl_rjt_val, "%x")); } diff --git a/epan/dissectors/packet-fcp.c b/epan/dissectors/packet-fcp.c index a08b5750d2..4634f9b00e 100644 --- a/epan/dissectors/packet-fcp.c +++ b/epan/dissectors/packet-fcp.c @@ -27,14 +27,6 @@ # include "config.h" #endif -#ifdef HAVE_SYS_TYPES_H -# include -#endif - -#ifdef HAVE_NETINET_IN_H -# include -#endif - #include #include diff --git a/epan/dissectors/packet-fcsb3.c b/epan/dissectors/packet-fcsb3.c index 76799c27fc..f6c92bf764 100644 --- a/epan/dissectors/packet-fcsb3.c +++ b/epan/dissectors/packet-fcsb3.c @@ -28,14 +28,6 @@ # include "config.h" #endif -#ifdef HAVE_SYS_TYPES_H -# include -#endif - -#ifdef HAVE_NETINET_IN_H -# include -#endif - #include #include diff --git a/epan/dissectors/packet-fcsp.c b/epan/dissectors/packet-fcsp.c index c2f4c97761..febf1a6145 100644 --- a/epan/dissectors/packet-fcsp.c +++ b/epan/dissectors/packet-fcsp.c @@ -30,14 +30,6 @@ #include -#ifdef HAVE_SYS_TYPES_H -# include -#endif - -#ifdef HAVE_NETINET_IN_H -# include -#endif - #include #include diff --git a/epan/dissectors/packet-fmp.c b/epan/dissectors/packet-fmp.c index d738eb7af0..e43f2b4e60 100644 --- a/epan/dissectors/packet-fmp.c +++ b/epan/dissectors/packet-fmp.c @@ -22,10 +22,6 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #ifdef HAVE_CONFIG_H #include "config.h" #endif diff --git a/epan/dissectors/packet-fmp_notify.c b/epan/dissectors/packet-fmp_notify.c index 64a0ef05a1..f8d6bb1f59 100644 --- a/epan/dissectors/packet-fmp_notify.c +++ b/epan/dissectors/packet-fmp_notify.c @@ -27,10 +27,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include diff --git a/epan/dissectors/packet-gsm_sms.c b/epan/dissectors/packet-gsm_sms.c index a5359401c4..87f81fe34b 100644 --- a/epan/dissectors/packet-gsm_sms.c +++ b/epan/dissectors/packet-gsm_sms.c @@ -41,14 +41,6 @@ #include -#ifdef HAVE_SYS_TYPES_H -# include -#endif - -#ifdef HAVE_NETINET_IN_H -# include -#endif - #include #include @@ -2409,7 +2401,7 @@ dis_iei_upi(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint8 length) #if 0 /* TS 123 040 V9.3.0 (2010-10) */ static const value_string gsm_sms_tp_ud_ie-_d_vals[] = { - { 0x00, "Concatenated short messages, 8-bit reference number (SMS Control)" }, + { 0x00, "Concatenated short messages, 8-bit reference number (SMS Control)" }, { 0x01, "Special SMS Message Indication (SMS Control)" }, { 0x02, "Reserved" }, { 0x03, "Value not used to avoid misinterpretation as character" }, @@ -2436,23 +2428,23 @@ static const value_string gsm_sms_tp_ud_ie-_d_vals[] = { { 0x18, "Standard WVG object (EMS Content)" }, { 0x19, "Character Size WVG object (EMS Content)" }, { 0x1A, "Extended Object Data Request Command (EMS Control)" }, - /*1B-1F Reserved for future EMS features (see subclause 3.10) */ + /*1B-1F Reserved for future EMS features (see subclause 3.10) */ { 0x20, "RFC 822 E-Mail Header (SMS Control)" }, { 0x21, "Hyperlink format element (SMS Control)" },s { 0x22, "Reply Address Element (SMS Control)" }, { 0x23, "Enhanced Voice Mail Information (SMS Control)" }, { 0x24, "National Language Single Shift (SMS Control)" }, { 0x25, "National Language Locking Shift (SMS Control)" }, - /*26-6F Reserved for future use */ - /*70-7F (U)SIM Toolkit Security Headers (SMS Control) */ - /*80-9F SME to SME specific use (SMS Control) */ - /*A0-BF Reserved for future use */ - /*C0-DF SC specific use (SMS Control) */ - /*E0-FF Reserved for future use */ + /*26-6F Reserved for future use */ + /*70-7F (U)SIM Toolkit Security Headers (SMS Control) */ + /*80-9F SME to SME specific use (SMS Control) */ + /*A0-BF Reserved for future use */ + /*C0-DF SC specific use (SMS Control) */ + /*E0-FF Reserved for future use */ { 0, NULL }, }; -#endif +#endif static void dis_field_ud_iei(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint8 length) { @@ -2757,12 +2749,12 @@ dis_field_ud(tvbuff_t *tvb, proto_tree *tree, guint32 offset, guint32 length, gb gsm_sms_char_7bit_unpack(fill_bits, p_frag_params->length, (p_frag_params->udl > SMS_MAX_MESSAGE_SIZE ? SMS_MAX_MESSAGE_SIZE : p_frag_params->udl), tvb_get_ptr(sm_tvb, total_sms_len, p_frag_params->length), messagebuf); - + messagebuf[out_len] = '\0'; proto_tree_add_string(subtree, hf_gsm_sms_text, sm_tvb, total_sms_len, p_frag_params->length, gsm_sms_chars_to_utf8(messagebuf, out_len)); - + total_sms_len += p_frag_params->length; } } diff --git a/epan/dissectors/packet-gssapi.c b/epan/dissectors/packet-gssapi.c index ddfaf1ad92..b23d7a90c6 100644 --- a/epan/dissectors/packet-gssapi.c +++ b/epan/dissectors/packet-gssapi.c @@ -29,10 +29,6 @@ # include "config.h" #endif -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #include #include diff --git a/epan/dissectors/packet-ieee802154.c b/epan/dissectors/packet-ieee802154.c index 53b64b90b5..626e6e9208 100644 --- a/epan/dissectors/packet-ieee802154.c +++ b/epan/dissectors/packet-ieee802154.c @@ -65,10 +65,6 @@ #include -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include diff --git a/epan/dissectors/packet-ipmi-app.c b/epan/dissectors/packet-ipmi-app.c index f955d480b7..0637666fef 100644 --- a/epan/dissectors/packet-ipmi-app.c +++ b/epan/dissectors/packet-ipmi-app.c @@ -27,9 +27,6 @@ #include "config.h" #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif #include #include diff --git a/epan/dissectors/packet-ipmi-bridge.c b/epan/dissectors/packet-ipmi-bridge.c index 0246c412a4..0160297a64 100644 --- a/epan/dissectors/packet-ipmi-bridge.c +++ b/epan/dissectors/packet-ipmi-bridge.c @@ -27,10 +27,6 @@ #include "config.h" #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include "packet-ipmi.h" diff --git a/epan/dissectors/packet-ipmi-chassis.c b/epan/dissectors/packet-ipmi-chassis.c index c473e0fdc2..e54b1bb6a2 100644 --- a/epan/dissectors/packet-ipmi-chassis.c +++ b/epan/dissectors/packet-ipmi-chassis.c @@ -27,10 +27,6 @@ #include "config.h" #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include "packet-ipmi.h" diff --git a/epan/dissectors/packet-ipmi-picmg.c b/epan/dissectors/packet-ipmi-picmg.c index b797847cda..08500a0153 100644 --- a/epan/dissectors/packet-ipmi-picmg.c +++ b/epan/dissectors/packet-ipmi-picmg.c @@ -27,10 +27,6 @@ #include "config.h" #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include "packet-ipmi.h" diff --git a/epan/dissectors/packet-ipmi-pps.c b/epan/dissectors/packet-ipmi-pps.c index a02b3d8f7b..c87fe28258 100644 --- a/epan/dissectors/packet-ipmi-pps.c +++ b/epan/dissectors/packet-ipmi-pps.c @@ -27,10 +27,6 @@ #include "config.h" #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include "packet-ipmi.h" diff --git a/epan/dissectors/packet-ipmi-se.c b/epan/dissectors/packet-ipmi-se.c index 5b4216a9ed..dd33b9442d 100644 --- a/epan/dissectors/packet-ipmi-se.c +++ b/epan/dissectors/packet-ipmi-se.c @@ -27,10 +27,6 @@ #include "config.h" #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include "packet-ipmi.h" diff --git a/epan/dissectors/packet-ipmi-storage.c b/epan/dissectors/packet-ipmi-storage.c index 48c9330175..ed4db023f0 100644 --- a/epan/dissectors/packet-ipmi-storage.c +++ b/epan/dissectors/packet-ipmi-storage.c @@ -27,10 +27,6 @@ #include "config.h" #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include "packet-ipmi.h" diff --git a/epan/dissectors/packet-ipmi-transport.c b/epan/dissectors/packet-ipmi-transport.c index c3349dcae1..3d543adccf 100644 --- a/epan/dissectors/packet-ipmi-transport.c +++ b/epan/dissectors/packet-ipmi-transport.c @@ -27,10 +27,6 @@ #include "config.h" #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include "packet-ipmi.h" diff --git a/epan/dissectors/packet-ipmi-update.c b/epan/dissectors/packet-ipmi-update.c index d3d35760bb..35a263a259 100644 --- a/epan/dissectors/packet-ipmi-update.c +++ b/epan/dissectors/packet-ipmi-update.c @@ -27,10 +27,6 @@ #include "config.h" #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include "packet-ipmi.h" diff --git a/epan/dissectors/packet-ipmi.c b/epan/dissectors/packet-ipmi.c index f2ceb7f0dc..c6bb3e84cf 100644 --- a/epan/dissectors/packet-ipmi.c +++ b/epan/dissectors/packet-ipmi.c @@ -27,16 +27,13 @@ #include "config.h" #endif -#ifdef HAVE_SYS_TYPES_H -#include -#endif #include #include #include +#include #include #include -#include #include #include #include diff --git a/epan/dissectors/packet-isns.c b/epan/dissectors/packet-isns.c index a471bb7e10..db976f6388 100644 --- a/epan/dissectors/packet-isns.c +++ b/epan/dissectors/packet-isns.c @@ -34,14 +34,6 @@ #endif -#ifdef HAVE_SYS_TYPES_H -# include -#endif - -#ifdef HAVE_NETINET_IN_H -# include -#endif - #include #include diff --git a/epan/dissectors/packet-ncp.c b/epan/dissectors/packet-ncp.c index b65658dbca..36a922a7b2 100644 --- a/epan/dissectors/packet-ncp.c +++ b/epan/dissectors/packet-ncp.c @@ -46,16 +46,10 @@ # include "config.h" #endif -#ifdef HAVE_SYS_TYPES_H -# include -#endif - -#ifdef HAVE_NETINET_IN_H -# include -#endif - #include + #include + #include #include #include diff --git a/epan/dissectors/packet-ndp.c b/epan/dissectors/packet-ndp.c index b6180c4b43..142c782d27 100644 --- a/epan/dissectors/packet-ndp.c +++ b/epan/dissectors/packet-ndp.c @@ -1,43 +1,39 @@ /* packet-ndp.c -* Routines for the disassembly of the Nortel Discovery Protocol, formerly -* the SynOptics Network Management Protocol (SONMP). -* (c) Copyright Giles Scott -* -* $Id$ -* -* Wireshark - Network traffic analyzer -* By Gerald Combs -* Copyright 1998 Gerald Combs -* -* This program is free software; you can redistribute it and/or -* modify it under the terms of the GNU General Public License -* as published by the Free Software Foundation; either version 2 -* of the License, or (at your option) any later version. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -* You should have received a copy of the GNU General Public License -* along with this program; if not, write to the Free Software -* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. -* -* This protocol has gone by many names over the years: -* -* Bay Discovery Protocol (BDP), Bay Topology Protocol, Bay Network Management -* Protocol (BNMP), Nortel Management MIB (NMM), Nortel Topology Discovery -* Protocol (NTDP), SynOptics Network Management Protocol (SONMP). -* (source: Wikipedia article on "Nortel Discovery Protocol") -* -*/ + * Routines for the disassembly of the Nortel Discovery Protocol, formerly + * the SynOptics Network Management Protocol (SONMP). + * (c) Copyright Giles Scott + * + * $Id$ + * + * Wireshark - Network traffic analyzer + * By Gerald Combs + * Copyright 1998 Gerald Combs + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + * + * This protocol has gone by many names over the years: + * + * Bay Discovery Protocol (BDP), Bay Topology Protocol, Bay Network Management + * Protocol (BNMP), Nortel Management MIB (NMM), Nortel Topology Discovery + * Protocol (NTDP), SynOptics Network Management Protocol (SONMP). + * (source: Wikipedia article on "Nortel Discovery Protocol") + * + */ #include "config.h" -#ifdef HAVE_SYS_TYPES_H -#include -#endif - #include #include @@ -45,14 +41,14 @@ #include /* Although this protocol is proprietary it is documented in the SynOptics MIB's -* So I'm not giving anything away :-) -* The only thing I have not done is decode the segment identifier; -* This changes so much depending on whether the chassis supports -* multi-segment autotopology. As the 5000 is now EOL don't see much point. -* -* MIB's s5emt104.mib, s5tcs112.mib, synro199.mib these should be available via -* http://www.nortelnetworks.com -*/ + * So I'm not giving anything away :-) + * The only thing I have not done is decode the segment identifier; + * This changes so much depending on whether the chassis supports + * multi-segment autotopology. As the 5000 is now EOL don't see much point. + * + * MIB's s5emt104.mib, s5tcs112.mib, synro199.mib these should be available via + * http://www.nortelnetworks.com + */ /* chassis types */ @@ -337,43 +333,43 @@ dissect_ndp(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) void proto_register_ndp(void) { - static hf_register_info hf[] = { + static hf_register_info hf[] = { { &hf_ndp_ip_address, - { "IP address", "ndp.ipaddress", FT_IPv4, BASE_NONE, NULL, 0x0, - "IP address of the Network Management Module (NMM))", HFILL }}, + { "IP address", "ndp.ipaddress", FT_IPv4, BASE_NONE, NULL, 0x0, + "IP address of the Network Management Module (NMM))", HFILL }}, { &hf_ndp_segment_identifier, - { "Segment Identifier", "ndp.segmentident", FT_UINT24, BASE_HEX, NULL, 0x0, - "Segment id of the segment from which the agent is sending the topology message", HFILL }}, + { "Segment Identifier", "ndp.segmentident", FT_UINT24, BASE_HEX, NULL, 0x0, + "Segment id of the segment from which the agent is sending the topology message", HFILL }}, { &hf_ndp_chassis_type, - { "Chassis type", "ndp.chassis", FT_UINT8, BASE_DEC|BASE_EXT_STRING, - &ndp_chassis_val_ext, 0x0, - "Chassis type of the agent sending the topology message", HFILL }}, + { "Chassis type", "ndp.chassis", FT_UINT8, BASE_DEC|BASE_EXT_STRING, + &ndp_chassis_val_ext, 0x0, + "Chassis type of the agent sending the topology message", HFILL }}, { &hf_ndp_backplane_type, - { "Backplane type", "ndp.backplane", FT_UINT8, BASE_DEC|BASE_EXT_STRING, - &ndp_backplane_val_ext, 0x0, - "Backplane type of the agent sending the topology message", HFILL }}, + { "Backplane type", "ndp.backplane", FT_UINT8, BASE_DEC|BASE_EXT_STRING, + &ndp_backplane_val_ext, 0x0, + "Backplane type of the agent sending the topology message", HFILL }}, { &hf_ndp_state, - { "State", "ndp.state", FT_UINT8, BASE_DEC, - VALS(ndp_state_val), 0x0, - "Current state of this Network Management Module (NMM)", HFILL }}, + { "State", "ndp.state", FT_UINT8, BASE_DEC, + VALS(ndp_state_val), 0x0, + "Current state of this Network Management Module (NMM)", HFILL }}, { &hf_ndp_number_of_links, - { "Number of links", "ndp.numberoflinks", FT_UINT8, BASE_DEC, NULL, 0x0, - "Number of interconnect ports", HFILL }}, - }; + { "Number of links", "ndp.numberoflinks", FT_UINT8, BASE_DEC, NULL, 0x0, + "Number of interconnect ports", HFILL }}, + }; - static gint *ett[] = { + static gint *ett[] = { &ett_ndp, - }; - proto_ndp = proto_register_protocol("Nortel Discovery Protocol", "NDP", "ndp"); - proto_register_field_array(proto_ndp, hf, array_length(hf)); - proto_register_subtree_array(ett, array_length(ett)); + }; + proto_ndp = proto_register_protocol("Nortel Discovery Protocol", "NDP", "ndp"); + proto_register_field_array(proto_ndp, hf, array_length(hf)); + proto_register_subtree_array(ett, array_length(ett)); - register_dissector("ndp", dissect_ndp, proto_ndp); + register_dissector("ndp", dissect_ndp, proto_ndp); } void @@ -384,8 +380,8 @@ proto_reg_handoff_ndp(void) ndp_handle = find_dissector("ndp"); dissector_add_uint("llc.nortel_pid", 0x01a1, ndp_handle); /* flatnet hello */ - dissector_add_uint("llc.nortel_pid", 0x01a2, ndp_handle); /* Segment hello */ - /* not got round to adding this but its really old, so I'm not sure people will see it */ + dissector_add_uint("llc.nortel_pid", 0x01a2, ndp_handle); /* Segment hello */ + /* not got round to adding this but it's really old, so I'm not sure people will see it */ /* it uses a different packet format */ /* dissector_add_uint("llc.nortel_pid", 0x01a3, ndp_handle); */ /* Bridge hello */ } diff --git a/epan/dissectors/packet-nt-tpcp.c b/epan/dissectors/packet-nt-tpcp.c index cd27809e82..dbb73331d5 100644 --- a/epan/dissectors/packet-nt-tpcp.c +++ b/epan/dissectors/packet-nt-tpcp.c @@ -30,10 +30,6 @@ #include #include -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #include #include #include /* this is for get_hostname and get_udp_port */ diff --git a/epan/dissectors/packet-olsr.c b/epan/dissectors/packet-olsr.c index 504d1beab6..97542eaaa3 100644 --- a/epan/dissectors/packet-olsr.c +++ b/epan/dissectors/packet-olsr.c @@ -37,14 +37,6 @@ #include #include -#ifdef HAVE_SYS_TYPES_H -# include -#endif - -#ifdef HAVE_NETINET_IN_H -# include -#endif - #include #include diff --git a/epan/dissectors/packet-tzsp.c b/epan/dissectors/packet-tzsp.c index 7b73f79e34..d2f4d57a88 100644 --- a/epan/dissectors/packet-tzsp.c +++ b/epan/dissectors/packet-tzsp.c @@ -30,10 +30,6 @@ # include "config.h" #endif -#ifdef HAVE_SYS_TYPES_H -# include -#endif - #include #include @@ -117,11 +113,11 @@ static int hf_sensormac = -1; /* Add option information to the display */ /* ************************************************************************* */ -static int +static int add_option_info(tvbuff_t *tvb, int pos, proto_tree *tree, proto_item *ti) { guint8 tag, length, fcs_err = 0, encr = 0, seen_fcs_err = 0; - + /* * Read all option tags in an endless loop. If the packet is malformed this * loop might be a problem.