y_node: add ifaddr to check local address node

This commit is contained in:
fanasina committed 2025-10-18 08:50:06 +02:00
1 parent 14f5a53fff
commit 360a6c20df
2 files changed
+26 -1

No files matched your search

+3
View File
@@ -8,11 +8,14 @@
//#include "y_socket_t/y_socket_t.h"
#include "list_t/list_t.h"
#include <sys/types.h>
#include <ifaddrs.h>
typedef struct y_node_t{
//char *id;
struct sockaddr_storage addr;
socklen_t addr_len;
int local_addr;/* 0 if not local address */
} y_NODE_T;