tests: Add p2p-fuzzer

This program can be used to run fuzzing tests for areas related to P2P
message parsing and processing. p2p-fuzzer allows data files to be used
to inject Probe Response and Action frames for processing by the P2P
module.

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2015-04-08 23:12:25 +03:00
parent 632931c3ce
commit a65d7495b5
10 changed files with 347 additions and 9 deletions

View file

@ -1,8 +1,28 @@
all:
@echo Nothing to be made.
all: libcommon.a
clean:
rm -f *~ *.o *.d *.gcno *.gcda *.gcov
rm -f *~ *.o *.d *.gcno *.gcda *.gcov libcommon.a
install:
@echo Nothing to be made.
include ../lib.rules
CFLAGS += -DCONFIG_IEEE80211R
CFLAGS += -DCONFIG_IEEE80211W
CFLAGS += -DCONFIG_HS20
CFLAGS += -DCONFIG_SAE
CFLAGS += -DCONFIG_SUITE
CFLAGS += -DCONFIG_SUITEB
LIB_OBJS= \
gas.o \
hw_features_common.o \
ieee802_11_common.o \
sae.o \
wpa_common.o
libcommon.a: $(LIB_OBJS)
$(AR) crT $@ $?
-include $(OBJS:%.o=%.d)

View file

@ -1,8 +1,29 @@
all:
@echo Nothing to be made.
all: libp2p.a
clean:
rm -f *~ *.o *.d *.gcno *.gcda *.gcov
rm -f *~ *.o *.d *.gcno *.gcda *.gcov libp2p.a
install:
@echo Nothing to be made.
include ../lib.rules
CFLAGS += -DCONFIG_WIFI_DISPLAY
CFLAGS += -DCONFIG_WPS_NFC
LIB_OBJS= \
p2p_build.o \
p2p.o \
p2p_dev_disc.o \
p2p_go_neg.o \
p2p_group.o \
p2p_invitation.o \
p2p_parse.o \
p2p_pd.o \
p2p_sd.o \
p2p_utils.o
libp2p.a: $(LIB_OBJS)
$(AR) crT $@ $?
-include $(OBJS:%.o=%.d)

View file

@ -1,8 +1,41 @@
all:
@echo Nothing to be made.
all: libwps.a
clean:
rm -f *~ *.o *.d *.gcno *.gcda *.gcov
rm -f *~ *.o *.d *.gcno *.gcda *.gcov libwps.a
install:
@echo Nothing to be made.
include ../lib.rules
CFLAGS += -DCONFIG_P2P
CFLAGS += -DCONFIG_WPS_OOB
CFLAGS += -DCONFIG_WPS_NFC
LIB_OBJS= \
http_client.o \
httpread.o \
http_server.o \
ndef.o \
upnp_xml.o \
wps_attr_build.o \
wps_attr_parse.o \
wps_attr_process.o \
wps.o \
wps_common.o \
wps_dev_attr.o \
wps_enrollee.o \
wps_er.o \
wps_er_ssdp.o \
wps_module_tests.o \
wps_registrar.o \
wps_upnp_ap.o \
wps_upnp.o \
wps_upnp_event.o \
wps_upnp_ssdp.o \
wps_upnp_web.o
libwps.a: $(LIB_OBJS)
$(AR) crT $@ $?
-include $(OBJS:%.o=%.d)