2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Make interfaces pointer private to interfaces.c and add get_interfaces()

accessor.
This commit is contained in:
Todd C. Miller
2012-10-25 13:15:52 -04:00
parent 319fe95d08
commit 929aef0754
6 changed files with 17 additions and 13 deletions

View File

@@ -52,6 +52,8 @@
# define INADDR_NONE ((unsigned int)-1)
#endif
static struct interface *interfaces;
/*
* Parse a space-delimited list of IP address/netmask pairs and
* store in a list of interface structures.
@@ -101,6 +103,12 @@ set_interfaces(const char *ai)
debug_return;
}
struct interface *
get_interfaces(void)
{
return interfaces;
}
void
dump_interfaces(const char *ai)
{