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 <richardcochran@gmail.com>
master
Richard Cochran 2013-10-06 19:20:56 +02:00
parent 4f6f1e1cba
commit 67b0386042
1 changed files with 1 additions and 1 deletions

View File

@ -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 {