Move all crc routines to libwsutil.
authorstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 30 Aug 2011 13:46:42 +0000 (13:46 +0000)
committerstig <stig@f5534014-38df-0310-8fa8-9805f1628bb7>
Tue, 30 Aug 2011 13:46:42 +0000 (13:46 +0000)
This way we can use the crc routines in wiretap.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@38800 f5534014-38df-0310-8fa8-9805f1628bb7

56 files changed:
configure.in
epan/CMakeLists.txt
epan/Makefile.am
epan/Makefile.common
epan/Makefile.nmake
epan/crc/Makefile.am [deleted file]
epan/crc/Makefile.common [deleted file]
epan/crc/Makefile.nmake [deleted file]
epan/crypt/airpdcap.c
epan/crypt/airpdcap_wep.c
epan/dissectors/packet-assa_r3.c
epan/dissectors/packet-dcp-etsi.c
epan/dissectors/packet-dmp.c
epan/dissectors/packet-eth.c
epan/dissectors/packet-fc.c
epan/dissectors/packet-fcoe.c
epan/dissectors/packet-fcoib.c
epan/dissectors/packet-ieee80211.c
epan/dissectors/packet-ieee802154.c
epan/dissectors/packet-iscsi.c
epan/dissectors/packet-iuup.c
epan/dissectors/packet-iwarp-mpa.c
epan/dissectors/packet-lapd.c
epan/dissectors/packet-mtp2.c
epan/dissectors/packet-mux27010.c
epan/dissectors/packet-nfs.c
epan/dissectors/packet-ntlmssp.c
epan/dissectors/packet-ppp.c
epan/dissectors/packet-radiotap.c
epan/dissectors/packet-sctp.c
epan/dissectors/packet-srp.c
epan/dissectors/packet-synphasor.c
epan/dissectors/packet-teamspeak2.c
epan/dissectors/packet-zrtp.c
epan/libwireshark.def
epan/sigcomp-udvm.c
gtk/text_import.c
plugins/irda/packet-sir.c
plugins/profinet/packet-pn-rt.c
wsutil/CMakeLists.txt
wsutil/Makefile.common
wsutil/crc10.c [moved from epan/crc10.c with 100% similarity]
wsutil/crc10.h [moved from epan/crc10.h with 100% similarity]
wsutil/crc16-plain.c [moved from epan/crc/crc-16-plain.c with 98% similarity]
wsutil/crc16-plain.h [moved from epan/crc/crc-16-plain.h with 99% similarity]
wsutil/crc16.c [moved from epan/crc16.c with 99% similarity]
wsutil/crc16.h [moved from epan/crc16.h with 100% similarity]
wsutil/crc32.c [moved from epan/crc32.c with 99% similarity]
wsutil/crc32.h [moved from epan/crc32.h with 100% similarity]
wsutil/crc6.c [moved from epan/crc6.c with 100% similarity]
wsutil/crc6.h [moved from epan/crc6.h with 100% similarity]
wsutil/crc8.c [moved from epan/crc8.c with 99% similarity]
wsutil/crc8.h [moved from epan/crc8.h with 100% similarity]
wsutil/crcdrm.c [moved from epan/crcdrm.c with 100% similarity]
wsutil/crcdrm.h [moved from epan/crcdrm.h with 100% similarity]
wsutil/libwsutil.def

