version 1.1.1.2, 2013/07/22 08:44:29
|
version 1.1.1.3, 2021/03/17 00:39:23
|
Line 10
|
Line 10
|
|
|
#include <sys/types.h> |
#include <sys/types.h> |
#include <sys/param.h> |
#include <sys/param.h> |
|
#include <netinet/in.h> |
#include <netinet/in_systm.h> |
#include <netinet/in_systm.h> |
#include <netinet/ip.h> |
#include <netinet/ip.h> |
|
|
Line 40
|
Line 41
|
* FUNCTIONS |
* FUNCTIONS |
*/ |
*/ |
|
|
extern int IpShowRoutes(Context ctx, int ac, char *av[], void *arg); | extern int IpShowRoutes(Context ctx, int ac, const char *const av[], const void *arg); |
extern int IpAddrInRange(struct u_range *range, struct u_addr *addr); |
extern int IpAddrInRange(struct u_range *range, struct u_addr *addr); |
|
|
extern int ParseAddr(const char *s, struct u_addr *addr, u_char allow); |
extern int ParseAddr(const char *s, struct u_addr *addr, u_char allow); |
extern int ParseRange(const char *s, struct u_range *range, u_char allow); |
extern int ParseRange(const char *s, struct u_range *range, u_char allow); |
extern struct sockaddr_storage * ParseAddrPort(int ac, char *av[], u_char allow); | extern struct sockaddr_storage * ParseAddrPort(int ac, const char *const av[], u_char allow); |
|
|
extern sa_family_t u_addrfamily(struct u_addr *addr); |
extern sa_family_t u_addrfamily(struct u_addr *addr); |
extern sa_family_t u_rangefamily(struct u_range *range); |
extern sa_family_t u_rangefamily(struct u_range *range); |