y_node: add ifaddr to check local address node

This commit is contained in:
2025-10-18 08:50:06 +02:00
parent 14f5a53fff
commit 360a6c20df
2 changed files with 26 additions and 1 deletions
+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;