Previously the net_linkaddr struct had pointers to the link address. This is error prone and difficult to handle if cloning the packet as those pointers can point to wrong place. Mitigate this issue by allocating the space for link address in net_linkaddr struct. This will increase the size of the net_pkt by 4 octets for IEEE 802.15.4 where the link address length is 8, but there no increase in size if link address is 6 bytes like in Ethernet/Wi-Fi. Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
26 lines
572 B
Plaintext
26 lines
572 B
Plaintext
CONFIG_NETWORKING=y
|
|
CONFIG_NET_TEST=y
|
|
CONFIG_NET_L2_DUMMY=y
|
|
CONFIG_NET_L2_ETHERNET=n
|
|
CONFIG_NET_IPV6=y
|
|
CONFIG_NET_IPV6_ND=n
|
|
CONFIG_NET_IPV6_DAD=n
|
|
CONFIG_NET_IPV6_MLD=n
|
|
CONFIG_NET_6LO=y
|
|
CONFIG_NET_BUF=y
|
|
CONFIG_ENTROPY_GENERATOR=y
|
|
CONFIG_TEST_RANDOM_GENERATOR=y
|
|
CONFIG_MAIN_STACK_SIZE=5120
|
|
CONFIG_NET_PKT_RX_COUNT=1
|
|
CONFIG_NET_PKT_TX_COUNT=1
|
|
CONFIG_NET_BUF_RX_COUNT=4
|
|
CONFIG_NET_BUF_TX_COUNT=4
|
|
CONFIG_NET_LOG=y
|
|
|
|
CONFIG_NET_6LO_CONTEXT=y
|
|
#Before modifying this value, add respective code in src/main.c
|
|
CONFIG_NET_MAX_6LO_CONTEXTS=2
|
|
CONFIG_ZTEST=y
|
|
|
|
CONFIG_NET_L2_IEEE802154=y
|