version 1.1.1.2, 2012/05/29 12:26:49
|
version 1.1.1.3, 2013/07/22 10:46:12
|
Line 1
|
Line 1
|
/* |
/* |
* Copyright (c) 2010 Todd C. Miller <Todd.Miller@courtesan.com> | * Copyright (c) 2010-2012 Todd C. Miller <Todd.Miller@courtesan.com> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
* purpose with or without fee is hereby granted, provided that the above |
* purpose with or without fee is hereby granted, provided that the above |
Line 18
|
Line 18
|
|
|
#include <sys/types.h> |
#include <sys/types.h> |
#include <sys/socket.h> |
#include <sys/socket.h> |
#include <sys/param.h> |
|
#include <stdio.h> |
#include <stdio.h> |
#ifdef STDC_HEADERS |
#ifdef STDC_HEADERS |
# include <stdlib.h> |
# include <stdlib.h> |
Line 52
|
Line 51
|
# define INADDR_NONE ((unsigned int)-1) |
# define INADDR_NONE ((unsigned int)-1) |
#endif |
#endif |
|
|
|
static struct interface *interfaces; |
|
|
/* |
/* |
* Parse a space-delimited list of IP address/netmask pairs and |
* Parse a space-delimited list of IP address/netmask pairs and |
* store in a list of interface structures. |
* store in a list of interface structures. |
Line 99 set_interfaces(const char *ai)
|
Line 100 set_interfaces(const char *ai)
|
} |
} |
efree(addrinfo); |
efree(addrinfo); |
debug_return; |
debug_return; |
|
} |
|
|
|
struct interface * |
|
get_interfaces(void) |
|
{ |
|
return interfaces; |
} |
} |
|
|
void |
void |