From 67b03860425bfb89d9182da6cf6e39af863dd6ae Mon Sep 17 00:00:00 2001 From: Richard Cochran Date: Sun, 6 Oct 2013 19:20:56 +0200 Subject: [PATCH] Extend the interface name length to allow any UDS address. This patch increases the maximum length of an interface name to accommodate a UNIX domain socket address of 108 bytes. (This value is hard coded in the glibc headers, and so we cannot use the Linux kernel header macro, UNIX_PATH_MAX.) Signed-off-by: Richard Cochran --- config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.h b/config.h index 4a2cbaa..40d8978 100644 --- a/config.h +++ b/config.h @@ -27,7 +27,7 @@ #include "sk.h" #define MAX_PORTS 8 -#define MAX_IFNAME_SIZE 16 +#define MAX_IFNAME_SIZE 108 /* = UNIX_PATH_MAX */ /** Defines a network interface, with PTP options. */ struct interface {