Skip to content

Commit

Permalink
remove GPLv2 CRC code, the new epan CRC stuff is working well
Browse files Browse the repository at this point in the history
svn path=/trunk/; revision=27803
  • Loading branch information
ulflulfl committed Mar 20, 2009
1 parent a60cc1d commit f681477
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 99 deletions.
2 changes: 0 additions & 2 deletions plugins/profinet/Makefile.common
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ PLUGIN_NAME = profinet

# the dissector sources (without any helpers)
DISSECTOR_SRC = \
crc16.c \
packet-dcerpc-pn-io.c \
packet-dcom-cba.c \
packet-dcom-cba-acco.c \
Expand All @@ -40,7 +39,6 @@ DISSECTOR_SRC = \

# corresponding headers
DISSECTOR_INCLUDES = \
crc16.h \
packet-dcom-cba-acco.h \
packet-pn.h

Expand Down
71 changes: 0 additions & 71 deletions plugins/profinet/crc16.c

This file was deleted.

21 changes: 0 additions & 21 deletions plugins/profinet/crc16.h

This file was deleted.

5 changes: 0 additions & 5 deletions plugins/profinet/packet-pn-rt.c
Original file line number Diff line number Diff line change
Expand Up @@ -192,12 +192,7 @@ dissect_SubFrame_heur(tvbuff_t *tvb,
item = proto_tree_add_uint(sub_tree, hf_pn_rt_sf_crc16, tvb, offset, 2, u16SFCRC16);

if(u8SFPosition & 0x80) {
/*
crc_buf = (const char *) tvb_get_ptr(tvb, u32SubStart, offset-u32SubStart);
crc = crc16(0, crc_buf, offset-u32SubStart);
*/
crc = crc16_plain_tvb_offset(tvb, u32SubStart, offset-u32SubStart);

if(crc != u16SFCRC16) {
proto_item_append_text(item, " [Preliminary check: incorrect, should be: %u]", crc);
expert_add_info_format(pinfo, item, PI_CHECKSUM, PI_ERROR, "Bad checksum");
Expand Down

0 comments on commit f681477

Please sign in to comment.