index aa2bae3883433d92fda2afa90a1ac22f7fca5b8f..417e1206706f4986c3cdc6be03d1487c591d592d 100644 (file)
@@ -1988,7 +1988,6 @@ AC_OUTPUT(
   doc/Makefile
   docbook/Makefile
   epan/Makefile
-  epan/crc/Makefile
   epan/crypt/Makefile
   epan/doxygen.cfg
   epan/dfilter/Makefile
index 04fa50bd00baaa18e73800246bdeb3d0acb224b9..1b9ecc752867b6935a8368600118686542722886 100644 (file)
@@ -1209,12 +1209,6 @@ set(LIBWIRESHARK_FILES
        column.c
        column-utils.c
        conversation.c
-       crc10.c
-       crc16.c
-       crc32.c
-       crc6.c
-       crc8.c
-       crcdrm.c
        dissector_filters.c
        emem.c
        epan.c
index a0a224b64e21f9771f0d6e87e1ac82293b56cf0b..d624c49c0147821d335b6c11cd233e45485ed6a2 100644 (file)
@@ -46,7 +46,7 @@ wspython_dist_dir = wspython
 py_dissectors_dir = -DPYTHONDIR=
 endif
 
-SUBDIRS = crc crypt ftypes dfilter dissectors $(wslua_dir) $(wspython_dir)
+SUBDIRS = crypt ftypes dfilter dissectors $(wslua_dir) $(wspython_dir)
 
 DIST_SUBDIRS = $(SUBDIRS) $(wslua_dist_dir) $(wspython_dist_dir)
 
@@ -133,7 +133,7 @@ MAINTAINERCLEANFILES = \
 #
 libwireshark_la_LIBADD = \
        libwireshark_generated.la \
-       libwireshark_asmopt.la crc/libcrc.la crypt/libairpdcap.la \
+       libwireshark_asmopt.la crypt/libairpdcap.la \
        ftypes/libftypes.la dfilter/libdfilter.la dissectors/libdissectors.la \
        dissectors/libdirtydissectors.la $(wslua_lib) $(wspython_lib) @SOCKET_LIBS@ @NSL_LIBS@ \
        @C_ARES_LIBS@ @ADNS_LIBS@ @LIBGCRYPT_LIBS@ @LIBGNUTLS_LIBS@ \
@@ -143,7 +143,7 @@ libwireshark_la_LIBADD = \
 
 libwireshark_la_DEPENDENCIES = \
        libwireshark_generated.la \
-       libwireshark_asmopt.la crc/libcrc.la crypt/libairpdcap.la \
+       libwireshark_asmopt.la crypt/libairpdcap.la \
        ftypes/libftypes.la dfilter/libdfilter.la dissectors/libdissectors.la \
        dissectors/libdirtydissectors.la $(wslua_lib) $(wspython_lib) \
        ${top_builddir}/wsutil/libwsutil.la \
index 63c35ad07662cbd9dfa065cb868315bfc81868cc..38fa399ebd156a8f2204b0e5b3223ac76ad10cfc 100644 (file)
@@ -40,12 +40,6 @@ LIBWIRESHARK_SRC =           \
        column.c                \
        column-utils.c          \
        conversation.c          \
-       crc10.c                 \
-       crc16.c                 \
-       crc32.c                 \
-       crc6.c                  \
-       crc8.c                  \
-       crcdrm.c                \
        dissector_filters.c     \
        emem.c                  \
        epan.c                  \
@@ -150,12 +144,6 @@ LIBWIRESHARK_INCLUDES =    \
        column_info.h           \
        column-utils.h          \
        conversation.h          \
-       crc6.h                  \
-       crc8.h                  \
-       crc10.h                 \
-       crc16.h                 \
-       crc32.h                 \
-       crcdrm.h                \
        diam_dict.h             \
        dissector_filters.h     \
        dtd.h                   \
index 4efc7924cc0fa5fa54db2e2fdc5fda6170b9d7eb..8d9cf96324a7ed377e342d687ac9a122b633571c 100644 (file)
@@ -52,7 +52,6 @@ libwireshark_LIBS = \
        $(GEOIP_LIBS) \
        ..\wsutil\libwsutil.lib \
        ..\wiretap\wiretap-$(WTAP_VERSION).lib \
-       crc\crc.lib \
        crypt\airpdcap.lib \
        ftypes\ftypes.lib \
        dfilter\dfilter.lib \
@@ -77,17 +76,17 @@ DOXYGEN_DEP=doxygen
 !ENDIF
 
 !IFDEF ENABLE_LIBWIRESHARK
-all: crc crypt ftypes dfilter $(WSLUA_DIR) $(WSPYTHON_DIR) dissectors libwireshark.dll
+all: crypt ftypes dfilter $(WSLUA_DIR) $(WSPYTHON_DIR) dissectors libwireshark.dll
 !ELSE
-all: crc crypt ftypes dfilter $(WSLUA_DIR) $(WSPYTHON_DIR) dissectors libwireshark.lib
+all: crypt ftypes dfilter $(WSLUA_DIR) $(WSPYTHON_DIR) dissectors libwireshark.lib
 !ENDIF
 
 # For use when making libwireshark.dll
 libwireshark.lib: libwireshark.dll
 libwireshark.exp: libwireshark.dll
 
-libwireshark.dll: ..\config.h $(LIBWIRESHARK_OBJECTS) libwireshark.def crc crypt ftypes dfilter $(WSLUA_DIR) $(WSPYTHON_DIR) dissectors $(DOXYGEN_DEP) $(EXTRA_OBJECTS) \
-                 crc\crc.lib crypt\airpdcap.lib ftypes\ftypes.lib dfilter\dfilter.lib dissectors\dissectors.lib $(WSLUA_LIB) $(WSPYTHON_LIB) ..\image\libwireshark.res
+libwireshark.dll: ..\config.h $(LIBWIRESHARK_OBJECTS) libwireshark.def crypt ftypes dfilter $(WSLUA_DIR) $(WSPYTHON_DIR) dissectors $(DOXYGEN_DEP) $(EXTRA_OBJECTS) \
+                 crypt\airpdcap.lib ftypes\ftypes.lib dfilter\dfilter.lib dissectors\dissectors.lib $(WSLUA_LIB) $(WSPYTHON_LIB) ..\image\libwireshark.res
        @echo Linking libwireshark.dll
        $(link) $(dlllflags) $(conlibsdll) shell32.lib \
                $(LOCAL_LDFLAGS) $(DLL_LDFLAGS) \
@@ -97,8 +96,8 @@ libwireshark.dll: ..\config.h $(LIBWIRESHARK_OBJECTS) libwireshark.def crc crypt
                dissectors\register.obj \
                $(EXTRA_OBJECTS)
 
-libwireshark.lib       : ..\config.h $(LIBWIRESHARK_OBJECTS) crc crypt ftypes dfilter $(WSLUA_DIR) $(WSPYTHON_DIR) dissectors $(DOXYGEN_DEP) $(EXTRA_OBJECTS) \
-                  crc\crc.lib crypt\airpdcap.lib ftypes\ftypes.lib dfilter\dfilter.lib $(WSLUA_LIB) $(WSPYTHON_LIB) dissectors\dissectors.lib
+libwireshark.lib       : ..\config.h $(LIBWIRESHARK_OBJECTS) crypt ftypes dfilter $(WSLUA_DIR) $(WSPYTHON_DIR) dissectors $(DOXYGEN_DEP) $(EXTRA_OBJECTS) \
+                  crypt\airpdcap.lib ftypes\ftypes.lib dfilter\dfilter.lib $(WSLUA_LIB) $(WSPYTHON_LIB) dissectors\dissectors.lib
        link /lib /out:libwireshark.lib $(LIBWIRESHARK_OBJECTS) \
                $(EXTRA_OBJECTS)
 
@@ -115,8 +114,6 @@ clean-local:
        if exist html rm -rf html
 
 clean:  clean-local
-       cd crc
-       $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
        cd ../crypt
        $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
        cd ../ftypes
@@ -149,8 +146,6 @@ distclean-local: clean-local
                dtd_grammar.out sminmpec.c
 
 distclean: distclean-local
-       cd crc
-       $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
        cd ../crypt
        $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
        cd ../ftypes
@@ -168,8 +163,6 @@ distclean: distclean-local
 maintainer-clean-local: distclean-local
 
 maintainer-clean: maintainer-clean-local
-       cd crc
-       $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
        cd ../crypt
        $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
        cd ../ftypes
@@ -184,11 +177,6 @@ maintainer-clean: maintainer-clean-local
        $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake maintainer-clean
        cd ..
 
-crc:: ..\config.h
-       cd crc
-       $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
-       cd ..
-
 crypt:: ..\config.h
        cd crypt
        $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
diff --git a/epan/crc/Makefile.am b/epan/crc/Makefile.am
deleted file mode 100644 (file)
index 28ad880..0000000
+++ /dev/null
@@ -1,54 +0,0 @@
-# Makefile.am
-# Automake file for crc routines for Wireshark
-#
-# $Id$
-#
-# Wireshark - Network traffic analyzer
-# By Gerald Combs <gerald@wireshark.org>
-# 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.
-
-INCLUDES = -I$(top_srcdir)
-
-include Makefile.common
-
-if HAVE_WARNINGS_AS_ERRORS
-AM_CFLAGS = -Werror
-endif
-
-noinst_LTLIBRARIES = libcrc.la
-
-CLEANFILES = \
-       libcrc.a        \
-       libcrc.la       \
-       *~
-
-DISTCLEANFILES =
-
-MAINTAINERCLEANFILES = \
-       Makefile.in
-
-libcrc_la_SOURCES =    \
-       $(CRC_SRC)      \
-       $(CRC_INCLUDES)
-
-EXTRA_DIST = \
-       Makefile.common \
-       Makefile.nmake 
-
-checkapi:
-       $(PERL) ../../tools/checkAPIs.pl -g termoutput \
-       $(CRC_SRC)
diff --git a/epan/crc/Makefile.common b/epan/crc/Makefile.common
deleted file mode 100644 (file)
index 7aa9cb7..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-# Makefile.common
-#     Contains the stuff from Makefile.am and Makefile.nmake that is
-#     a) common to both files and
-#     b) portable between both files
-#
-# $Id$
-#
-# Wireshark - Network traffic analyzer
-# By Gerald Combs <gerald@wireshark.org>
-# 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.
-
-# crc-16-plain.c: pycrc.py --model crc-16 --algorithm table-driven --symbol-prefix crc16_plain_ --crc-type guint16 --include-file glib.h --generate c -o crc-16-plain.c
-# crc-16-plain.h: pycrc.py --model crc-16 --algorithm table-driven --symbol-prefix crc16_plain_ --crc-type guint16 --include-file glib.h --generate h -o crc-16-plain.h
-
-CRC_SRC =              \
-       crc-16-plain.c
-
-CRC_INCLUDES = \
-       crc-16-plain.h
diff --git a/epan/crc/Makefile.nmake b/epan/crc/Makefile.nmake
deleted file mode 100644 (file)
index 9b336d8..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-## Makefile for building crc.lib with Microsoft C and nmake
-## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
-#
-# $Id$
-
-include ..\..\config.nmake
-include Makefile.common
-
-############### no need to modify below this line #########
-
-CFLAGS=$(WARNINGS_ARE_ERRORS) $(STANDARD_CFLAGS) \
-        /I../.. $(GLIB_CFLAGS)
-
-.c.obj::
-       $(CC) $(CFLAGS)  -Fd.\ -c $<
-
-CRC_OBJECTS = $(CRC_SRC:.c=.obj)
-
-crc.lib: $(CRC_OBJECTS)
-       link /lib /out:crc.lib $(CRC_OBJECTS)
-
-clean:
-        rm -f $(CRC_OBJECTS) crc.lib *.pdb
-
-distclean: clean
-
-maintainer-clean: distclean
-
-checkapi:
-       $(PERL) ../../tools/checkAPIs.pl -g termoutput \
-       $(CRC_SRC)
index 740a148c8bbc858bfe9271c906000f516924d757..1de4ade2a486ccb829693a96a311c4f2d8ef4dc2 100644 (file)
@@ -41,7 +41,7 @@
 #endif
 
 #include <epan/tvbuff.h>
-#include <epan/crc32.h>
+#include <wsutil/crc32.h>
 #include <epan/strutil.h>
 #include <epan/emem.h>
 #include <epan/pint.h>
index 45d02df7ebce74fd039e64b77714b2310a71a54c..6007f115bab968c60f0052730bfc64b274792e69 100644 (file)
@@ -41,7 +41,7 @@
 /*     File includes                                                   */
 
 #include <epan/tvbuff.h>
-#include <epan/crc32.h>
+#include <wsutil/crc32.h>
 
 #include "airpdcap_system.h"
 #include "airpdcap_int.h"
index 0e5d379fa9bcf2d058635deca54a11e0ec0ded40..4921ef807031c94b1aef769ce2ee518433271f62 100644 (file)
@@ -3213,7 +3213,7 @@ static mfgFieldDissectorParser_t r3upstreammfgfield_dissect [] =
 /*
  * ***************************************************************************
  *
- *  Cannot use epan/crc routines as ccitt-x25 uses a starting value of 0xffff
+ *  Cannot use wsutil/crc routines as ccitt-x25 uses a starting value of 0xffff
  *  and we use 0x0000 (legacy compatibility).  If an override method to set
  *  the starting value existed, these could be replaced.
  */
index 32cef5d7f5d3939f3c420568e0d1d742c573ae53..d60836182b47a5b09a418c5762e3db60bae18235 100644 (file)
@@ -32,7 +32,7 @@
 
 #include <epan/packet.h>
 #include <epan/reassemble.h>
-#include <epan/crcdrm.h>
+#include <wsutil/crcdrm.h>
 #include <epan/reedsolomon.h>
 #include <epan/emem.h>
 #include <string.h>
index 44586de447d9c98619974848cba4eec9201f473f..c6b8e7ed32af7198e53fae51394c4025df1e91f1 100644 (file)
@@ -50,7 +50,7 @@
 #include <epan/prefs.h>
 #include <epan/emem.h>
 #include <epan/expert.h>
-#include <epan/crc16.h>
+#include <wsutil/crc16.h>
 #include <epan/asn1.h>
 #include <epan/strutil.h>
 #include <epan/uat.h>
index 6c1c720767a166ffa55f63faf3673e5335e5fe5a..8f34f9449b37a76035807f4bf6483d641c5f09ed 100644 (file)
@@ -38,7 +38,7 @@
 #include "packet-llc.h"
 #include "packet-sll.h"
 #include "packet-usb.h"
-#include <epan/crc32.h>
+#include <wsutil/crc32.h>
 #include <epan/tap.h>
 #include <epan/expert.h>
 
index 7aecad064d29d9732c2ffd7b201e1966a1dbf41a..6191117a8dff28999f7253439697e296f4130194 100644 (file)
@@ -53,7 +53,7 @@
 #include "packet-fcbls.h"
 #include <epan/tap.h>
 #include <epan/emem.h>
-#include <epan/crc32.h>
+#include <wsutil/crc32.h>
 #include <epan/expert.h>
 
 #define FC_HEADER_SIZE         24
index 09094df5f65ad68b9925f64ff38ff14ac1f01dc4..cedf49790b26fc13a5b3252112015a8a2603769c 100644 (file)
@@ -40,7 +40,7 @@
 
 #include <epan/packet.h>
 #include <epan/prefs.h>
-#include <epan/crc32.h>
+#include <wsutil/crc32.h>
 #include <epan/etypes.h>
 #include <epan/expert.h>
 
index c4c298d818a01e3b5eb7d3f9588658903a92aa62..ffd7ae6a9d3e140e610f3014d9bbf3262c2e0d09 100644 (file)
@@ -33,7 +33,7 @@
 #include <stdlib.h>
 #include <epan/packet.h>
 #include <epan/prefs.h>
-#include <epan/crc32.h>
+#include <wsutil/crc32.h>
 #include <epan/etypes.h>
 #include <epan/expert.h>
 #include <errno.h>
index dfa5331b64dcdf584be7e6f1889bf96df21813f8..56de89dfb263e7cb958ca998da7c555338d09c49 100644 (file)
 #include <epan/etypes.h>
 #include <epan/greproto.h>
 #include <epan/oui.h>
-#include <epan/crc32.h>
+#include <wsutil/crc32.h>
 #include <epan/tap.h>
 #include <epan/emem.h>
 #include <epan/crypt/wep-wpadefs.h>
index 5c970fa6e4854cb07e43e63cd2e2fab2dfc686f4..bb04e04c0a3f4fbb3839d18563a308ba57a952d3 100644 (file)
@@ -75,7 +75,7 @@
 
 #include <epan/emem.h>
 #include <epan/packet.h>
-#include <epan/crc16.h>
+#include <wsutil/crc16.h>
 #include <epan/expert.h>
 #include <epan/addr_resolv.h>
 #include <epan/prefs.h>
index bbbdcf877a6eb7ebd4ab338cdd3a93ec8bc8607d..1bad4749736cb5e4898fc4235f06ae8a11835e48 100644 (file)
@@ -49,7 +49,7 @@
 #include <epan/nstime.h>
 #include <epan/emem.h>
 #include <epan/range.h>
-#include <epan/crc32.h>
+#include <wsutil/crc32.h>
 
 /* the absolute values of these constants don't matter as long as
  * latter revisions of the protocol are assigned a larger number */
index e9ae3a0755330034405d7bd240828cf7e435659f..20d2b92991a028f13d7cdb0e9970bc35868ec0b3 100644 (file)
@@ -40,8 +40,8 @@
 #include <epan/prefs.h>
 #include <epan/emem.h>
 #include <epan/expert.h>
-#include <epan/crc10.h>
-#include <epan/crc6.h>
+#include <wsutil/crc10.h>
+#include <wsutil/crc6.h>
 
 
 typedef struct _iuup_rfci_t {
index ec85288d90cb0b70abf31c7066f7abfb3fe3ec7c..62e4a81f8e0db151488ba4a6d247a0d3c54be930 100644 (file)
@@ -36,7 +36,7 @@
 #include <epan/conversation.h>
 #include <epan/dissectors/packet-tcp.h>
 #include <epan/expert.h>
-#include <epan/crc32.h>
+#include <wsutil/crc32.h>
 
 /* DEFINES */
 
index 9453808d6f3748f3c89f3bbaf4efcd98f6202f7f..df07cabd37f797a97ec198c9384b4dc0208ff3e1 100644 (file)
@@ -46,7 +46,7 @@
 #include <epan/packet.h>
 #include <epan/conversation.h>
 #include <epan/xdlc.h>
-#include <epan/crc16.h>
+#include <wsutil/crc16.h>
 #include <epan/prefs.h>
 #include <epan/lapd_sapi.h>
 
index 24c0519810c8dc7c5a5feeb030bc752b1b847d1f..eff9502069ac15f6553e38bdca04bd00ed84a8ac 100644 (file)
@@ -35,7 +35,7 @@
 #include <glib.h>
 #include <epan/packet.h>
 #include <epan/prefs.h>
-#include <epan/crc16.h>
+#include <wsutil/crc16.h>
 #include <epan/expert.h>
 
 /* Initialize the protocol and registered fields */
index 5e6c6b6eaab23cd4275e0c62ee0c2161b998bfb5..9d2d9bd9b103500f95c77e16a4fd1f95f67fbb00 100644 (file)
@@ -30,7 +30,7 @@
 #include <glib.h>
 #include <epan/packet.h>
 #include <epan/reassemble.h>
-#include <epan/crc8.h>
+#include <wsutil/crc8.h>
 #include <expert.h>
 
 #include <string.h>
index a7752286200f5c0d8baad965213bf9668e55063b..14674ac551ed125a56c57a914c7a8df5100e1b7c 100644 (file)
 #include <epan/packet.h>
 #include <epan/emem.h>
 #include <epan/strutil.h>
-#include <epan/crc32.h>
+#include <wsutil/crc32.h>
 #include <epan/expert.h>
 
-#include <epan/crc16.h>
+#include <wsutil/crc16.h>
 #include <glib.h>
 #include <glib/gprintf.h>
 
index 8fcb6763328ebafcf05a1173ef517a662bdee9e4..0fa3783b695e50fe574fcacd735a7f20631a4a0f 100644 (file)
@@ -53,7 +53,7 @@
 #include <epan/crypt/crypt-des.h>
 #include "packet-dcerpc.h"
 #include "packet-gssapi.h"
-#include <epan/crc32.h>
+#include <wsutil/crc32.h>
 
 #include "packet-ntlmssp.h"
 
index 63145bb636df482ab3c7dad83bbd8dc7101487c7..b5760e9bb3d45163f24009cf2c797174eb2ed736 100644 (file)
@@ -43,8 +43,8 @@
 #include "packet-ipx.h"
 #include "packet-vines.h"
 #include <epan/nlpid.h>
-#include <epan/crc16.h>
-#include <epan/crc32.h>
+#include <wsutil/crc16.h>
+#include <wsutil/crc32.h>
 #include <epan/ipproto.h>
 #include "packet-usb.h"
 #include "packet-sll.h"
index 6a7f9e4cdbb4414ca6c1c1e201339571952ba210..86be04c18b44a3326b8236927a107ece2e10447a 100644 (file)
@@ -33,7 +33,7 @@
 #include <errno.h>
 
 #include <epan/packet.h>
-#include <epan/crc32.h>
+#include <wsutil/crc32.h>
 #include <epan/frequency-utils.h>
 #include <epan/tap.h>
 #include <epan/prefs.h>
index 45bed6cadc286942e492fec7504c6d72c66348ee..081f5ea8c171f623608724a6738afb3b51918825 100644 (file)
@@ -65,7 +65,7 @@
 #include <epan/emem.h>
 #include <epan/expert.h>
 #include <packet-frame.h>
-#include <epan/crc32.h>
+#include <wsutil/crc32.h>
 #include <epan/adler32.h>
 
 #define LT(x, y) ((gint32)((x) - (y)) < 0)
index 415a3057db9f9c59ca727b7ed9c029cc2e3b05e5..a104e7b0b8c213073c364a6bb93cfea49fe7591b 100644 (file)
@@ -33,7 +33,7 @@
 #include <epan/circuit.h>
 #include <epan/stream.h>
 /* #include <epan/reassemble.h> */
-#include <epan/crc16.h>
+#include <wsutil/crc16.h>
 
 /* Wireshark ID of the protocols */
 static int proto_srp = -1;
index 799b8ea80fd33ef710abf606fcb0a7a3085cbe6d..5aebc8d37b8dc496d605e05cc70008e56dc1b10f 100644 (file)
@@ -30,7 +30,7 @@
 
 #include <glib.h>
 #include <epan/conversation.h>
-#include <epan/crc16.h>
+#include <wsutil/crc16.h>
 #include <epan/dissectors/packet-tcp.h>
 #include <epan/packet.h>
 #include <epan/prefs.h>
index 8873becac4895153a020083ff0aebecceb277943..0e931bdcff11c0b8ada43b9e6f0bd2d827ba51f4 100644 (file)
@@ -29,7 +29,7 @@
 #endif
 
 #include <epan/packet.h>
-#include <epan/crc32.h>
+#include <wsutil/crc32.h>
 #include <epan/reassemble.h>
 #include <epan/conversation.h>
 #include <stdlib.h>
index b9d00d8771e85c7ed01c60ce658d304988e7f893..5ce53ceddb8f0d82a5529317079f844da30b37a9 100644 (file)
@@ -34,7 +34,7 @@
 #include <glib.h>
 #include <epan/packet.h>
 #include <epan/strutil.h>
-#include <epan/crc32.h>
+#include <wsutil/crc32.h>
 #include "packet-rtp.h"
 #include "packet-rtcp.h"
 
index afedf81c6a84a474f52aa4a1d9687bfce0ebbde2..b3141d604ba6ce049be3aa3489472f099a64874a 100644 (file)
@@ -112,16 +112,6 @@ convert_string_to_hex
 copy_file_binary_mode
 copy_persconffile_profile
 copy_prefs
-crc16_ccitt_tvb
-crc16_plain_tvb_offset
-crc32c_calculate
-crc32_ccitt
-crc32_ccitt_seed
-crc32_ccitt_tvb
-crc32_ccitt_tvb_offset
-crc32_ccitt_tvb_seed
-crc32_ccitt_tvb_offset_seed
-crc32_802_tvb
 create_dissector_handle
 create_persconffile_dir
 create_persconffile_profile
index de28f7f6de5240b99f2925a6d1b10eb78c9e27ac..6e87a4adfc5ae9adf05f09345249edd7ba5f4df5 100644 (file)
@@ -44,7 +44,7 @@
 #include "sigcomp-udvm.h"
 #include "sigcomp_state_hdlr.h"
 #include "crypt/crypt-sha1.h"
-#include "crc16.h"
+#include "wsutil/crc16.h"
 #include "except.h"
 
 #define        SIGCOMP_INSTR_DECOMPRESSION_FAILURE     0
index 2fe6e34e4408bbb15d1cee9d9fd9fa8baaa4e39c..69b67dd829e4716521f54c34e3beb4f771531e59 100644 (file)
 #include <assert.h>
 
 #include <epan/tvbuff.h>
-#include <epan/crc32.h>
+#include <wsutil/crc32.h>
 #include <epan/in_cksum.h>
 
 #ifdef NEED_STRPTIME_H
index ad17b65771a4d40d460a302cc879e14bfc995c8b..254f3b1c440075fa4a01fecd2d786b0558ad541f 100644 (file)
@@ -29,7 +29,7 @@
 #endif
 
 #include <epan/packet.h>
-#include <epan/crc16.h>
+#include <wsutil/crc16.h>
 
 /** Serial infrared port. */
 #define TCP_PORT_SIR 6417
index 50b42a347d426fff674deaf0f6be474e20060498..e67fbd48c12517af395109a08f7ba7b082bf0025 100644 (file)
@@ -43,7 +43,7 @@
 #include <epan/etypes.h>
 #include <epan/expert.h>
 #include <epan/dissectors/packet-dcerpc.h>
-#include <epan/crc16.h>
+#include <wsutil/crc16.h>
 
 #include "packet-pn.h"
 
index 25eabb1d64fb4ccb310e0fc9bc9de7f229fbb659..9501920acb010a8586ee58ad9955f4ab46ee50b4 100644 (file)
@@ -35,6 +35,13 @@ set(WSUTIL_FILES
 #              @INET_PTON_LO@  # inet_pton.c
 #              @STRNCASECMP_LO@ # strncasecmp.c
 #              @STRPTIME_LO@   # strptime.c
+  crc10.c
+  crc16.c
+  crc16-plain.c
+  crc32.c
+  crc6.c
+  crc8.c
+  crcdrm.c
   mpeg-audio.c
   privileges.c
   str_util.c
index cbe90655acd7f11884d6825143ed4cff4c79a28a..9f50c297bf96d67142002cd6358d5458f4cd9283 100644 (file)
 # generated from YACC or Lex files (as Automake doesn't want them in
 # _SOURCES variables).
 LIBWSUTIL_SRC =        \
+       crc10.c         \
+       crc16.c         \
+       crc16-plain.c   \
+       crc32.c         \
+       crc6.c          \
+       crc8.c          \
+       crcdrm.c        \
        mpeg-audio.c    \
        privileges.c    \
        str_util.c      \
@@ -36,6 +43,13 @@ LIBWSUTIL_SRC =      \
 
 # Header files that are not generated from other files
 LIBWSUTIL_INCLUDES =   \
+       crc6.h          \
+       crc8.h          \
+       crc10.h         \
+       crc16.h         \
+       crc16-plain.h   \
+       crc32.h         \
+       crcdrm.h        \
        mpeg-audio.h    \
        privileges.h    \
        str_util.h      \
similarity index 100%
rename from epan/crc10.c
rename to wsutil/crc10.c
similarity index 100%
rename from epan/crc10.h
rename to wsutil/crc10.h
similarity index 98%
rename from epan/crc/crc-16-plain.c
rename to wsutil/crc16-plain.c
index 863f939d4a4f285b462b6c27965f5cfc00a09687..13e31a74a479d0d77fd4f2a55c83eef1b0be4b76 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * \file crc-16-plain.c
+ * \file crc16-plain.c
  * Functions and types for CRC checks.
  *
  * Generated on Wed Mar 18 14:12:09 2009,
@@ -18,7 +18,7 @@
  * appears not to have it; we're using GLib types, instead.
  *****************************************************************************/
 #include "glib.h"
-#include "crc-16-plain.h"
+#include "crc16-plain.h"
 #include <stdlib.h>
 
 /**
similarity index 99%
rename from epan/crc/crc-16-plain.h
rename to wsutil/crc16-plain.h
index 2ad0217066bfa67a9835f961af7b1344e83b09f9..f6593562af6c1e76ef69418157ace1e0b1101f39 100644 (file)
@@ -1,5 +1,5 @@
 /**
- * \file crc-16-plain.h
+ * \file crc16-plain.h
  * Functions and types for CRC checks.
  *
  * Generated on Wed Mar 18 14:12:15 2009,
similarity index 99%
rename from epan/crc16.c
rename to wsutil/crc16.c
index 5fcd105dca758eb529ef8a1d536296fbca2e327c..fe18fead5839499025e6608f3d33af1aad6d07e7 100644 (file)
@@ -39,8 +39,8 @@
 
 #include <glib.h>
 #include <epan/tvbuff.h>
-#include <epan/crc16.h>
-#include <epan/crc/crc-16-plain.h>
+#include <wsutil/crc16.h>
+#include <wsutil/crc16-plain.h>
 
 
 /*****************************************************************/
similarity index 100%
rename from epan/crc16.h
rename to wsutil/crc16.h
similarity index 99%
rename from epan/crc32.c
rename to wsutil/crc32.c
index 0fe2b29547957adf477f86b2120f9e2b820c8eff..82de71481a476c9bf9bfacbcf80ee948f73dfe1e 100644 (file)
@@ -35,7 +35,7 @@
 
 #include <glib.h>
 #include <epan/tvbuff.h>
-#include <epan/crc32.h>
+#include <wsutil/crc32.h>
 
 /*****************************************************************/
 /*                                                               */
similarity index 100%
rename from epan/crc32.h
rename to wsutil/crc32.h
similarity index 100%
rename from epan/crc6.c
rename to wsutil/crc6.c
similarity index 100%
rename from epan/crc6.h
rename to wsutil/crc6.h
similarity index 99%
rename from epan/crc8.c
rename to wsutil/crc8.c
index 630eda7f6c5dfec58e610db3bf969e0ebbbe54b6..92045420f2c95fd6124d1c8e70da90b8605d1f86 100644 (file)
@@ -38,7 +38,7 @@
 
 #include <glib.h>
 #include <epan/tvbuff.h>
-#include <epan/crc8.h>
+#include <wsutil/crc8.h>
 
 /**
  * Reversed CRC table
similarity index 100%
rename from epan/crc8.h
rename to wsutil/crc8.h
similarity index 100%
rename from epan/crcdrm.c
rename to wsutil/crcdrm.c
similarity index 100%
rename from epan/crcdrm.h
rename to wsutil/crcdrm.h
index 7aadd7e848109f73188fdf7a7a70fe896863f092..09b9d00b6fd4dd946542670a0fd7d7fde97c109b 100644 (file)
@@ -9,6 +9,38 @@
 ;
 EXPORTS
 
+; crc6.c
+update_crc6_by_bytes
+
+; crc8.c
+check_fcs
+
+; crc10.c
+update_crc10_by_bytes
+
+; crc16.c
+crc16_ccitt
+crc16_ccitt_seed
+crc16_ccitt_tvb
+crc16_plain_tvb_offset
+crc16_ccitt_tvb_offset
+crc16_ccitt_tvb_offset_seed
+crc16_ccitt_tvb_seed
+crc16_x25_ccitt
+crc16_x25_ccitt_tvb
+
+; crc32.c
+crc32_802_tvb
+crc32_ccitt
+crc32_ccitt_seed
+crc32_ccitt_table DATA
+crc32_ccitt_tvb
+crc32_ccitt_tvb_offset
+crc32_ccitt_tvb_seed
+crc32_ccitt_tvb_offset_seed
+crc32c_calculate
+crc32c_table DATA
+
 ; file_util.c
 getenv_utf8
 ws_stdio_fopen