commit fe732ce3a9cbf37376e1d6327a87711191c771d2
parent 7e7ee04f25c50417f85eaf47d6e0973b5c7c2663
Author: Robin Bron <robin@finwo.nl>
Date: Thu, 9 Mar 2023 22:34:38 +0100
Make sure bcidx starts on a positive number
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/task/announce.c b/src/task/announce.c
@@ -30,7 +30,7 @@ void * task_announce_thread(void *arg) {
memcpy(buffer+ETH_ALEN, mac, ETH_ALEN); // Source = bond
memcpy(buffer+(ETH_ALEN*2), ðtype, sizeof(uint16_t)); // EtherType = 0x0666 = custom
- int16_t bcidx = htons(rand() | 1);
+ int16_t bcidx = htons(1);
while(1) {
sleep(1);