2020-02-26 13:05:58 +01:00
|
|
|
# native has a TAP interface towards the host, just add parameters for
|
|
|
|
# `socket_zep`
|
2020-04-03 23:03:36 +02:00
|
|
|
ZEP_PORT_BASE ?= 17754
|
|
|
|
ZEP_PORT_MAX := $(shell expr $(ZEP_PORT_BASE) + $(ZEP_DEVICES) - 1)
|
|
|
|
|
|
|
|
CFLAGS += -DSOCKET_ZEP_MAX=$(ZEP_DEVICES)
|
|
|
|
CFLAGS += -DDHCPV6_CLIENT_PFX_LEASE_MAX=$(ZEP_DEVICES)
|
|
|
|
CFLAGS += -DASYNC_READ_NUMOF=$(shell expr $(ZEP_DEVICES) + 1)
|
|
|
|
|
|
|
|
# -z [::1]:$PORT for each ZEP device
|
|
|
|
TERMFLAGS += $(patsubst %,-z [::1]:%, $(shell seq $(ZEP_PORT_BASE) $(ZEP_PORT_MAX)))
|
2020-02-26 13:05:58 +01:00
|
|
|
|
|
|
|
ifneq (1,$(USE_DHCPV6))
|
|
|
|
# We don't need to start ethos so just start the UHCPD daemon in the
|
|
|
|
# background
|
|
|
|
TERMDEPS += uhcpd-daemon
|
|
|
|
endif
|