summaryrefslogtreecommitdiffstats
path: root/sys/netinet6
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2002-03-14 01:26:25 +0000
committermillert <millert@openbsd.org>2002-03-14 01:26:25 +0000
commitc4071fd13883b3f74b90a411bbb39755a785aeaa (patch)
tree241e7c760222fac909b512d36156c6db1b610256 /sys/netinet6
parentcompare pointers with NULL not 0 (diff)
downloadwireguard-openbsd-c4071fd13883b3f74b90a411bbb39755a785aeaa.tar.xz
wireguard-openbsd-c4071fd13883b3f74b90a411bbb39755a785aeaa.zip
First round of __P removal in sys
Diffstat (limited to 'sys/netinet6')
-rw-r--r--sys/netinet6/frag6.c12
-rw-r--r--sys/netinet6/icmp6.c42
-rw-r--r--sys/netinet6/in6.c6
-rw-r--r--sys/netinet6/in6.h48
-rw-r--r--sys/netinet6/in6_gif.h6
-rw-r--r--sys/netinet6/in6_ifattach.c14
-rw-r--r--sys/netinet6/in6_ifattach.h6
-rw-r--r--sys/netinet6/in6_pcb.c4
-rw-r--r--sys/netinet6/in6_prefix.c16
-rw-r--r--sys/netinet6/in6_prefix.h6
-rw-r--r--sys/netinet6/in6_var.h74
-rw-r--r--sys/netinet6/ip6_input.c8
-rw-r--r--sys/netinet6/ip6_mroute.c34
-rw-r--r--sys/netinet6/ip6_mroute.h10
-rw-r--r--sys/netinet6/ip6_output.c22
-rw-r--r--sys/netinet6/ip6_var.h74
-rw-r--r--sys/netinet6/ip6protosw.h34
-rw-r--r--sys/netinet6/mld6.c4
-rw-r--r--sys/netinet6/mld6_var.h12
-rw-r--r--sys/netinet6/nd6.c4
-rw-r--r--sys/netinet6/nd6.h102
-rw-r--r--sys/netinet6/nd6_nbr.c18
-rw-r--r--sys/netinet6/nd6_rtr.c36
-rw-r--r--sys/netinet6/pim6_var.h4
-rw-r--r--sys/netinet6/raw_ip6.c4
-rw-r--r--sys/netinet6/route6.c6
26 files changed, 298 insertions, 308 deletions
diff --git a/sys/netinet6/frag6.c b/sys/netinet6/frag6.c
index 8c4864575d1..820c93bab7f 100644
--- a/sys/netinet6/frag6.c
+++ b/sys/netinet6/frag6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: frag6.c,v 1.11 2001/06/09 06:43:37 angelos Exp $ */
+/* $OpenBSD: frag6.c,v 1.12 2002/03/14 01:27:11 millert Exp $ */
/* $KAME: frag6.c,v 1.31 2001/05/17 13:45:34 jinmei Exp $ */
/*
@@ -60,11 +60,11 @@
*/
#define IN6_IFSTAT_STRICT
-static void frag6_enq __P((struct ip6asfrag *, struct ip6asfrag *));
-static void frag6_deq __P((struct ip6asfrag *));
-static void frag6_insque __P((struct ip6q *, struct ip6q *));
-static void frag6_remque __P((struct ip6q *));
-static void frag6_freef __P((struct ip6q *));
+static void frag6_enq(struct ip6asfrag *, struct ip6asfrag *);
+static void frag6_deq(struct ip6asfrag *);
+static void frag6_insque(struct ip6q *, struct ip6q *);
+static void frag6_remque(struct ip6q *);
+static void frag6_freef(struct ip6q *);
/* XXX we eventually need splreass6, or some real semaphore */
int frag6_doing_reass;
diff --git a/sys/netinet6/icmp6.c b/sys/netinet6/icmp6.c
index 5d604247127..2b98dde2706 100644
--- a/sys/netinet6/icmp6.c
+++ b/sys/netinet6/icmp6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: icmp6.c,v 1.53 2002/03/05 08:29:45 itojun Exp $ */
+/* $OpenBSD: icmp6.c,v 1.54 2002/03/14 01:27:11 millert Exp $ */
/* $KAME: icmp6.c,v 1.217 2001/06/20 15:03:29 jinmei Exp $ */
/*
@@ -141,7 +141,7 @@ extern int icmp6_nodeinfo;
*/
struct icmp6_mtudisc_callback {
LIST_ENTRY(icmp6_mtudisc_callback) mc_list;
- void (*mc_func) __P((struct in6_addr *));
+ void (*mc_func)(struct in6_addr *);
};
LIST_HEAD(, icmp6_mtudisc_callback) icmp6_mtudisc_callbacks =
@@ -163,22 +163,22 @@ static struct rttimer_queue *icmp6_redirect_timeout_q = NULL;
static int icmp6_redirect_hiwat = -1;
static int icmp6_redirect_lowat = -1;
-static void icmp6_errcount __P((struct icmp6errstat *, int, int));
-static int icmp6_rip6_input __P((struct mbuf **, int));
-static int icmp6_ratelimit __P((const struct in6_addr *, const int, const int));
-static const char *icmp6_redirect_diag __P((struct in6_addr *,
- struct in6_addr *, struct in6_addr *));
-static struct mbuf *ni6_input __P((struct mbuf *, int));
-static struct mbuf *ni6_nametodns __P((const char *, int, int));
-static int ni6_dnsmatch __P((const char *, int, const char *, int));
-static int ni6_addrs __P((struct icmp6_nodeinfo *, struct mbuf *,
- struct ifnet **, char *));
-static int ni6_store_addrs __P((struct icmp6_nodeinfo *, struct icmp6_nodeinfo *,
- struct ifnet *, int));
-static int icmp6_notify_error __P((struct mbuf *, int, int, int));
-static struct rtentry *icmp6_mtudisc_clone __P((struct sockaddr *));
-static void icmp6_mtudisc_timeout __P((struct rtentry *, struct rttimer *));
-static void icmp6_redirect_timeout __P((struct rtentry *, struct rttimer *));
+static void icmp6_errcount(struct icmp6errstat *, int, int);
+static int icmp6_rip6_input(struct mbuf **, int);
+static int icmp6_ratelimit(const struct in6_addr *, const int, const int);
+static const char *icmp6_redirect_diag(struct in6_addr *,
+ struct in6_addr *, struct in6_addr *);
+static struct mbuf *ni6_input(struct mbuf *, int);
+static struct mbuf *ni6_nametodns(const char *, int, int);
+static int ni6_dnsmatch(const char *, int, const char *, int);
+static int ni6_addrs(struct icmp6_nodeinfo *, struct mbuf *,
+ struct ifnet **, char *);
+static int ni6_store_addrs(struct icmp6_nodeinfo *, struct icmp6_nodeinfo *,
+ struct ifnet *, int);
+static int icmp6_notify_error(struct mbuf *, int, int, int);
+static struct rtentry *icmp6_mtudisc_clone(struct sockaddr *);
+static void icmp6_mtudisc_timeout(struct rtentry *, struct rttimer *);
+static void icmp6_redirect_timeout(struct rtentry *, struct rttimer *);
void
icmp6_init()
@@ -251,7 +251,7 @@ icmp6_errcount(stat, type, code)
*/
void
icmp6_mtudisc_callback_register(func)
- void (*func) __P((struct in6_addr *));
+ void (*func)(struct in6_addr *);
{
struct icmp6_mtudisc_callback *mc;
@@ -943,7 +943,7 @@ icmp6_notify_error(m, off, icmp6len, code)
/* Detect the upper level protocol */
{
- void (*ctlfunc) __P((int, struct sockaddr *, void *));
+ void (*ctlfunc)(int, struct sockaddr *, void *);
u_int8_t nxt = eip6->ip6_nxt;
int eoff = off + sizeof(struct icmp6_hdr) +
sizeof(struct ip6_hdr);
@@ -1147,7 +1147,7 @@ icmp6_notify_error(m, off, icmp6len, code)
ip6cp.ip6c_cmdarg = (void *)&notifymtu;
}
- ctlfunc = (void (*) __P((int, struct sockaddr *, void *)))
+ ctlfunc = (void (*)(int, struct sockaddr *, void *))
(inet6sw[ip6_protox[nxt]].pr_ctlinput);
if (ctlfunc) {
(void) (*ctlfunc)(code, (struct sockaddr *)&icmp6dst,
diff --git a/sys/netinet6/in6.c b/sys/netinet6/in6.c
index 6f7961cbeb7..eab2dd8b92c 100644
--- a/sys/netinet6/in6.c
+++ b/sys/netinet6/in6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in6.c,v 1.30 2001/12/07 09:16:07 itojun Exp $ */
+/* $OpenBSD: in6.c,v 1.31 2002/03/14 01:27:11 millert Exp $ */
/* $KAME: in6.c,v 1.198 2001/07/18 09:12:38 itojun Exp $ */
/*
@@ -115,8 +115,8 @@ const struct in6_addr in6mask64 = IN6MASK64;
const struct in6_addr in6mask96 = IN6MASK96;
const struct in6_addr in6mask128 = IN6MASK128;
-static int in6_lifaddr_ioctl __P((struct socket *, u_long, caddr_t,
- struct ifnet *, struct proc *));
+static int in6_lifaddr_ioctl(struct socket *, u_long, caddr_t,
+ struct ifnet *, struct proc *);
const struct sockaddr_in6 sa6_any = {sizeof(sa6_any), AF_INET6,
0, 0, IN6ADDR_ANY_INIT, 0};
diff --git a/sys/netinet6/in6.h b/sys/netinet6/in6.h
index 34ae7b0cc16..40e88198bd0 100644
--- a/sys/netinet6/in6.h
+++ b/sys/netinet6/in6.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: in6.h,v 1.25 2001/12/07 09:16:07 itojun Exp $ */
+/* $OpenBSD: in6.h,v 1.26 2002/03/14 01:27:11 millert Exp $ */
/* $KAME: in6.h,v 1.83 2001/03/29 02:55:07 jinmei Exp $ */
/*
@@ -567,12 +567,12 @@ struct in6_pktinfo {
#ifdef _KERNEL
struct cmsghdr;
-int in6_cksum __P((struct mbuf *, u_int8_t, u_int32_t, u_int32_t));
-int in6_localaddr __P((struct in6_addr *));
-int in6_addrscope __P((struct in6_addr *));
-struct in6_ifaddr *in6_ifawithscope __P((struct ifnet *, struct in6_addr *));
-struct in6_ifaddr *in6_ifawithifp __P((struct ifnet *, struct in6_addr *));
-extern void in6_if_up __P((struct ifnet *));
+int in6_cksum(struct mbuf *, u_int8_t, u_int32_t, u_int32_t);
+int in6_localaddr(struct in6_addr *);
+int in6_addrscope(struct in6_addr *);
+struct in6_ifaddr *in6_ifawithscope(struct ifnet *, struct in6_addr *);
+struct in6_ifaddr *in6_ifawithifp(struct ifnet *, struct in6_addr *);
+extern void in6_if_up(struct ifnet *);
#define satosin6(sa) ((struct sockaddr_in6 *)(sa))
#define sin6tosa(sin6) ((struct sockaddr *)(sin6))
@@ -582,25 +582,25 @@ extern void in6_if_up __P((struct ifnet *));
__BEGIN_DECLS
struct cmsghdr;
-extern int inet6_option_space __P((int));
-extern int inet6_option_init __P((void *, struct cmsghdr **, int));
-extern int inet6_option_append __P((struct cmsghdr *, const u_int8_t *,
- int, int));
-extern u_int8_t *inet6_option_alloc __P((struct cmsghdr *, int, int, int));
-extern int inet6_option_next __P((const struct cmsghdr *, u_int8_t **));
-extern int inet6_option_find __P((const struct cmsghdr *, u_int8_t **, int));
-
-extern size_t inet6_rthdr_space __P((int, int));
-extern struct cmsghdr *inet6_rthdr_init __P((void *, int));
-extern int inet6_rthdr_add __P((struct cmsghdr *, const struct in6_addr *,
- unsigned int));
-extern int inet6_rthdr_lasthop __P((struct cmsghdr *, unsigned int));
+extern int inet6_option_space(int);
+extern int inet6_option_init(void *, struct cmsghdr **, int);
+extern int inet6_option_append(struct cmsghdr *, const u_int8_t *,
+ int, int);
+extern u_int8_t *inet6_option_alloc(struct cmsghdr *, int, int, int);
+extern int inet6_option_next(const struct cmsghdr *, u_int8_t **);
+extern int inet6_option_find(const struct cmsghdr *, u_int8_t **, int);
+
+extern size_t inet6_rthdr_space(int, int);
+extern struct cmsghdr *inet6_rthdr_init(void *, int);
+extern int inet6_rthdr_add(struct cmsghdr *, const struct in6_addr *,
+ unsigned int);
+extern int inet6_rthdr_lasthop(struct cmsghdr *, unsigned int);
#if 0 /* not implemented yet */
-extern int inet6_rthdr_reverse __P((const struct cmsghdr *, struct cmsghdr *));
+extern int inet6_rthdr_reverse(const struct cmsghdr *, struct cmsghdr *);
#endif
-extern int inet6_rthdr_segments __P((const struct cmsghdr *));
-extern struct in6_addr *inet6_rthdr_getaddr __P((struct cmsghdr *, int));
-extern int inet6_rthdr_getflags __P((const struct cmsghdr *, int));
+extern int inet6_rthdr_segments(const struct cmsghdr *);
+extern struct in6_addr *inet6_rthdr_getaddr(struct cmsghdr *, int);
+extern int inet6_rthdr_getflags(const struct cmsghdr *, int);
__END_DECLS
#endif /* !_NETINET6_IN6_H_ */
diff --git a/sys/netinet6/in6_gif.h b/sys/netinet6/in6_gif.h
index 922f8340a9e..fab09831dc1 100644
--- a/sys/netinet6/in6_gif.h
+++ b/sys/netinet6/in6_gif.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: in6_gif.h,v 1.3 2001/02/16 08:48:05 itojun Exp $ */
+/* $OpenBSD: in6_gif.h,v 1.4 2002/03/14 01:27:11 millert Exp $ */
/* $KAME: in6_gif.h,v 1.5 2000/04/14 08:36:03 itojun Exp $ */
/*
@@ -33,7 +33,7 @@
#ifndef _NETINET6_IN6_GIF_H_
#define _NETINET6_IN6_GIF_H_
-int in6_gif_input __P((struct mbuf **, int *, int));
-int in6_gif_output __P((struct ifnet *, int, struct mbuf *, struct rtentry *));
+int in6_gif_input(struct mbuf **, int *, int);
+int in6_gif_output(struct ifnet *, int, struct mbuf *, struct rtentry *);
#endif /*_NETINET6_IN6_GIF_H_*/
diff --git a/sys/netinet6/in6_ifattach.c b/sys/netinet6/in6_ifattach.c
index 8d4c0bfd88e..e3f3b47353f 100644
--- a/sys/netinet6/in6_ifattach.c
+++ b/sys/netinet6/in6_ifattach.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in6_ifattach.c,v 1.21 2001/12/07 09:16:07 itojun Exp $ */
+/* $OpenBSD: in6_ifattach.c,v 1.22 2002/03/14 01:27:11 millert Exp $ */
/* $KAME: in6_ifattach.c,v 1.124 2001/07/18 08:32:51 jinmei Exp $ */
/*
@@ -60,12 +60,12 @@ size_t in6_ifstatmax = 0;
size_t icmp6_ifstatmax = 0;
unsigned long in6_maxmtu = 0;
-static int get_rand_ifid __P((struct ifnet *, struct in6_addr *));
-static int get_hw_ifid __P((struct ifnet *, struct in6_addr *));
-static int get_ifid __P((struct ifnet *, struct ifnet *, struct in6_addr *));
-static int in6_ifattach_addaddr __P((struct ifnet *, struct in6_ifaddr *));
-static int in6_ifattach_linklocal __P((struct ifnet *, struct ifnet *));
-static int in6_ifattach_loopback __P((struct ifnet *));
+static int get_rand_ifid(struct ifnet *, struct in6_addr *);
+static int get_hw_ifid(struct ifnet *, struct in6_addr *);
+static int get_ifid(struct ifnet *, struct ifnet *, struct in6_addr *);
+static int in6_ifattach_addaddr(struct ifnet *, struct in6_ifaddr *);
+static int in6_ifattach_linklocal(struct ifnet *, struct ifnet *);
+static int in6_ifattach_loopback(struct ifnet *);
#define EUI64_GBIT 0x01
#define EUI64_UBIT 0x02
diff --git a/sys/netinet6/in6_ifattach.h b/sys/netinet6/in6_ifattach.h
index 6985bc9be33..b04dda6a4f0 100644
--- a/sys/netinet6/in6_ifattach.h
+++ b/sys/netinet6/in6_ifattach.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: in6_ifattach.h,v 1.2 2000/04/17 04:44:50 itojun Exp $ */
+/* $OpenBSD: in6_ifattach.h,v 1.3 2002/03/14 01:27:12 millert Exp $ */
/* $KAME: in6_ifattach.h,v 1.9 2000/04/12 05:35:48 itojun Exp $ */
/*
@@ -34,8 +34,8 @@
#define _NETINET6_IN6_IFATTACH_H_
#ifdef _KERNEL
-void in6_ifattach __P((struct ifnet *, struct ifnet *));
-void in6_ifdetach __P((struct ifnet *));
+void in6_ifattach(struct ifnet *, struct ifnet *);
+void in6_ifdetach(struct ifnet *);
#endif /* _KERNEL */
#endif /* _NETINET6_IN6_IFATTACH_H_ */
diff --git a/sys/netinet6/in6_pcb.c b/sys/netinet6/in6_pcb.c
index 7cfbd556cfe..acc6320b627 100644
--- a/sys/netinet6/in6_pcb.c
+++ b/sys/netinet6/in6_pcb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in6_pcb.c,v 1.27 2002/01/21 05:33:14 itojun Exp $ */
+/* $OpenBSD: in6_pcb.c,v 1.28 2002/03/14 01:27:12 millert Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@@ -550,7 +550,7 @@ in6_pcbnotify(head, dst, fport_arg, src, lport_arg, cmd, cmdarg, notify)
uint lport_arg;
int cmd;
void *cmdarg;
- void (*notify) __P((struct inpcb *, int));
+ void (*notify)(struct inpcb *, int);
{
struct inpcb *inp, *ninp;
u_short fport = fport_arg, lport = lport_arg;
diff --git a/sys/netinet6/in6_prefix.c b/sys/netinet6/in6_prefix.c
index 12398f5a3d9..94f36028733 100644
--- a/sys/netinet6/in6_prefix.c
+++ b/sys/netinet6/in6_prefix.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: in6_prefix.c,v 1.12 2001/08/24 16:57:33 brian Exp $ */
+/* $OpenBSD: in6_prefix.c,v 1.13 2002/03/14 01:27:12 millert Exp $ */
/* $KAME: in6_prefix.c,v 1.47 2001/03/25 08:41:39 itojun Exp $ */
/*
@@ -88,13 +88,13 @@ struct rr_prhead rr_prefix;
struct timeout in6_rr_timer_ch;
-static void add_each_addr __P((struct socket *so, struct rr_prefix *rpp,
- struct rp_addr *rap));
-static int create_ra_entry __P((struct rp_addr **rapp));
-static int add_each_prefix __P((struct socket *so, struct rr_prefix *rpp));
-static void free_rp_entries __P((struct rr_prefix *rpp));
-static int link_stray_ia6s __P((struct rr_prefix *rpp));
-static void rp_remove __P((struct rr_prefix *rpp));
+static void add_each_addr(struct socket *so, struct rr_prefix *rpp,
+ struct rp_addr *rap);
+static int create_ra_entry(struct rp_addr **rapp);
+static int add_each_prefix(struct socket *so, struct rr_prefix *rpp);
+static void free_rp_entries(struct rr_prefix *rpp);
+static int link_stray_ia6s(struct rr_prefix *rpp);
+static void rp_remove(struct rr_prefix *rpp);
/*
* Copy bits from src to tgt, from off bit for len bits.
diff --git a/sys/netinet6/in6_prefix.h b/sys/netinet6/in6_prefix.h
index 0647e255eb7..acaf4e1059f 100644
--- a/sys/netinet6/in6_prefix.h
+++ b/sys/netinet6/in6_prefix.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: in6_prefix.h,v 1.4 2001/02/16 16:00:57 itojun Exp $ */
+/* $OpenBSD: in6_prefix.h,v 1.5 2002/03/14 01:27:12 millert Exp $ */
/* $KAME: in6_prefix.h,v 1.10 2001/02/08 16:30:30 itojun Exp $ */
/*
@@ -86,6 +86,6 @@ LIST_HEAD(rr_prhead, rr_prefix);
extern struct rr_prhead rr_prefix;
-void in6_rr_timer __P((void *));
+void in6_rr_timer(void *);
extern struct timeout in6_rr_timer_ch;
-int delete_each_prefix __P((struct rr_prefix *rpp, u_char origin));
+int delete_each_prefix(struct rr_prefix *rpp, u_char origin);
diff --git a/sys/netinet6/in6_var.h b/sys/netinet6/in6_var.h
index adad5456777..fa373fde720 100644
--- a/sys/netinet6/in6_var.h
+++ b/sys/netinet6/in6_var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: in6_var.h,v 1.13 2001/07/18 12:50:44 itojun Exp $ */
+/* $OpenBSD: in6_var.h,v 1.14 2002/03/14 01:27:12 millert Exp $ */
/* $KAME: in6_var.h,v 1.55 2001/02/16 12:49:45 itojun Exp $ */
/*
@@ -552,44 +552,44 @@ do { \
IN6_NEXT_MULTI((step), (in6m)); \
} while (0)
-int in6_ifinit __P((struct ifnet *,
- struct in6_ifaddr *, struct sockaddr_in6 *, int));
-struct in6_multi *in6_addmulti __P((struct in6_addr *, struct ifnet *,
- int *));
-void in6_delmulti __P((struct in6_multi *));
-void in6_ifscrub __P((struct ifnet *, struct in6_ifaddr *));
-extern int in6_ifindex2scopeid __P((int));
-extern int in6_mask2len __P((struct in6_addr *));
-extern void in6_len2mask __P((struct in6_addr *, int));
-int in6_control __P((struct socket *,
- u_long, caddr_t, struct ifnet *, struct proc *));
-void in6_purgeaddr __P((struct ifaddr *, struct ifnet *));
-void in6_savemkludge __P((struct in6_ifaddr *));
-void in6_setmaxmtu __P((void));
-void in6_restoremkludge __P((struct in6_ifaddr *, struct ifnet *));
-void in6_createmkludge __P((struct ifnet *));
-void in6_purgemkludge __P((struct ifnet *));
-struct in6_ifaddr *in6ifa_ifpforlinklocal __P((struct ifnet *, int));
-struct in6_ifaddr *in6ifa_ifpwithaddr __P((struct ifnet *,
- struct in6_addr *));
-char *ip6_sprintf __P((struct in6_addr *));
-int in6_addr2scopeid __P((struct ifnet *, struct in6_addr *));
-int in6_matchlen __P((struct in6_addr *, struct in6_addr *));
-int in6_are_prefix_equal __P((struct in6_addr *p1, struct in6_addr *p2,
- int len));
-void in6_prefixlen2mask __P((struct in6_addr *maskp, int len));
-int in6_prefix_ioctl __P((struct socket *so, u_long cmd, caddr_t data,
- struct ifnet *ifp));
-int in6_prefix_add_ifid __P((int iilen, struct in6_ifaddr *ia));
-void in6_prefix_remove_ifid __P((int iilen, struct in6_ifaddr *ia));
-void in6_purgeprefix __P((struct ifnet *));
+int in6_ifinit(struct ifnet *,
+ struct in6_ifaddr *, struct sockaddr_in6 *, int);
+struct in6_multi *in6_addmulti(struct in6_addr *, struct ifnet *,
+ int *);
+void in6_delmulti(struct in6_multi *);
+void in6_ifscrub(struct ifnet *, struct in6_ifaddr *);
+extern int in6_ifindex2scopeid(int);
+extern int in6_mask2len(struct in6_addr *);
+extern void in6_len2mask(struct in6_addr *, int);
+int in6_control(struct socket *,
+ u_long, caddr_t, struct ifnet *, struct proc *);
+void in6_purgeaddr(struct ifaddr *, struct ifnet *);
+void in6_savemkludge(struct in6_ifaddr *);
+void in6_setmaxmtu(void);
+void in6_restoremkludge(struct in6_ifaddr *, struct ifnet *);
+void in6_createmkludge(struct ifnet *);
+void in6_purgemkludge(struct ifnet *);
+struct in6_ifaddr *in6ifa_ifpforlinklocal(struct ifnet *, int);
+struct in6_ifaddr *in6ifa_ifpwithaddr(struct ifnet *,
+ struct in6_addr *);
+char *ip6_sprintf(struct in6_addr *);
+int in6_addr2scopeid(struct ifnet *, struct in6_addr *);
+int in6_matchlen(struct in6_addr *, struct in6_addr *);
+int in6_are_prefix_equal(struct in6_addr *p1, struct in6_addr *p2,
+ int len);
+void in6_prefixlen2mask(struct in6_addr *maskp, int len);
+int in6_prefix_ioctl(struct socket *so, u_long cmd, caddr_t data,
+ struct ifnet *ifp);
+int in6_prefix_add_ifid(int iilen, struct in6_ifaddr *ia);
+void in6_prefix_remove_ifid(int iilen, struct in6_ifaddr *ia);
+void in6_purgeprefix(struct ifnet *);
struct inpcb;
-int in6_embedscope __P((struct in6_addr *, const struct sockaddr_in6 *,
- struct inpcb *, struct ifnet **));
-int in6_recoverscope __P((struct sockaddr_in6 *, const struct in6_addr *,
- struct ifnet *));
-void in6_clearscope __P((struct in6_addr *));
+int in6_embedscope(struct in6_addr *, const struct sockaddr_in6 *,
+ struct inpcb *, struct ifnet **);
+int in6_recoverscope(struct sockaddr_in6 *, const struct in6_addr *,
+ struct ifnet *);
+void in6_clearscope(struct in6_addr *);
#endif /* _KERNEL */
#endif /* _NETINET6_IN6_VAR_H_ */
diff --git a/sys/netinet6/ip6_input.c b/sys/netinet6/ip6_input.c
index 19f14b53fc5..b00665a0e44 100644
--- a/sys/netinet6/ip6_input.c
+++ b/sys/netinet6/ip6_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip6_input.c,v 1.40 2002/01/21 05:33:14 itojun Exp $ */
+/* $OpenBSD: ip6_input.c,v 1.41 2002/03/14 01:27:12 millert Exp $ */
/* $KAME: ip6_input.c,v 1.188 2001/03/29 05:34:31 itojun Exp $ */
/*
@@ -128,11 +128,11 @@ int ip6_sourcecheck_interval; /* XXX */
struct ip6stat ip6stat;
-static void ip6_init2 __P((void *));
+static void ip6_init2(void *);
-static int ip6_hopopts_input __P((u_int32_t *, u_int32_t *, struct mbuf **, int *));
+static int ip6_hopopts_input(u_int32_t *, u_int32_t *, struct mbuf **, int *);
#ifdef PULLDOWN_TEST
-static struct mbuf *ip6_pullexthdr __P((struct mbuf *, size_t, int));
+static struct mbuf *ip6_pullexthdr(struct mbuf *, size_t, int);
#endif
/*
diff --git a/sys/netinet6/ip6_mroute.c b/sys/netinet6/ip6_mroute.c
index 5bca1582b3f..7ca2e148db2 100644
--- a/sys/netinet6/ip6_mroute.c
+++ b/sys/netinet6/ip6_mroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip6_mroute.c,v 1.18 2002/02/10 23:15:05 deraadt Exp $ */
+/* $OpenBSD: ip6_mroute.c,v 1.19 2002/03/14 01:27:12 millert Exp $ */
/* $KAME: ip6_mroute.c,v 1.45 2001/03/25 08:38:51 itojun Exp $ */
/*
@@ -80,15 +80,15 @@
#define M_HASCL(m) ((m)->m_flags & M_EXT)
-static int ip6_mdq __P((struct mbuf *, struct ifnet *, struct mf6c *));
-static void phyint_send __P((struct ip6_hdr *, struct mif6 *, struct mbuf *));
+static int ip6_mdq(struct mbuf *, struct ifnet *, struct mf6c *);
+static void phyint_send(struct ip6_hdr *, struct mif6 *, struct mbuf *);
-static int set_pim6 __P((int *));
-static int get_pim6 __P((struct mbuf *));
-static int socket_send __P((struct socket *, struct mbuf *,
- struct sockaddr_in6 *));
-static int register_send __P((struct ip6_hdr *, struct mif6 *,
- struct mbuf *));
+static int set_pim6(int *);
+static int get_pim6(struct mbuf *);
+static int socket_send(struct socket *, struct mbuf *,
+ struct sockaddr_in6 *);
+static int register_send(struct ip6_hdr *, struct mif6 *,
+ struct mbuf *);
/*
* Globals. All but ip6_mrouter, ip6_mrtproto and mrt6stat could be static,
@@ -115,7 +115,7 @@ u_int mrt6debug = 0; /* debug level */
#define DEBUG_PIM 0x40
#endif
-static void expire_upcalls __P((void *));
+static void expire_upcalls(void *);
#define EXPIRE_TIMEOUT (hz / 4) /* 4x / second */
#define UPCALL_EXPIRE 6 /* number of timeouts */
@@ -208,13 +208,13 @@ u_long upcall_data[UPCALL_MAX + 1];
static void collate();
#endif /* UPCALL_TIMING */
-static int get_sg_cnt __P((struct sioc_sg_req6 *));
-static int get_mif6_cnt __P((struct sioc_mif_req6 *));
-static int ip6_mrouter_init __P((struct socket *, struct mbuf *, int));
-static int add_m6if __P((struct mif6ctl *));
-static int del_m6if __P((mifi_t *));
-static int add_m6fc __P((struct mf6cctl *));
-static int del_m6fc __P((struct mf6cctl *));
+static int get_sg_cnt(struct sioc_sg_req6 *);
+static int get_mif6_cnt(struct sioc_mif_req6 *);
+static int ip6_mrouter_init(struct socket *, struct mbuf *, int);
+static int add_m6if(struct mif6ctl *);
+static int del_m6if(mifi_t *);
+static int add_m6fc(struct mf6cctl *);
+static int del_m6fc(struct mf6cctl *);
static struct timeout expire_upcalls_ch;
diff --git a/sys/netinet6/ip6_mroute.h b/sys/netinet6/ip6_mroute.h
index 45b9c0018f6..2cf0723218c 100644
--- a/sys/netinet6/ip6_mroute.h
+++ b/sys/netinet6/ip6_mroute.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip6_mroute.h,v 1.4 2001/02/16 08:12:30 itojun Exp $ */
+/* $OpenBSD: ip6_mroute.h,v 1.5 2002/03/14 01:27:12 millert Exp $ */
/* $KAME: ip6_mroute.h,v 1.17 2001/02/10 02:05:52 itojun Exp $ */
/*
@@ -268,10 +268,10 @@ struct rtdetq { /* XXX: rtdetq is also defined in ip_mroute.h */
#define MAX_UPQ6 4 /* max. no of pkts in upcall Q */
-int ip6_mrouter_set __P((int, struct socket *, struct mbuf *));
-int ip6_mrouter_get __P((int, struct socket *, struct mbuf **));
-int ip6_mrouter_done __P((void));
-int mrt6_ioctl __P((int, caddr_t));
+int ip6_mrouter_set(int, struct socket *, struct mbuf *);
+int ip6_mrouter_get(int, struct socket *, struct mbuf **);
+int ip6_mrouter_done(void);
+int mrt6_ioctl(int, caddr_t);
#endif /* _KERNEL */
#endif /* !_NETINET6_IP6_MROUTE_H_ */
diff --git a/sys/netinet6/ip6_output.c b/sys/netinet6/ip6_output.c
index d2c720a80a6..947dbf7649e 100644
--- a/sys/netinet6/ip6_output.c
+++ b/sys/netinet6/ip6_output.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip6_output.c,v 1.57 2002/01/21 05:33:14 itojun Exp $ */
+/* $OpenBSD: ip6_output.c,v 1.58 2002/03/14 01:27:12 millert Exp $ */
/* $KAME: ip6_output.c,v 1.172 2001/03/25 09:55:56 itojun Exp $ */
/*
@@ -102,7 +102,7 @@
#include <netinet/tcp.h>
#include <net/pfkeyv2.h>
-extern u_int8_t get_sa_require __P((struct inpcb *));
+extern u_int8_t get_sa_require(struct inpcb *);
extern int ipsec_auth_default_level;
extern int ipsec_esp_trans_default_level;
@@ -118,15 +118,15 @@ struct ip6_exthdrs {
struct mbuf *ip6e_dest2;
};
-static int ip6_pcbopts __P((struct ip6_pktopts **, struct mbuf *,
- struct socket *));
-static int ip6_setmoptions __P((int, struct ip6_moptions **, struct mbuf *));
-static int ip6_getmoptions __P((int, struct ip6_moptions *, struct mbuf **));
-static int ip6_copyexthdr __P((struct mbuf **, caddr_t, int));
-static int ip6_insertfraghdr __P((struct mbuf *, struct mbuf *, int,
- struct ip6_frag **));
-static int ip6_insert_jumboopt __P((struct ip6_exthdrs *, u_int32_t));
-static int ip6_splithdr __P((struct mbuf *, struct ip6_exthdrs *));
+static int ip6_pcbopts(struct ip6_pktopts **, struct mbuf *,
+ struct socket *);
+static int ip6_setmoptions(int, struct ip6_moptions **, struct mbuf *);
+static int ip6_getmoptions(int, struct ip6_moptions *, struct mbuf **);
+static int ip6_copyexthdr(struct mbuf **, caddr_t, int);
+static int ip6_insertfraghdr(struct mbuf *, struct mbuf *, int,
+ struct ip6_frag **);
+static int ip6_insert_jumboopt(struct ip6_exthdrs *, u_int32_t);
+static int ip6_splithdr(struct mbuf *, struct ip6_exthdrs *);
/*
* IP6 output. The packet in mbuf chain m contains a skeletal IP6
diff --git a/sys/netinet6/ip6_var.h b/sys/netinet6/ip6_var.h
index 46ed8c29738..a762113b178 100644
--- a/sys/netinet6/ip6_var.h
+++ b/sys/netinet6/ip6_var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip6_var.h,v 1.13 2001/05/28 05:28:48 angelos Exp $ */
+/* $OpenBSD: ip6_var.h,v 1.14 2002/03/14 01:27:12 millert Exp $ */
/* $KAME: ip6_var.h,v 1.33 2000/06/11 14:59:20 jinmei Exp $ */
/*
@@ -231,50 +231,50 @@ extern int ip6_auto_flowlabel;
struct in6pcb;
struct inpcb;
-int icmp6_ctloutput __P((int, struct socket *, int, int, struct mbuf **));
+int icmp6_ctloutput(int, struct socket *, int, int, struct mbuf **);
-void ip6_init __P((void));
-void ip6intr __P((void));
-void ip6_input __P((struct mbuf *));
-void ip6_freemoptions __P((struct ip6_moptions *));
-int ip6_unknown_opt __P((u_int8_t *, struct mbuf *, int));
-char * ip6_get_prevhdr __P((struct mbuf *, int));
-int ip6_nexthdr __P((struct mbuf *, int, int, int *));
-int ip6_lasthdr __P((struct mbuf *, int, int, int *));
-int ip6_mforward __P((struct ip6_hdr *, struct ifnet *, struct mbuf *));
-int ip6_process_hopopts __P((struct mbuf *, u_int8_t *, int, u_int32_t *,
- u_int32_t *));
-void ip6_savecontrol __P((struct inpcb *, struct mbuf **, struct ip6_hdr *,
- struct mbuf *));
-int ip6_sysctl __P((int *, u_int, void *, size_t *, void *, size_t));
+void ip6_init(void);
+void ip6intr(void);
+void ip6_input(struct mbuf *);
+void ip6_freemoptions(struct ip6_moptions *);
+int ip6_unknown_opt(u_int8_t *, struct mbuf *, int);
+char * ip6_get_prevhdr(struct mbuf *, int);
+int ip6_nexthdr(struct mbuf *, int, int, int *);
+int ip6_lasthdr(struct mbuf *, int, int, int *);
+int ip6_mforward(struct ip6_hdr *, struct ifnet *, struct mbuf *);
+int ip6_process_hopopts(struct mbuf *, u_int8_t *, int, u_int32_t *,
+ u_int32_t *);
+void ip6_savecontrol(struct inpcb *, struct mbuf **, struct ip6_hdr *,
+ struct mbuf *);
+int ip6_sysctl(int *, u_int, void *, size_t *, void *, size_t);
-void ip6_forward __P((struct mbuf *, int));
+void ip6_forward(struct mbuf *, int);
-void ip6_mloopback __P((struct ifnet *, struct mbuf *, struct sockaddr_in6 *));
-int ip6_output __P((struct mbuf *, struct ip6_pktopts *,
+void ip6_mloopback(struct ifnet *, struct mbuf *, struct sockaddr_in6 *);
+int ip6_output(struct mbuf *, struct ip6_pktopts *,
struct route_in6 *, int,
- struct ip6_moptions *, struct ifnet **));
-int ip6_ctloutput __P((int, struct socket *, int, int, struct mbuf **));
-int ip6_setpktoptions __P((struct mbuf *, struct ip6_pktopts *, int));
-int ip6_optlen __P((struct inpcb *));
+ struct ip6_moptions *, struct ifnet **);
+int ip6_ctloutput(int, struct socket *, int, int, struct mbuf **);
+int ip6_setpktoptions(struct mbuf *, struct ip6_pktopts *, int);
+int ip6_optlen(struct inpcb *);
-int route6_input __P((struct mbuf **, int *, int));
+int route6_input(struct mbuf **, int *, int);
-void frag6_init __P((void));
-int frag6_input __P((struct mbuf **, int *, int));
-void frag6_slowtimo __P((void));
-void frag6_drain __P((void));
+void frag6_init(void);
+int frag6_input(struct mbuf **, int *, int);
+void frag6_slowtimo(void);
+void frag6_drain(void);
-void rip6_init __P((void));
-int rip6_input __P((struct mbuf **mp, int *offp, int proto));
-void rip6_ctlinput __P((int, struct sockaddr *, void *));
-int rip6_ctloutput __P((int, struct socket *, int, int, struct mbuf **));
-int rip6_output __P((struct mbuf *, ...));
-int rip6_usrreq __P((struct socket *,
- int, struct mbuf *, struct mbuf *, struct mbuf *, struct proc *));
+void rip6_init(void);
+int rip6_input(struct mbuf **mp, int *offp, int proto);
+void rip6_ctlinput(int, struct sockaddr *, void *);
+int rip6_ctloutput(int, struct socket *, int, int, struct mbuf **);
+int rip6_output(struct mbuf *, ...);
+int rip6_usrreq(struct socket *,
+ int, struct mbuf *, struct mbuf *, struct mbuf *, struct proc *);
-int dest6_input __P((struct mbuf **, int *, int));
-int none_input __P((struct mbuf **, int *, int));
+int dest6_input(struct mbuf **, int *, int);
+int none_input(struct mbuf **, int *, int);
#endif /* _KERNEL */
#endif /* !_NETINET6_IP6_VAR_H_ */
diff --git a/sys/netinet6/ip6protosw.h b/sys/netinet6/ip6protosw.h
index 1dbe69fb175..cde52d405ba 100644
--- a/sys/netinet6/ip6protosw.h
+++ b/sys/netinet6/ip6protosw.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip6protosw.h,v 1.4 2001/02/16 16:00:58 itojun Exp $ */
+/* $OpenBSD: ip6protosw.h,v 1.5 2002/03/14 01:27:12 millert Exp $ */
/* $KAME: ip6protosw.h,v 1.22 2001/02/08 18:02:08 itojun Exp $ */
/*
@@ -122,32 +122,22 @@ struct ip6protosw {
short pr_flags; /* see below */
/* protocol-protocol hooks */
- int (*pr_input) /* input to protocol (from below) */
- __P((struct mbuf **, int *, int));
- int (*pr_output) /* output to protocol (from above) */
- __P((struct mbuf *, ...));
- void (*pr_ctlinput) /* control input (from below) */
- __P((int, struct sockaddr *, void *));
- int (*pr_ctloutput) /* control output (from above) */
- __P((int, struct socket *, int, int, struct mbuf **));
+ int (*pr_input) /* input to protocol (from below) */(struct mbuf **, int *, int);
+ int (*pr_output) /* output to protocol (from above) */(struct mbuf *, ...);
+ void (*pr_ctlinput) /* control input (from below) */(int, struct sockaddr *, void *);
+ int (*pr_ctloutput) /* control output (from above) */(int, struct socket *, int, int, struct mbuf **);
/* user-protocol hook */
- int (*pr_usrreq) /* user request: see list below */
- __P((struct socket *, int, struct mbuf *,
- struct mbuf *, struct mbuf *, struct proc *));
+ int (*pr_usrreq) /* user request: see list below */(struct socket *, int, struct mbuf *,
+ struct mbuf *, struct mbuf *, struct proc *);
/* utility hooks */
- void (*pr_init) /* initialization hook */
- __P((void));
+ void (*pr_init) /* initialization hook */(void);
- void (*pr_fasttimo) /* fast timeout (200ms) */
- __P((void));
- void (*pr_slowtimo) /* slow timeout (500ms) */
- __P((void));
- void (*pr_drain) /* flush any excess space possible */
- __P((void));
- int (*pr_sysctl) /* sysctl for protocol */
- __P((int *, u_int, void *, size_t *, void *, size_t));
+ void (*pr_fasttimo) /* fast timeout (200ms) */(void);
+ void (*pr_slowtimo) /* slow timeout (500ms) */(void);
+ void (*pr_drain) /* flush any excess space possible */(void);
+ int (*pr_sysctl) /* sysctl for protocol */(int *, u_int, void *, size_t *, void *, size_t);
};
#endif /* !_NETINET6_IP6PROTOSW_H_ */
diff --git a/sys/netinet6/mld6.c b/sys/netinet6/mld6.c
index 4d8e433165d..cc53bf4e7c4 100644
--- a/sys/netinet6/mld6.c
+++ b/sys/netinet6/mld6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mld6.c,v 1.12 2002/01/08 04:29:21 itojun Exp $ */
+/* $OpenBSD: mld6.c,v 1.13 2002/03/14 01:27:12 millert Exp $ */
/* $KAME: mld6.c,v 1.26 2001/02/16 14:50:35 itojun Exp $ */
/*
@@ -104,7 +104,7 @@ static int mld6_timers_are_running;
static struct in6_addr mld6_all_nodes_linklocal = IN6ADDR_LINKLOCAL_ALLNODES_INIT;
static struct in6_addr mld6_all_routers_linklocal = IN6ADDR_LINKLOCAL_ALLROUTERS_INIT;
-static void mld6_sendpkt __P((struct in6_multi *, int, const struct in6_addr *));
+static void mld6_sendpkt(struct in6_multi *, int, const struct in6_addr *);
void
mld6_init()
diff --git a/sys/netinet6/mld6_var.h b/sys/netinet6/mld6_var.h
index a6bf9f71523..991e294f427 100644
--- a/sys/netinet6/mld6_var.h
+++ b/sys/netinet6/mld6_var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: mld6_var.h,v 1.3 2001/02/16 08:48:06 itojun Exp $ */
+/* $OpenBSD: mld6_var.h,v 1.4 2002/03/14 01:27:12 millert Exp $ */
/* $KAME: mld6_var.h,v 1.4 2000/03/25 07:23:54 sumikawa Exp $ */
/*
@@ -43,11 +43,11 @@
#define MLD6_OTHERLISTENER 0
#define MLD6_IREPORTEDLAST 1
-void mld6_init __P((void));
-void mld6_input __P((struct mbuf *, int));
-void mld6_start_listening __P((struct in6_multi *));
-void mld6_stop_listening __P((struct in6_multi *));
-void mld6_fasttimeo __P((void));
+void mld6_init(void);
+void mld6_input(struct mbuf *, int);
+void mld6_start_listening(struct in6_multi *);
+void mld6_stop_listening(struct in6_multi *);
+void mld6_fasttimeo(void);
#endif /* _KERNEL */
#endif /* _NETINET6_MLD6_VAR_H_ */
diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c
index 89f1a7fb37f..c5c4e24467d 100644
--- a/sys/netinet6/nd6.c
+++ b/sys/netinet6/nd6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nd6.c,v 1.39 2001/12/07 09:16:07 itojun Exp $ */
+/* $OpenBSD: nd6.c,v 1.40 2002/03/14 01:27:12 millert Exp $ */
/* $KAME: nd6.c,v 1.151 2001/06/19 14:24:41 sumikawa Exp $ */
/*
@@ -108,7 +108,7 @@ struct nd_prhead nd_prefix = { 0 };
int nd6_recalc_reachtm_interval = ND6_RECALC_REACHTM_INTERVAL;
static struct sockaddr_in6 all1_sa;
-static void nd6_slowtimo __P((void *));
+static void nd6_slowtimo(void *);
struct timeout nd6_slowtimo_ch;
struct timeout nd6_timer_ch;
diff --git a/sys/netinet6/nd6.h b/sys/netinet6/nd6.h
index 2f99aa867cc..941cf134c3b 100644
--- a/sys/netinet6/nd6.h
+++ b/sys/netinet6/nd6.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: nd6.h,v 1.15 2002/01/23 19:16:09 fgsch Exp $ */
+/* $OpenBSD: nd6.h,v 1.16 2002/03/14 01:27:12 millert Exp $ */
/* $KAME: nd6.h,v 1.52 2001/02/19 04:40:37 itojun Exp $ */
/*
@@ -282,61 +282,61 @@ union nd_opts {
/* XXX: need nd6_var.h?? */
/* nd6.c */
-void nd6_init __P((void));
-void nd6_ifattach __P((struct ifnet *));
-int nd6_is_addr_neighbor __P((struct sockaddr_in6 *, struct ifnet *));
-void nd6_option_init __P((void *, int, union nd_opts *));
-struct nd_opt_hdr *nd6_option __P((union nd_opts *));
-int nd6_options __P((union nd_opts *));
-struct rtentry *nd6_lookup __P((struct in6_addr *, int, struct ifnet *));
-void nd6_setmtu __P((struct ifnet *));
-void nd6_timer __P((void *));
-void nd6_purge __P((struct ifnet *));
-struct llinfo_nd6 *nd6_free __P((struct rtentry *));
-void nd6_nud_hint __P((struct rtentry *, struct in6_addr *, int));
-int nd6_resolve __P((struct ifnet *, struct rtentry *,
- struct mbuf *, struct sockaddr *, u_char *));
-void nd6_rtrequest __P((int, struct rtentry *, struct rt_addrinfo *));
-void nd6_p2p_rtrequest __P((int, struct rtentry *, struct rt_addrinfo *));
-int nd6_ioctl __P((u_long, caddr_t, struct ifnet *));
-struct rtentry *nd6_cache_lladdr __P((struct ifnet *, struct in6_addr *,
- char *, int, int, int));
+void nd6_init(void);
+void nd6_ifattach(struct ifnet *);
+int nd6_is_addr_neighbor(struct sockaddr_in6 *, struct ifnet *);
+void nd6_option_init(void *, int, union nd_opts *);
+struct nd_opt_hdr *nd6_option(union nd_opts *);
+int nd6_options(union nd_opts *);
+struct rtentry *nd6_lookup(struct in6_addr *, int, struct ifnet *);
+void nd6_setmtu(struct ifnet *);
+void nd6_timer(void *);
+void nd6_purge(struct ifnet *);
+struct llinfo_nd6 *nd6_free(struct rtentry *);
+void nd6_nud_hint(struct rtentry *, struct in6_addr *, int);
+int nd6_resolve(struct ifnet *, struct rtentry *,
+ struct mbuf *, struct sockaddr *, u_char *);
+void nd6_rtrequest(int, struct rtentry *, struct rt_addrinfo *);
+void nd6_p2p_rtrequest(int, struct rtentry *, struct rt_addrinfo *);
+int nd6_ioctl(u_long, caddr_t, struct ifnet *);
+struct rtentry *nd6_cache_lladdr(struct ifnet *, struct in6_addr *,
+ char *, int, int, int);
/* for test */
-int nd6_output __P((struct ifnet *, struct ifnet *, struct mbuf *,
- struct sockaddr_in6 *, struct rtentry *));
-int nd6_storelladdr __P((struct ifnet *, struct rtentry *, struct mbuf *,
- struct sockaddr *, u_char *));
+int nd6_output(struct ifnet *, struct ifnet *, struct mbuf *,
+ struct sockaddr_in6 *, struct rtentry *);
+int nd6_storelladdr(struct ifnet *, struct rtentry *, struct mbuf *,
+ struct sockaddr *, u_char *);
/* nd6_nbr.c */
-void nd6_na_input __P((struct mbuf *, int, int));
-void nd6_na_output __P((struct ifnet *, struct in6_addr *,
- struct in6_addr *, u_long, int, struct sockaddr *));
-void nd6_ns_input __P((struct mbuf *, int, int));
-void nd6_ns_output __P((struct ifnet *, struct in6_addr *,
- struct in6_addr *, struct llinfo_nd6 *, int));
-caddr_t nd6_ifptomac __P((struct ifnet *));
-void nd6_dad_start __P((struct ifaddr *, int *));
-void nd6_dad_stop __P((struct ifaddr *));
-void nd6_dad_duplicated __P((struct ifaddr *));
+void nd6_na_input(struct mbuf *, int, int);
+void nd6_na_output(struct ifnet *, struct in6_addr *,
+ struct in6_addr *, u_long, int, struct sockaddr *);
+void nd6_ns_input(struct mbuf *, int, int);
+void nd6_ns_output(struct ifnet *, struct in6_addr *,
+ struct in6_addr *, struct llinfo_nd6 *, int);
+caddr_t nd6_ifptomac(struct ifnet *);
+void nd6_dad_start(struct ifaddr *, int *);
+void nd6_dad_stop(struct ifaddr *);
+void nd6_dad_duplicated(struct ifaddr *);
/* nd6_rtr.c */
-void nd6_rs_input __P((struct mbuf *, int, int));
-void nd6_ra_input __P((struct mbuf *, int, int));
-void prelist_del __P((struct nd_prefix *));
-void defrouter_addreq __P((struct nd_defrouter *));
-void defrouter_delreq __P((struct nd_defrouter *, int));
-void defrouter_select __P((void));
-void defrtrlist_del __P((struct nd_defrouter *));
-void prelist_remove __P((struct nd_prefix *));
-int prelist_update __P((struct nd_prefix *, struct nd_defrouter *,
- struct mbuf *));
-void pfxlist_onlink_check __P((void));
-struct nd_defrouter *defrouter_lookup __P((struct in6_addr *,
- struct ifnet *));
-int in6_ifdel __P((struct ifnet *, struct in6_addr *));
-int in6_init_prefix_ltimes __P((struct nd_prefix *ndpr));
-void rt6_flush __P((struct in6_addr *, struct ifnet *));
-int nd6_setdefaultiface __P((int));
+void nd6_rs_input(struct mbuf *, int, int);
+void nd6_ra_input(struct mbuf *, int, int);
+void prelist_del(struct nd_prefix *);
+void defrouter_addreq(struct nd_defrouter *);
+void defrouter_delreq(struct nd_defrouter *, int);
+void defrouter_select(void);
+void defrtrlist_del(struct nd_defrouter *);
+void prelist_remove(struct nd_prefix *);
+int prelist_update(struct nd_prefix *, struct nd_defrouter *,
+ struct mbuf *);
+void pfxlist_onlink_check(void);
+struct nd_defrouter *defrouter_lookup(struct in6_addr *,
+ struct ifnet *);
+int in6_ifdel(struct ifnet *, struct in6_addr *);
+int in6_init_prefix_ltimes(struct nd_prefix *ndpr);
+void rt6_flush(struct in6_addr *, struct ifnet *);
+int nd6_setdefaultiface(int);
#endif /* _KERNEL */
diff --git a/sys/netinet6/nd6_nbr.c b/sys/netinet6/nd6_nbr.c
index 60812d515d3..0ecfa5c974b 100644
--- a/sys/netinet6/nd6_nbr.c
+++ b/sys/netinet6/nd6_nbr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nd6_nbr.c,v 1.19 2001/12/07 09:16:07 itojun Exp $ */
+/* $OpenBSD: nd6_nbr.c,v 1.20 2002/03/14 01:27:12 millert Exp $ */
/* $KAME: nd6_nbr.c,v 1.61 2001/02/10 16:06:14 jinmei Exp $ */
/*
@@ -62,13 +62,13 @@
#define SDL(s) ((struct sockaddr_dl *)s)
struct dadq;
-static struct dadq *nd6_dad_find __P((struct ifaddr *));
-static void nd6_dad_starttimer __P((struct dadq *, int));
-static void nd6_dad_stoptimer __P((struct dadq *));
-static void nd6_dad_timer __P((struct ifaddr *));
-static void nd6_dad_ns_output __P((struct dadq *, struct ifaddr *));
-static void nd6_dad_ns_input __P((struct ifaddr *));
-static void nd6_dad_na_input __P((struct ifaddr *));
+static struct dadq *nd6_dad_find(struct ifaddr *);
+static void nd6_dad_starttimer(struct dadq *, int);
+static void nd6_dad_stoptimer(struct dadq *);
+static void nd6_dad_timer(struct ifaddr *);
+static void nd6_dad_ns_output(struct dadq *, struct ifaddr *);
+static void nd6_dad_ns_input(struct ifaddr *);
+static void nd6_dad_na_input(struct ifaddr *);
static int dad_ignore_ns = 0; /* ignore NS in DAD - specwise incorrect*/
static int dad_maxtry = 15; /* max # of *tries* to transmit DAD packet */
@@ -982,7 +982,7 @@ nd6_dad_starttimer(dp, ticks)
int ticks;
{
- timeout_set(&dp->dad_timer_ch, (void (*) __P((void *)))nd6_dad_timer,
+ timeout_set(&dp->dad_timer_ch, (void (*)(void *))nd6_dad_timer,
(void *)dp->dad_ifa);
timeout_add(&dp->dad_timer_ch, ticks);
}
diff --git a/sys/netinet6/nd6_rtr.c b/sys/netinet6/nd6_rtr.c
index d7251faf748..61156562e4a 100644
--- a/sys/netinet6/nd6_rtr.c
+++ b/sys/netinet6/nd6_rtr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nd6_rtr.c,v 1.12 2001/12/07 09:16:07 itojun Exp $ */
+/* $OpenBSD: nd6_rtr.c,v 1.13 2002/03/14 01:27:12 millert Exp $ */
/* $KAME: nd6_rtr.c,v 1.97 2001/02/07 11:09:13 itojun Exp $ */
/*
@@ -58,25 +58,25 @@
#define SDL(s) ((struct sockaddr_dl *)s)
-static struct nd_defrouter *defrtrlist_update __P((struct nd_defrouter *));
-static int prelist_add __P((struct nd_prefix *, struct nd_defrouter *));
-static struct nd_prefix *prefix_lookup __P((struct nd_prefix *));
-static struct in6_ifaddr *in6_ifadd __P((struct ifnet *, struct in6_addr *,
- struct in6_addr *, int));
-static struct nd_pfxrouter *pfxrtr_lookup __P((struct nd_prefix *,
- struct nd_defrouter *));
-static void pfxrtr_add __P((struct nd_prefix *, struct nd_defrouter *));
-static void pfxrtr_del __P((struct nd_pfxrouter *));
-static struct nd_pfxrouter *find_pfxlist_reachable_router __P((struct nd_prefix *));
-static void nd6_detach_prefix __P((struct nd_prefix *));
-static void nd6_attach_prefix __P((struct nd_prefix *));
-static void defrouter_addifreq __P((struct ifnet *));
-
-static void in6_init_address_ltimes __P((struct nd_prefix *ndpr,
+static struct nd_defrouter *defrtrlist_update(struct nd_defrouter *);
+static int prelist_add(struct nd_prefix *, struct nd_defrouter *);
+static struct nd_prefix *prefix_lookup(struct nd_prefix *);
+static struct in6_ifaddr *in6_ifadd(struct ifnet *, struct in6_addr *,
+ struct in6_addr *, int);
+static struct nd_pfxrouter *pfxrtr_lookup(struct nd_prefix *,
+ struct nd_defrouter *);
+static void pfxrtr_add(struct nd_prefix *, struct nd_defrouter *);
+static void pfxrtr_del(struct nd_pfxrouter *);
+static struct nd_pfxrouter *find_pfxlist_reachable_router(struct nd_prefix *);
+static void nd6_detach_prefix(struct nd_prefix *);
+static void nd6_attach_prefix(struct nd_prefix *);
+static void defrouter_addifreq(struct ifnet *);
+
+static void in6_init_address_ltimes(struct nd_prefix *ndpr,
struct in6_addrlifetime *lt6,
- int update_vltime));
+ int update_vltime);
-static int rt6_deleteroute __P((struct radix_node *, void *));
+static int rt6_deleteroute(struct radix_node *, void *);
extern int nd6_recalc_reachtm_interval;
diff --git a/sys/netinet6/pim6_var.h b/sys/netinet6/pim6_var.h
index 88cd22ed50b..da25a48bf23 100644
--- a/sys/netinet6/pim6_var.h
+++ b/sys/netinet6/pim6_var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: pim6_var.h,v 1.3 2001/02/16 08:48:06 itojun Exp $ */
+/* $OpenBSD: pim6_var.h,v 1.4 2002/03/14 01:27:12 millert Exp $ */
/* $KAME: pim6_var.h,v 1.8 2000/06/06 08:07:43 jinmei Exp $ */
/*
@@ -54,7 +54,7 @@ struct pim6stat {
#if (defined(KERNEL)) || (defined(_KERNEL))
extern struct pim6stat pim6stat;
-int pim6_input __P((struct mbuf **, int*, int));
+int pim6_input(struct mbuf **, int*, int);
#endif /* KERNEL */
/*
diff --git a/sys/netinet6/raw_ip6.c b/sys/netinet6/raw_ip6.c
index d50d6d8009d..1c7821e371e 100644
--- a/sys/netinet6/raw_ip6.c
+++ b/sys/netinet6/raw_ip6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: raw_ip6.c,v 1.7 2001/12/07 09:16:07 itojun Exp $ */
+/* $OpenBSD: raw_ip6.c,v 1.8 2002/03/14 01:27:12 millert Exp $ */
/* $KAME: raw_ip6.c,v 1.69 2001/03/04 15:55:44 itojun Exp $ */
/*
@@ -259,7 +259,7 @@ rip6_ctlinput(cmd, sa, d)
struct ip6ctlparam *ip6cp = NULL;
const struct sockaddr_in6 *sa6_src = NULL;
void *cmdarg;
- void (*notify) __P((struct in6pcb *, int)) = in6_rtchange;
+ void (*notify)(struct in6pcb *, int) = in6_rtchange;
int nxt;
if (sa->sa_family != AF_INET6 ||
diff --git a/sys/netinet6/route6.c b/sys/netinet6/route6.c
index b941ba5f745..2bbfbc00ca7 100644
--- a/sys/netinet6/route6.c
+++ b/sys/netinet6/route6.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route6.c,v 1.5 2001/02/16 08:48:07 itojun Exp $ */
+/* $OpenBSD: route6.c,v 1.6 2002/03/14 01:27:12 millert Exp $ */
/* $KAME: route6.c,v 1.22 2000/12/03 00:54:00 itojun Exp $ */
/*
@@ -44,8 +44,8 @@
#include <netinet/icmp6.h>
-static int ip6_rthdr0 __P((struct mbuf *, struct ip6_hdr *,
- struct ip6_rthdr0 *));
+static int ip6_rthdr0(struct mbuf *, struct ip6_hdr *,
+ struct ip6_rthdr0 *);
int
route6_input(mp, offp, proto)