diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-06-17 18:00:25 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-06-17 18:00:25 +0000 |
commit | 58f7cea11029adcc3b7ccec74add47aacfab9943 (patch) | |
tree | f277fce8d7c3f6ceaf1620a82bddea41489eb7ec /usr.sbin/amd/include | |
parent | b37ecf5b03678191a26dd176cde8980b08eb766a (diff) |
Use getifaddrs() to get the list of interfaces. This fixes the
"wire" variable which may be used in amd maps to select an NFS
server based on the subnet. Tested by matthieu@; OK by deraadt@
Diffstat (limited to 'usr.sbin/amd/include')
-rw-r--r-- | usr.sbin/amd/include/am.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/amd/include/am.h b/usr.sbin/amd/include/am.h index b50b0021767..e803b04ed9e 100644 --- a/usr.sbin/amd/include/am.h +++ b/usr.sbin/amd/include/am.h @@ -1,4 +1,4 @@ -/* $OpenBSD: am.h,v 1.9 2003/06/02 23:36:52 millert Exp $ */ +/* $OpenBSD: am.h,v 1.10 2003/06/17 18:00:24 millert Exp $ */ /* * Copyright (c) 1990 Jan-Simon Pendry @@ -262,7 +262,7 @@ extern char *inet_dquad(char *, size_t, u_int32_t); extern void init_map(am_node *, char *); extern void insert_am(am_node *, am_node *); extern void ins_que(qelem *, qelem *); -extern int islocalnet(u_int32_t); +extern int islocalnet(in_addr_t); extern int make_nfs_auth(void); extern void make_root_node(void); extern int make_rpc_packet(char *, int, u_long, struct rpc_msg *, |