Added m option to mstpcrc demo to pass a line of bytes which get encoded into Wireshark pcap file for viewing in Wireshark. Useful when someone sends you a string of bytes from an MS/TP capture and you want to quickly decoding them using Wireshark.

This commit is contained in:
skarg
2012-04-09 00:43:27 +00:00
parent 4932dd1e79
commit c2db7ee7c4
3 changed files with 100 additions and 9 deletions
+2 -8
View File
@@ -10,7 +10,7 @@ TARGET = mstpcrc
TARGET_BIN = ${TARGET}$(TARGET_EXT)
# This demo seems to be a little unique
BACNET_INCLUDE_DIR = ../../include
DEFINES = $(BACNET_DEFINES)
BACNET_SOURCE_DIR = ../../src
#libraries used
@@ -27,14 +27,8 @@ endif
# search order for included libraries
INCLUDES = -I$(BACNET_INCLUDE_DIR)
# any special defines
DEFINES =
# put all the flags together
CFLAGS = -Wall $(DEBUGGING) $(OPTIMIZATION) $(INCLUDES) $(DEFINES)
LFLAGS = -Wl,$(LIBRARIES)
SRCS = main.c \
${BACNET_PORT_DIR}/timer.c \
${BACNET_SOURCE_DIR}/crc.c
OBJS = ${SRCS:.c=.o}