From f1fcec220c8454cb461bd1ac22621a1b64609051 Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Fri, 15 Aug 2025 19:01:23 +0200 Subject: ipcpd: Fix addresses in RIB entries The entries of the RIB were broken as some paths in FUSE were checked against the old entry format. Updated the address format to use a dot to avoid escaping colons and spaces and be friendlier to command line tools such as 'cat'. Signed-off-by: Dimitri Staessens --- src/ipcpd/unicast/addr-auth.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ipcpd/unicast/addr-auth.h') diff --git a/src/ipcpd/unicast/addr-auth.h b/src/ipcpd/unicast/addr-auth.h index b453cba5..0d2cd4c0 100644 --- a/src/ipcpd/unicast/addr-auth.h +++ b/src/ipcpd/unicast/addr-auth.h @@ -27,12 +27,12 @@ #include -#define ADDR_FMT32 "%02x:%02x:%02x:%02x" +#define ADDR_FMT32 "%02x.%02x.%02x.%02x" #define ADDR_VAL32(a) \ ((uint8_t *) a)[0], ((uint8_t *) a)[1], \ ((uint8_t *) a)[2], ((uint8_t *) a)[3] -#define ADDR_FMT64 ADDR_FMT32 ":" ADDR_FMT32 +#define ADDR_FMT64 ADDR_FMT32 "." ADDR_FMT32 #define ADDR_VAL64(a) ADDR_VAL32(a), ADDR_VAL32(a + 4) int addr_auth_init(enum pol_addr_auth type, -- cgit v1.2.3