summaryrefslogtreecommitdiffstats
path: root/sys/netinet
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-03-19 21:25:46 +0000
committeralfred <alfred@FreeBSD.org>2002-03-19 21:25:46 +0000
commit357e37e023059920b1f80494e489797e2f69a3dd (patch)
tree7ea68f3b5c452a55df6c05b903dae3ac1e8f71f9 /sys/netinet
parentca2e5c188ee68045b54a86bfefcfd4a75e174221 (diff)
downloadFreeBSD-src-357e37e023059920b1f80494e489797e2f69a3dd.zip
FreeBSD-src-357e37e023059920b1f80494e489797e2f69a3dd.tar.gz
Remove __P.
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/icmp6.h20
-rw-r--r--sys/netinet/icmp_var.h2
-rw-r--r--sys/netinet/if_atm.h6
-rw-r--r--sys/netinet/if_ether.c18
-rw-r--r--sys/netinet/if_ether.h6
-rw-r--r--sys/netinet/if_fddi.h8
-rw-r--r--sys/netinet/igmp.c4
-rw-r--r--sys/netinet/igmp_var.h12
-rw-r--r--sys/netinet/in.c16
-rw-r--r--sys/netinet/in.h18
-rw-r--r--sys/netinet/in_gif.h6
-rw-r--r--sys/netinet/in_pcb.c2
-rw-r--r--sys/netinet/in_pcb.h44
-rw-r--r--sys/netinet/in_proto.c2
-rw-r--r--sys/netinet/in_rmx.c2
-rw-r--r--sys/netinet/in_systm.h2
-rw-r--r--sys/netinet/in_var.h22
-rw-r--r--sys/netinet/ip_ecn.h4
-rw-r--r--sys/netinet/ip_encap.c10
-rw-r--r--sys/netinet/ip_encap.h22
-rw-r--r--sys/netinet/ip_fw.h2
-rw-r--r--sys/netinet/ip_icmp.c8
-rw-r--r--sys/netinet/ip_icmp.h4
-rw-r--r--sys/netinet/ip_id.c6
-rw-r--r--sys/netinet/ip_input.c14
-rw-r--r--sys/netinet/ip_mroute.c28
-rw-r--r--sys/netinet/ip_mroute.h8
-rw-r--r--sys/netinet/ip_output.c14
-rw-r--r--sys/netinet/ip_var.h64
-rw-r--r--sys/netinet/tcp_input.c14
-rw-r--r--sys/netinet/tcp_reass.c14
-rw-r--r--sys/netinet/tcp_subr.c8
-rw-r--r--sys/netinet/tcp_timer.h10
-rw-r--r--sys/netinet/tcp_timewait.c8
-rw-r--r--sys/netinet/tcp_usrreq.c14
-rw-r--r--sys/netinet/tcp_var.h55
-rw-r--r--sys/netinet/udp_usrreq.c14
-rw-r--r--sys/netinet/udp_var.h10
38 files changed, 260 insertions, 261 deletions
diff --git a/sys/netinet/icmp6.h b/sys/netinet/icmp6.h
index 756867e..7edf8e9 100644
--- a/sys/netinet/icmp6.h
+++ b/sys/netinet/icmp6.h
@@ -629,18 +629,18 @@ struct rtentry;
struct rttimer;
struct in6_multi;
# endif
-void icmp6_init __P((void));
-void icmp6_paramerror __P((struct mbuf *, int));
-void icmp6_error __P((struct mbuf *, int, int, int));
-int icmp6_input __P((struct mbuf **, int *, int));
-void icmp6_fasttimo __P((void));
-void icmp6_reflect __P((struct mbuf *, size_t));
-void icmp6_prepare __P((struct mbuf *));
-void icmp6_redirect_input __P((struct mbuf *, int));
-void icmp6_redirect_output __P((struct mbuf *, struct rtentry *));
+void icmp6_init(void);
+void icmp6_paramerror(struct mbuf *, int);
+void icmp6_error(struct mbuf *, int, int, int);
+int icmp6_input(struct mbuf **, int *, int);
+void icmp6_fasttimo(void);
+void icmp6_reflect(struct mbuf *, size_t);
+void icmp6_prepare(struct mbuf *);
+void icmp6_redirect_input(struct mbuf *, int);
+void icmp6_redirect_output(struct mbuf *, struct rtentry *);
struct ip6ctlparam;
-void icmp6_mtudisc_update __P((struct ip6ctlparam *, int));
+void icmp6_mtudisc_update(struct ip6ctlparam *, int);
/* XXX: is this the right place for these macros? */
#define icmp6_ifstat_inc(ifp, tag) \
diff --git a/sys/netinet/icmp_var.h b/sys/netinet/icmp_var.h
index 47d381e..92e23c4 100644
--- a/sys/netinet/icmp_var.h
+++ b/sys/netinet/icmp_var.h
@@ -78,7 +78,7 @@ struct icmpstat {
#ifdef _KERNEL
SYSCTL_DECL(_net_inet_icmp);
-extern int badport_bandlim __P((int));
+extern int badport_bandlim(int);
#define BANDLIM_UNLIMITED -1
#define BANDLIM_ICMP_UNREACH 0
#define BANDLIM_ICMP_ECHO 1
diff --git a/sys/netinet/if_atm.h b/sys/netinet/if_atm.h
index 8603825..b8cddf6 100644
--- a/sys/netinet/if_atm.h
+++ b/sys/netinet/if_atm.h
@@ -42,6 +42,6 @@ struct mbuf;
struct rtentry;
struct sockaddr;
-void atm_rtrequest __P((int, struct rtentry *, struct rt_addrinfo *));
-int atmresolve __P((struct rtentry *, struct mbuf *, struct sockaddr *,
- struct atm_pseudohdr *));
+void atm_rtrequest(int, struct rtentry *, struct rt_addrinfo *);
+int atmresolve(struct rtentry *, struct mbuf *, struct sockaddr *,
+ struct atm_pseudohdr *);
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c
index 5f0d356..68b2221 100644
--- a/sys/netinet/if_ether.c
+++ b/sys/netinet/if_ether.c
@@ -115,17 +115,17 @@ SYSCTL_INT(_net_link_ether_inet, OID_AUTO, useloopback, CTLFLAG_RW,
SYSCTL_INT(_net_link_ether_inet, OID_AUTO, proxyall, CTLFLAG_RW,
&arp_proxyall, 0, "");
-static void arp_init __P((void));
-static void arp_rtrequest __P((int, struct rtentry *, struct rt_addrinfo *));
-static void arprequest __P((struct ifnet *,
- struct in_addr *, struct in_addr *, u_char *));
-static void arpintr __P((void));
-static void arptfree __P((struct llinfo_arp *));
-static void arptimer __P((void *));
+static void arp_init(void);
+static void arp_rtrequest(int, struct rtentry *, struct rt_addrinfo *);
+static void arprequest(struct ifnet *,
+ struct in_addr *, struct in_addr *, u_char *);
+static void arpintr(void);
+static void arptfree(struct llinfo_arp *);
+static void arptimer(void *);
static struct llinfo_arp
- *arplookup __P((u_long, int, int));
+ *arplookup(u_long, int, int);
#ifdef INET
-static void in_arpinput __P((struct mbuf *));
+static void in_arpinput(struct mbuf *);
#endif
/*
diff --git a/sys/netinet/if_ether.h b/sys/netinet/if_ether.h
index 4c4516e..a61bbee 100644
--- a/sys/netinet/if_ether.h
+++ b/sys/netinet/if_ether.h
@@ -114,9 +114,9 @@ extern u_char ether_ipmulticast_min[ETHER_ADDR_LEN];
extern u_char ether_ipmulticast_max[ETHER_ADDR_LEN];
extern struct ifqueue arpintrq;
-int arpresolve __P((struct ifnet *, struct rtentry *, struct mbuf *,
- struct sockaddr *, u_char *, struct rtentry *));
-void arp_ifinit __P((struct ifnet *, struct ifaddr *));
+int arpresolve(struct ifnet *, struct rtentry *, struct mbuf *,
+ struct sockaddr *, u_char *, struct rtentry *);
+void arp_ifinit(struct ifnet *, struct ifaddr *);
#endif
#endif
diff --git a/sys/netinet/if_fddi.h b/sys/netinet/if_fddi.h
index 9f83882..cc9fea3 100644
--- a/sys/netinet/if_fddi.h
+++ b/sys/netinet/if_fddi.h
@@ -77,10 +77,10 @@ struct fddi_header {
#define fddi_delmulti ether_delmulti
#define fddi_sprintf ether_sprintf
-void fddi_ifattach __P((struct ifnet *));
-void fddi_input __P((struct ifnet *, struct fddi_header *, struct mbuf *));
-int fddi_output __P((struct ifnet *,
- struct mbuf *, struct sockaddr *, struct rtentry *));
+void fddi_ifattach(struct ifnet *);
+void fddi_input(struct ifnet *, struct fddi_header *, struct mbuf *);
+int fddi_output(struct ifnet *,
+ struct mbuf *, struct sockaddr *, struct rtentry *);
#endif
diff --git a/sys/netinet/igmp.c b/sys/netinet/igmp.c
index 68aeff8..9be72a5 100644
--- a/sys/netinet/igmp.c
+++ b/sys/netinet/igmp.c
@@ -74,7 +74,7 @@
static MALLOC_DEFINE(M_IGMP, "igmp", "igmp state");
static struct router_info *
- find_rti __P((struct ifnet *ifp));
+ find_rti(struct ifnet *ifp);
static struct igmpstat igmpstat;
@@ -87,7 +87,7 @@ static u_long igmp_all_rtrs_group;
static struct mbuf *router_alert;
static struct router_info *Head;
-static void igmp_sendpkt __P((struct in_multi *, int, unsigned long));
+static void igmp_sendpkt(struct in_multi *, int, unsigned long);
void
igmp_init()
diff --git a/sys/netinet/igmp_var.h b/sys/netinet/igmp_var.h
index d9c9490..d6451a7 100644
--- a/sys/netinet/igmp_var.h
+++ b/sys/netinet/igmp_var.h
@@ -85,12 +85,12 @@ struct igmpstat {
*/
#define IGMP_AGE_THRESHOLD 540
-void igmp_init __P((void));
-void igmp_input __P((struct mbuf *, int));
-void igmp_joingroup __P((struct in_multi *));
-void igmp_leavegroup __P((struct in_multi *));
-void igmp_fasttimo __P((void));
-void igmp_slowtimo __P((void));
+void igmp_init(void);
+void igmp_input(struct mbuf *, int);
+void igmp_joingroup(struct in_multi *);
+void igmp_leavegroup(struct in_multi *);
+void igmp_fasttimo(void);
+void igmp_slowtimo(void);
SYSCTL_DECL(_net_inet_igmp);
diff --git a/sys/netinet/in.c b/sys/netinet/in.c
index c582b8f..eb4877d 100644
--- a/sys/netinet/in.c
+++ b/sys/netinet/in.c
@@ -54,14 +54,14 @@
static MALLOC_DEFINE(M_IPMADDR, "in_multi", "internet multicast address");
-static int in_mask2len __P((struct in_addr *));
-static void in_len2mask __P((struct in_addr *, int));
-static int in_lifaddr_ioctl __P((struct socket *, u_long, caddr_t,
- struct ifnet *, struct thread *));
-
-static void in_socktrim __P((struct sockaddr_in *));
-static int in_ifinit __P((struct ifnet *,
- struct in_ifaddr *, struct sockaddr_in *, int));
+static int in_mask2len(struct in_addr *);
+static void in_len2mask(struct in_addr *, int);
+static int in_lifaddr_ioctl(struct socket *, u_long, caddr_t,
+ struct ifnet *, struct thread *);
+
+static void in_socktrim(struct sockaddr_in *);
+static int in_ifinit(struct ifnet *,
+ struct in_ifaddr *, struct sockaddr_in *, int);
static int subnetsarelocal = 0;
SYSCTL_INT(_net_inet_ip, OID_AUTO, subnets_are_local, CTLFLAG_RW,
diff --git a/sys/netinet/in.h b/sys/netinet/in.h
index 973d0af..190638c 100644
--- a/sys/netinet/in.h
+++ b/sys/netinet/in.h
@@ -488,11 +488,11 @@ struct ifnet; struct mbuf; /* forward declarations for Standard C */
#ifdef _KERNEL
-int in_broadcast __P((struct in_addr, struct ifnet *));
-int in_canforward __P((struct in_addr));
-int in_localaddr __P((struct in_addr));
-char *inet_ntoa __P((struct in_addr)); /* in libkern */
-char *inet_ntoa_r __P((struct in_addr ina, char *buf)); /* in libkern */
+int in_broadcast(struct in_addr, struct ifnet *);
+int in_canforward(struct in_addr);
+int in_localaddr(struct in_addr);
+char *inet_ntoa(struct in_addr); /* in libkern */
+char *inet_ntoa_r(struct in_addr ina, char *buf); /* in libkern */
#define satosin(sa) ((struct sockaddr_in *)(sa))
#define sintosa(sin) ((struct sockaddr *)(sin))
@@ -503,10 +503,10 @@ char *inet_ntoa_r __P((struct in_addr ina, char *buf)); /* in libkern */
#ifndef _BYTEORDER_PROTOTYPED
#define _BYTEORDER_PROTOTYPED
__BEGIN_DECLS
-__uint32_t htonl __P((__uint32_t));
-__uint16_t htons __P((__uint16_t));
-__uint32_t ntohl __P((__uint32_t));
-__uint16_t ntohs __P((__uint16_t));
+__uint32_t htonl(__uint32_t);
+__uint16_t htons(__uint16_t);
+__uint32_t ntohl(__uint32_t);
+__uint16_t ntohs(__uint16_t);
__END_DECLS
#endif
diff --git a/sys/netinet/in_gif.h b/sys/netinet/in_gif.h
index 36ed617..262d9ba 100644
--- a/sys/netinet/in_gif.h
+++ b/sys/netinet/in_gif.h
@@ -35,8 +35,8 @@
#define GIF_TTL 30
-void in_gif_input __P((struct mbuf *, int off));
-int in_gif_output __P((struct ifnet *, int, struct mbuf *, struct rtentry *));
-int gif_encapcheck4 __P((const struct mbuf *, int, int, void *));
+void in_gif_input(struct mbuf *, int off);
+int in_gif_output(struct ifnet *, int, struct mbuf *, struct rtentry *);
+int gif_encapcheck4(const struct mbuf *, int, int, void *);
#endif /*_NETINET_IN_GIF_H_*/
diff --git a/sys/netinet/in_pcb.c b/sys/netinet/in_pcb.c
index 7d5a745..ff124bc 100644
--- a/sys/netinet/in_pcb.c
+++ b/sys/netinet/in_pcb.c
@@ -655,7 +655,7 @@ in_pcbnotifyall(head, faddr, errno, notify)
struct inpcbhead *head;
struct in_addr faddr;
int errno;
- void (*notify) __P((struct inpcb *, int));
+ void (*notify)(struct inpcb *, int);
{
struct inpcb *inp, *ninp;
int s;
diff --git a/sys/netinet/in_pcb.h b/sys/netinet/in_pcb.h
index 187c677..92a9a22 100644
--- a/sys/netinet/in_pcb.h
+++ b/sys/netinet/in_pcb.h
@@ -312,31 +312,31 @@ extern int ipport_lastauto;
extern int ipport_hifirstauto;
extern int ipport_hilastauto;
-void in_pcbpurgeif0 __P((struct inpcb *, struct ifnet *));
-void in_losing __P((struct inpcb *));
-void in_rtchange __P((struct inpcb *, int));
-int in_pcballoc __P((struct socket *, struct inpcbinfo *, struct thread *));
-int in_pcbbind __P((struct inpcb *, struct sockaddr *, struct thread *));
-int in_pcbconnect __P((struct inpcb *, struct sockaddr *, struct thread *));
-void in_pcbdetach __P((struct inpcb *));
-void in_pcbdisconnect __P((struct inpcb *));
-int in_pcbinshash __P((struct inpcb *));
-int in_pcbladdr __P((struct inpcb *, struct sockaddr *,
- struct sockaddr_in **));
+void in_pcbpurgeif0(struct inpcb *, struct ifnet *);
+void in_losing(struct inpcb *);
+void in_rtchange(struct inpcb *, int);
+int in_pcballoc(struct socket *, struct inpcbinfo *, struct thread *);
+int in_pcbbind(struct inpcb *, struct sockaddr *, struct thread *);
+int in_pcbconnect(struct inpcb *, struct sockaddr *, struct thread *);
+void in_pcbdetach(struct inpcb *);
+void in_pcbdisconnect(struct inpcb *);
+int in_pcbinshash(struct inpcb *);
+int in_pcbladdr(struct inpcb *, struct sockaddr *,
+ struct sockaddr_in **);
struct inpcb *
- in_pcblookup_local __P((struct inpcbinfo *,
- struct in_addr, u_int, int));
+ in_pcblookup_local(struct inpcbinfo *,
+ struct in_addr, u_int, int);
struct inpcb *
- in_pcblookup_hash __P((struct inpcbinfo *,
+ in_pcblookup_hash(struct inpcbinfo *,
struct in_addr, u_int, struct in_addr, u_int,
- int, struct ifnet *));
-void in_pcbnotifyall __P((struct inpcbhead *, struct in_addr,
- int, void (*)(struct inpcb *, int)));
-void in_pcbrehash __P((struct inpcb *));
-int in_setpeeraddr __P((struct socket *so, struct sockaddr **nam));
-int in_setsockaddr __P((struct socket *so, struct sockaddr **nam));
-void in_pcbremlists __P((struct inpcb *inp));
-int prison_xinpcb __P((struct proc *p, struct inpcb *inp));
+ int, struct ifnet *);
+void in_pcbnotifyall(struct inpcbhead *, struct in_addr,
+ int, void (*)(struct inpcb *, int));
+void in_pcbrehash(struct inpcb *);
+int in_setpeeraddr(struct socket *so, struct sockaddr **nam);
+int in_setsockaddr(struct socket *so, struct sockaddr **nam);
+void in_pcbremlists(struct inpcb *inp);
+int prison_xinpcb(struct proc *p, struct inpcb *inp);
#endif /* _KERNEL */
#endif /* !_NETINET_IN_PCB_H_ */
diff --git a/sys/netinet/in_proto.c b/sys/netinet/in_proto.c
index f1a0934..b522652 100644
--- a/sys/netinet/in_proto.c
+++ b/sys/netinet/in_proto.c
@@ -201,7 +201,7 @@ struct protosw inetsw[] = {
},
};
-extern int in_inithead __P((void **, int));
+extern int in_inithead(void **, int);
struct domain inetdomain =
{ AF_INET, "internet", 0, 0, 0,
diff --git a/sys/netinet/in_rmx.c b/sys/netinet/in_rmx.c
index 59bbb8d..08052fb 100644
--- a/sys/netinet/in_rmx.c
+++ b/sys/netinet/in_rmx.c
@@ -56,7 +56,7 @@
#include <netinet/in_var.h>
#include <netinet/ip_var.h>
-extern int in_inithead __P((void **head, int off));
+extern int in_inithead(void **head, int off);
#define RTPRF_OURS RTF_PROTO3 /* set on routes we manage */
diff --git a/sys/netinet/in_systm.h b/sys/netinet/in_systm.h
index 13fa81d..4282752 100644
--- a/sys/netinet/in_systm.h
+++ b/sys/netinet/in_systm.h
@@ -56,7 +56,7 @@ typedef u_int32_t n_long; /* long as received from the net */
typedef u_int32_t n_time; /* ms since 00:00 GMT, byte rev */
#ifdef _KERNEL
-n_time iptime __P((void));
+n_time iptime(void);
#endif
#endif
diff --git a/sys/netinet/in_var.h b/sys/netinet/in_var.h
index d71dba0..2e17ee3 100644
--- a/sys/netinet/in_var.h
+++ b/sys/netinet/in_var.h
@@ -223,17 +223,17 @@ do { \
} while(0)
struct route;
-struct in_multi *in_addmulti __P((struct in_addr *, struct ifnet *));
-void in_delmulti __P((struct in_multi *));
-int in_control __P((struct socket *, u_long, caddr_t, struct ifnet *,
- struct thread *));
-void in_rtqdrain __P((void));
-void ip_input __P((struct mbuf *));
-int in_ifadown __P((struct ifaddr *ifa, int));
-void in_ifscrub __P((struct ifnet *, struct in_ifaddr *));
-int ipflow_fastforward __P((struct mbuf *));
-void ipflow_create __P((const struct route *, struct mbuf *));
-void ipflow_slowtimo __P((void));
+struct in_multi *in_addmulti(struct in_addr *, struct ifnet *);
+void in_delmulti(struct in_multi *);
+int in_control(struct socket *, u_long, caddr_t, struct ifnet *,
+ struct thread *);
+void in_rtqdrain(void);
+void ip_input(struct mbuf *);
+int in_ifadown(struct ifaddr *ifa, int);
+void in_ifscrub(struct ifnet *, struct in_ifaddr *);
+int ipflow_fastforward(struct mbuf *);
+void ipflow_create(const struct route *, struct mbuf *);
+void ipflow_slowtimo(void);
#endif /* _KERNEL */
diff --git a/sys/netinet/ip_ecn.h b/sys/netinet/ip_ecn.h
index 9aca731..1a38a48 100644
--- a/sys/netinet/ip_ecn.h
+++ b/sys/netinet/ip_ecn.h
@@ -44,6 +44,6 @@
#define ECN_NOCARE (-1) /* no consideration to ECN */
#ifdef _KERNEL
-extern void ip_ecn_ingress __P((int, u_int8_t *, const u_int8_t *));
-extern void ip_ecn_egress __P((int, const u_int8_t *, u_int8_t *));
+extern void ip_ecn_ingress(int, u_int8_t *, const u_int8_t *);
+extern void ip_ecn_egress(int, const u_int8_t *, u_int8_t *);
#endif
diff --git a/sys/netinet/ip_encap.c b/sys/netinet/ip_encap.c
index 74534fe..cdeb7ab 100644
--- a/sys/netinet/ip_encap.c
+++ b/sys/netinet/ip_encap.c
@@ -92,10 +92,10 @@
#include <sys/malloc.h>
static MALLOC_DEFINE(M_NETADDR, "Export Host", "Export host address structure");
-static void encap_add __P((struct encaptab *));
-static int mask_match __P((const struct encaptab *, const struct sockaddr *,
- const struct sockaddr *));
-static void encap_fillarg __P((struct mbuf *, const struct encaptab *));
+static void encap_add(struct encaptab *);
+static int mask_match(const struct encaptab *, const struct sockaddr *,
+ const struct sockaddr *);
+static void encap_fillarg(struct mbuf *, const struct encaptab *);
#ifndef LIST_HEAD_INITIALIZER
/* rely upon BSS initialization */
@@ -369,7 +369,7 @@ const struct encaptab *
encap_attach_func(af, proto, func, psw, arg)
int af;
int proto;
- int (*func) __P((const struct mbuf *, int, int, void *));
+ int (*func)(const struct mbuf *, int, int, void *);
const struct protosw *psw;
void *arg;
{
diff --git a/sys/netinet/ip_encap.h b/sys/netinet/ip_encap.h
index 94f534b..518f502 100644
--- a/sys/netinet/ip_encap.h
+++ b/sys/netinet/ip_encap.h
@@ -43,22 +43,22 @@ struct encaptab {
struct sockaddr_storage srcmask;
struct sockaddr_storage dst; /* remote addr */
struct sockaddr_storage dstmask;
- int (*func) __P((const struct mbuf *, int, int, void *));
+ int (*func)(const struct mbuf *, int, int, void *);
const struct protosw *psw; /* only pr_input will be used */
void *arg; /* passed via m->m_pkthdr.aux */
};
-void encap_init __P((void));
-void encap4_input __P((struct mbuf *, int));
-int encap6_input __P((struct mbuf **, int *, int));
-const struct encaptab *encap_attach __P((int, int, const struct sockaddr *,
+void encap_init(void);
+void encap4_input(struct mbuf *, int);
+int encap6_input(struct mbuf **, int *, int);
+const struct encaptab *encap_attach(int, int, const struct sockaddr *,
const struct sockaddr *, const struct sockaddr *,
- const struct sockaddr *, const struct protosw *, void *));
-const struct encaptab *encap_attach_func __P((int, int,
- int (*) __P((const struct mbuf *, int, int, void *)),
- const struct protosw *, void *));
-int encap_detach __P((const struct encaptab *));
-void *encap_getarg __P((struct mbuf *));
+ const struct sockaddr *, const struct protosw *, void *);
+const struct encaptab *encap_attach_func(int, int,
+ int (*)(const struct mbuf *, int, int, void *),
+ const struct protosw *, void *);
+int encap_detach(const struct encaptab *);
+void *encap_getarg(struct mbuf *);
#endif
#endif /*_NETINET_IP_ENCAP_H_*/
diff --git a/sys/netinet/ip_fw.h b/sys/netinet/ip_fw.h
index 25b303c..468d66f 100644
--- a/sys/netinet/ip_fw.h
+++ b/sys/netinet/ip_fw.h
@@ -315,7 +315,7 @@ struct ipfw_dyn_rule {
/*
* Function definitions.
*/
-void ip_fw_init __P((void));
+void ip_fw_init(void);
/* Firewall hooks */
struct ip;
diff --git a/sys/netinet/ip_icmp.c b/sys/netinet/ip_icmp.c
index e19c642..c671a0a 100644
--- a/sys/netinet/ip_icmp.c
+++ b/sys/netinet/ip_icmp.c
@@ -108,9 +108,9 @@ SYSCTL_INT(_net_inet_icmp, OID_AUTO, bmcastecho, CTLFLAG_RW,
int icmpprintfs = 0;
#endif
-static void icmp_reflect __P((struct mbuf *));
-static void icmp_send __P((struct mbuf *, struct mbuf *, struct route *));
-static int ip_next_mtu __P((int, int));
+static void icmp_reflect(struct mbuf *);
+static void icmp_send(struct mbuf *, struct mbuf *, struct route *);
+static int ip_next_mtu(int, int);
extern struct protosw inetsw[];
@@ -236,7 +236,7 @@ icmp_input(m, off)
int icmplen = ip->ip_len;
register int i;
struct in_ifaddr *ia;
- void (*ctlfunc) __P((int, struct sockaddr *, void *));
+ void (*ctlfunc)(int, struct sockaddr *, void *);
int code;
/*
diff --git a/sys/netinet/ip_icmp.h b/sys/netinet/ip_icmp.h
index 401c7ed..927efd9 100644
--- a/sys/netinet/ip_icmp.h
+++ b/sys/netinet/ip_icmp.h
@@ -185,8 +185,8 @@ struct icmp {
(type) == ICMP_MASKREQ || (type) == ICMP_MASKREPLY)
#ifdef _KERNEL
-void icmp_error __P((struct mbuf *, int, int, n_long, struct ifnet *));
-void icmp_input __P((struct mbuf *, int));
+void icmp_error(struct mbuf *, int, int, n_long, struct ifnet *);
+void icmp_input(struct mbuf *, int);
#endif
#endif
diff --git a/sys/netinet/ip_id.c b/sys/netinet/ip_id.c
index f440159..664b4d1 100644
--- a/sys/netinet/ip_id.c
+++ b/sys/netinet/ip_id.c
@@ -87,9 +87,9 @@ static u_int16_t ru_msb = 0;
static long ru_reseed;
static u_int32_t tmp; /* Storage for unused random */
-static u_int16_t pmod __P((u_int16_t, u_int16_t, u_int16_t));
-static void ip_initid __P((void));
-u_int16_t ip_randomid __P((void));
+static u_int16_t pmod(u_int16_t, u_int16_t, u_int16_t);
+static void ip_initid(void);
+u_int16_t ip_randomid(void);
/*
* Do a fast modular exponation, returned value will be in the range
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index 541510f..9d2b019 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -209,16 +209,16 @@ static struct ip_srcrt {
struct sockaddr_in *ip_fw_fwd_addr;
-static void save_rte __P((u_char *, struct in_addr));
-static int ip_dooptions __P((struct mbuf *, int));
-static void ip_forward __P((struct mbuf *, int));
-static void ip_freef __P((struct ipqhead *, struct ipq *));
+static void save_rte(u_char *, struct in_addr);
+static int ip_dooptions(struct mbuf *, int);
+static void ip_forward(struct mbuf *, int);
+static void ip_freef(struct ipqhead *, struct ipq *);
#ifdef IPDIVERT
-static struct mbuf *ip_reass __P((struct mbuf *, struct ipqhead *, struct ipq *, u_int32_t *, u_int16_t *));
+static struct mbuf *ip_reass(struct mbuf *, struct ipqhead *, struct ipq *, u_int32_t *, u_int16_t *);
#else
-static struct mbuf *ip_reass __P((struct mbuf *, struct ipqhead *, struct ipq *));
+static struct mbuf *ip_reass(struct mbuf *, struct ipqhead *, struct ipq *);
#endif
-static void ipintr __P((void));
+static void ipintr(void);
/*
* IP initialization: fill in IP protocol switch table.
diff --git a/sys/netinet/ip_mroute.c b/sys/netinet/ip_mroute.c
index 54d5cd7..3249308 100644
--- a/sys/netinet/ip_mroute.c
+++ b/sys/netinet/ip_mroute.c
@@ -41,13 +41,13 @@
#include <machine/in_cksum.h>
#ifndef MROUTING
-extern u_long _ip_mcast_src __P((int vifi));
-extern int _ip_mforward __P((struct ip *ip, struct ifnet *ifp,
- struct mbuf *m, struct ip_moptions *imo));
-extern int _ip_mrouter_done __P((void));
-extern int _ip_mrouter_get __P((struct socket *so, struct sockopt *sopt));
-extern int _ip_mrouter_set __P((struct socket *so, struct sockopt *sopt));
-extern int _mrt_ioctl __P((int req, caddr_t data));
+extern u_long _ip_mcast_src(int vifi);
+extern int _ip_mforward(struct ip *ip, struct ifnet *ifp,
+ struct mbuf *m, struct ip_moptions *imo);
+extern int _ip_mrouter_done(void);
+extern int _ip_mrouter_get(struct socket *so, struct sockopt *sopt);
+extern int _ip_mrouter_set(struct socket *so, struct sockopt *sopt);
+extern int _mrt_ioctl(int req, caddr_t data);
/*
* Dummy routines and globals used when multicast routing is not compiled in.
@@ -246,13 +246,13 @@ static const struct encaptab *encap_cookie = NULL;
static u_long last_encap_src;
static struct vif *last_encap_vif;
-static u_long X_ip_mcast_src __P((int vifi));
-static int X_ip_mforward __P((struct ip *ip, struct ifnet *ifp, struct mbuf *m, struct ip_moptions *imo));
-static int X_ip_mrouter_done __P((void));
-static int X_ip_mrouter_get __P((struct socket *so, struct sockopt *m));
-static int X_ip_mrouter_set __P((struct socket *so, struct sockopt *m));
-static int X_legal_vif_num __P((int vif));
-static int X_mrt_ioctl __P((int cmd, caddr_t data));
+static u_long X_ip_mcast_src(int vifi);
+static int X_ip_mforward(struct ip *ip, struct ifnet *ifp, struct mbuf *m, struct ip_moptions *imo);
+static int X_ip_mrouter_done(void);
+static int X_ip_mrouter_get(struct socket *so, struct sockopt *m);
+static int X_ip_mrouter_set(struct socket *so, struct sockopt *m);
+static int X_legal_vif_num(int vif);
+static int X_mrt_ioctl(int cmd, caddr_t data);
static int get_sg_cnt(struct sioc_sg_req *);
static int get_vif_cnt(struct sioc_vif_req *);
diff --git a/sys/netinet/ip_mroute.h b/sys/netinet/ip_mroute.h
index 2b7bba3..0e61652 100644
--- a/sys/netinet/ip_mroute.h
+++ b/sys/netinet/ip_mroute.h
@@ -253,10 +253,10 @@ struct tbf
struct sockopt;
-extern int (*ip_mrouter_set) __P((struct socket *, struct sockopt *));
-extern int (*ip_mrouter_get) __P((struct socket *, struct sockopt *));
-extern int (*ip_mrouter_done) __P((void));
-extern int (*mrt_ioctl) __P((int, caddr_t));
+extern int (*ip_mrouter_set)(struct socket *, struct sockopt *);
+extern int (*ip_mrouter_get)(struct socket *, struct sockopt *);
+extern int (*ip_mrouter_done)(void);
+extern int (*mrt_ioctl)(int, caddr_t);
#endif /* _KERNEL */
diff --git a/sys/netinet/ip_output.c b/sys/netinet/ip_output.c
index d6ee761..d46d984 100644
--- a/sys/netinet/ip_output.c
+++ b/sys/netinet/ip_output.c
@@ -89,17 +89,17 @@ static MALLOC_DEFINE(M_IPMOPTS, "ip_moptions", "internet multicast options");
u_short ip_id;
-static struct mbuf *ip_insertoptions __P((struct mbuf *, struct mbuf *, int *));
-static struct ifnet *ip_multicast_if __P((struct in_addr *, int *));
+static struct mbuf *ip_insertoptions(struct mbuf *, struct mbuf *, int *);
+static struct ifnet *ip_multicast_if(struct in_addr *, int *);
static void ip_mloopback
- __P((struct ifnet *, struct mbuf *, struct sockaddr_in *, int));
+ (struct ifnet *, struct mbuf *, struct sockaddr_in *, int);
static int ip_getmoptions
- __P((struct sockopt *, struct ip_moptions *));
-static int ip_pcbopts __P((int, struct mbuf **, struct mbuf *));
+ (struct sockopt *, struct ip_moptions *);
+static int ip_pcbopts(int, struct mbuf **, struct mbuf *);
static int ip_setmoptions
- __P((struct sockopt *, struct ip_moptions **));
+ (struct sockopt *, struct ip_moptions **);
-int ip_optcopy __P((struct ip *, struct ip *));
+int ip_optcopy(struct ip *, struct ip *);
extern struct protosw inetsw[];
diff --git a/sys/netinet/ip_var.h b/sys/netinet/ip_var.h
index d8f7a0b..dad22f3 100644
--- a/sys/netinet/ip_var.h
+++ b/sys/netinet/ip_var.h
@@ -151,48 +151,48 @@ extern struct route ipforward_rt; /* ip forwarding cached route */
extern u_char ip_protox[];
extern struct socket *ip_rsvpd; /* reservation protocol daemon */
extern struct socket *ip_mrouter; /* multicast routing daemon */
-extern int (*legal_vif_num) __P((int));
-extern u_long (*ip_mcast_src) __P((int));
+extern int (*legal_vif_num)(int);
+extern u_long (*ip_mcast_src)(int);
extern int rsvp_on;
extern struct pr_usrreqs rip_usrreqs;
-int ip_ctloutput __P((struct socket *, struct sockopt *sopt));
-void ip_drain __P((void));
-void ip_freemoptions __P((struct ip_moptions *));
-void ip_init __P((void));
-extern int (*ip_mforward) __P((struct ip *, struct ifnet *, struct mbuf *,
- struct ip_moptions *));
-int ip_output __P((struct mbuf *,
- struct mbuf *, struct route *, int, struct ip_moptions *));
+int ip_ctloutput(struct socket *, struct sockopt *sopt);
+void ip_drain(void);
+void ip_freemoptions(struct ip_moptions *);
+void ip_init(void);
+extern int (*ip_mforward)(struct ip *, struct ifnet *, struct mbuf *,
+ struct ip_moptions *);
+int ip_output(struct mbuf *,
+ struct mbuf *, struct route *, int, struct ip_moptions *);
struct in_ifaddr *
- ip_rtaddr __P((struct in_addr, struct route *));
-void ip_savecontrol __P((struct inpcb *, struct mbuf **, struct ip *,
- struct mbuf *));
-void ip_slowtimo __P((void));
+ ip_rtaddr(struct in_addr, struct route *);
+void ip_savecontrol(struct inpcb *, struct mbuf **, struct ip *,
+ struct mbuf *);
+void ip_slowtimo(void);
struct mbuf *
- ip_srcroute __P((void));
-void ip_stripoptions __P((struct mbuf *, struct mbuf *));
+ ip_srcroute(void);
+void ip_stripoptions(struct mbuf *, struct mbuf *);
#ifdef RANDOM_IP_ID
u_int16_t
- ip_randomid __P((void));
+ ip_randomid(void);
#endif
-int rip_ctloutput __P((struct socket *, struct sockopt *));
-void rip_ctlinput __P((int, struct sockaddr *, void *));
-void rip_init __P((void));
-void rip_input __P((struct mbuf *, int));
-int rip_output __P((struct mbuf *, struct socket *, u_long));
-void ipip_input __P((struct mbuf *, int));
-void rsvp_input __P((struct mbuf *, int));
-int ip_rsvp_init __P((struct socket *));
-int ip_rsvp_done __P((void));
-int ip_rsvp_vif_init __P((struct socket *, struct sockopt *));
-int ip_rsvp_vif_done __P((struct socket *, struct sockopt *));
-void ip_rsvp_force_done __P((struct socket *));
+int rip_ctloutput(struct socket *, struct sockopt *);
+void rip_ctlinput(int, struct sockaddr *, void *);
+void rip_init(void);
+void rip_input(struct mbuf *, int);
+int rip_output(struct mbuf *, struct socket *, u_long);
+void ipip_input(struct mbuf *, int);
+void rsvp_input(struct mbuf *, int);
+int ip_rsvp_init(struct socket *);
+int ip_rsvp_done(void);
+int ip_rsvp_vif_init(struct socket *, struct sockopt *);
+int ip_rsvp_vif_done(struct socket *, struct sockopt *);
+void ip_rsvp_force_done(struct socket *);
#ifdef IPDIVERT
-void div_init __P((void));
-void div_input __P((struct mbuf *, int));
-void divert_packet __P((struct mbuf *, int, int));
+void div_init(void);
+void div_input(struct mbuf *, int);
+void divert_packet(struct mbuf *, int, int);
extern struct pr_usrreqs div_usrreqs;
extern u_int16_t ip_divert_cookie;
#endif
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c
index fbf64bd..b1a392f 100644
--- a/sys/netinet/tcp_input.c
+++ b/sys/netinet/tcp_input.c
@@ -130,13 +130,13 @@ struct inpcbhead tcb;
#define tcb6 tcb /* for KAME src sync over BSD*'s */
struct inpcbinfo tcbinfo;
-static void tcp_dooptions __P((struct tcpopt *, u_char *, int, int));
-static void tcp_pulloutofband __P((struct socket *,
- struct tcphdr *, struct mbuf *, int));
-static int tcp_reass __P((struct tcpcb *, struct tcphdr *, int *,
- struct mbuf *));
-static void tcp_xmit_timer __P((struct tcpcb *, int));
-static int tcp_newreno __P((struct tcpcb *, struct tcphdr *));
+static void tcp_dooptions(struct tcpopt *, u_char *, int, int);
+static void tcp_pulloutofband(struct socket *,
+ struct tcphdr *, struct mbuf *, int);
+static int tcp_reass(struct tcpcb *, struct tcphdr *, int *,
+ struct mbuf *);
+static void tcp_xmit_timer(struct tcpcb *, int);
+static int tcp_newreno(struct tcpcb *, struct tcphdr *);
/* Neighbor Discovery, Neighbor Unreachability Detection Upper layer hint. */
#ifdef INET6
diff --git a/sys/netinet/tcp_reass.c b/sys/netinet/tcp_reass.c
index fbf64bd..b1a392f 100644
--- a/sys/netinet/tcp_reass.c
+++ b/sys/netinet/tcp_reass.c
@@ -130,13 +130,13 @@ struct inpcbhead tcb;
#define tcb6 tcb /* for KAME src sync over BSD*'s */
struct inpcbinfo tcbinfo;
-static void tcp_dooptions __P((struct tcpopt *, u_char *, int, int));
-static void tcp_pulloutofband __P((struct socket *,
- struct tcphdr *, struct mbuf *, int));
-static int tcp_reass __P((struct tcpcb *, struct tcphdr *, int *,
- struct mbuf *));
-static void tcp_xmit_timer __P((struct tcpcb *, int));
-static int tcp_newreno __P((struct tcpcb *, struct tcphdr *));
+static void tcp_dooptions(struct tcpopt *, u_char *, int, int);
+static void tcp_pulloutofband(struct socket *,
+ struct tcphdr *, struct mbuf *, int);
+static int tcp_reass(struct tcpcb *, struct tcphdr *, int *,
+ struct mbuf *);
+static void tcp_xmit_timer(struct tcpcb *, int);
+static int tcp_newreno(struct tcpcb *, struct tcphdr *);
/* Neighbor Discovery, Neighbor Unreachability Detection Upper layer hint. */
#ifdef INET6
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index 94773d2..cec858c 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -148,8 +148,8 @@ static int tcp_isn_reseed_interval = 0;
SYSCTL_INT(_net_inet_tcp, OID_AUTO, isn_reseed_interval, CTLFLAG_RW,
&tcp_isn_reseed_interval, 0, "Seconds between reseeding of ISN secret");
-static void tcp_cleartaocache __P((void));
-static void tcp_notify __P((struct inpcb *, int));
+static void tcp_cleartaocache(void);
+static void tcp_notify(struct inpcb *, int);
/*
* Target size of TCP PCB hash tables. Must be a power of two.
@@ -998,7 +998,7 @@ tcp_ctlinput(cmd, sa, vip)
struct in_addr faddr;
struct inpcb *inp;
struct tcpcb *tp;
- void (*notify) __P((struct inpcb *, int)) = tcp_notify;
+ void (*notify)(struct inpcb *, int) = tcp_notify;
tcp_seq icmp_seq;
int s;
@@ -1057,7 +1057,7 @@ tcp6_ctlinput(cmd, sa, d)
void *d;
{
struct tcphdr th;
- void (*notify) __P((struct inpcb *, int)) = tcp_notify;
+ void (*notify)(struct inpcb *, int) = tcp_notify;
struct ip6_hdr *ip6;
struct mbuf *m;
struct ip6ctlparam *ip6cp = NULL;
diff --git a/sys/netinet/tcp_timer.h b/sys/netinet/tcp_timer.h
index b2bcb43..ff86d2a 100644
--- a/sys/netinet/tcp_timer.h
+++ b/sys/netinet/tcp_timer.h
@@ -128,11 +128,11 @@ extern int tcp_msl;
extern int tcp_ttl; /* time to live for TCP segs */
extern int tcp_backoff[];
-void tcp_timer_2msl __P((void *xtp));
-void tcp_timer_keep __P((void *xtp));
-void tcp_timer_persist __P((void *xtp));
-void tcp_timer_rexmt __P((void *xtp));
-void tcp_timer_delack __P((void *xtp));
+void tcp_timer_2msl(void *xtp);
+void tcp_timer_keep(void *xtp);
+void tcp_timer_persist(void *xtp);
+void tcp_timer_rexmt(void *xtp);
+void tcp_timer_delack(void *xtp);
#endif /* _KERNEL */
diff --git a/sys/netinet/tcp_timewait.c b/sys/netinet/tcp_timewait.c
index 94773d2..cec858c 100644
--- a/sys/netinet/tcp_timewait.c
+++ b/sys/netinet/tcp_timewait.c
@@ -148,8 +148,8 @@ static int tcp_isn_reseed_interval = 0;
SYSCTL_INT(_net_inet_tcp, OID_AUTO, isn_reseed_interval, CTLFLAG_RW,
&tcp_isn_reseed_interval, 0, "Seconds between reseeding of ISN secret");
-static void tcp_cleartaocache __P((void));
-static void tcp_notify __P((struct inpcb *, int));
+static void tcp_cleartaocache(void);
+static void tcp_notify(struct inpcb *, int);
/*
* Target size of TCP PCB hash tables. Must be a power of two.
@@ -998,7 +998,7 @@ tcp_ctlinput(cmd, sa, vip)
struct in_addr faddr;
struct inpcb *inp;
struct tcpcb *tp;
- void (*notify) __P((struct inpcb *, int)) = tcp_notify;
+ void (*notify)(struct inpcb *, int) = tcp_notify;
tcp_seq icmp_seq;
int s;
@@ -1057,7 +1057,7 @@ tcp6_ctlinput(cmd, sa, d)
void *d;
{
struct tcphdr th;
- void (*notify) __P((struct inpcb *, int)) = tcp_notify;
+ void (*notify)(struct inpcb *, int) = tcp_notify;
struct ip6_hdr *ip6;
struct mbuf *m;
struct ip6ctlparam *ip6cp = NULL;
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c
index fbe114b..e95ba64 100644
--- a/sys/netinet/tcp_usrreq.c
+++ b/sys/netinet/tcp_usrreq.c
@@ -88,17 +88,17 @@
*/
extern char *tcpstates[]; /* XXX ??? */
-static int tcp_attach __P((struct socket *, struct thread *td));
-static int tcp_connect __P((struct tcpcb *, struct sockaddr *,
- struct thread *td));
+static int tcp_attach(struct socket *, struct thread *td);
+static int tcp_connect(struct tcpcb *, struct sockaddr *,
+ struct thread *td);
#ifdef INET6
-static int tcp6_connect __P((struct tcpcb *, struct sockaddr *,
- struct thread *td));
+static int tcp6_connect(struct tcpcb *, struct sockaddr *,
+ struct thread *td);
#endif /* INET6 */
static struct tcpcb *
- tcp_disconnect __P((struct tcpcb *));
+ tcp_disconnect(struct tcpcb *);
static struct tcpcb *
- tcp_usrclosed __P((struct tcpcb *));
+ tcp_usrclosed(struct tcpcb *);
#ifdef TCPDEBUG
#define TCPDEBUG0 int ostate = 0
diff --git a/sys/netinet/tcp_var.h b/sys/netinet/tcp_var.h
index f4a5b75..e46a39a 100644
--- a/sys/netinet/tcp_var.h
+++ b/sys/netinet/tcp_var.h
@@ -434,40 +434,39 @@ extern int tcp_do_newreno;
extern int ss_fltsz;
extern int ss_fltsz_local;
-void tcp_canceltimers __P((struct tcpcb *));
+void tcp_canceltimers(struct tcpcb *);
struct tcpcb *
- tcp_close __P((struct tcpcb *));
-void tcp_ctlinput __P((int, struct sockaddr *, void *));
-int tcp_ctloutput __P((struct socket *, struct sockopt *));
+ tcp_close(struct tcpcb *);
+void tcp_ctlinput(int, struct sockaddr *, void *);
+int tcp_ctloutput(struct socket *, struct sockopt *);
struct tcpcb *
- tcp_drop __P((struct tcpcb *, int));
-void tcp_drain __P((void));
-void tcp_fasttimo __P((void));
+ tcp_drop(struct tcpcb *, int);
+void tcp_drain(void);
+void tcp_fasttimo(void);
struct rmxp_tao *
- tcp_gettaocache __P((struct in_conninfo *));
-void tcp_init __P((void));
-void tcp_input __P((struct mbuf *, int));
-void tcp_mss __P((struct tcpcb *, int));
-int tcp_mssopt __P((struct tcpcb *));
-void tcp_drop_syn_sent __P((struct inpcb *, int));
-void tcp_mtudisc __P((struct inpcb *, int));
+ tcp_gettaocache(struct in_conninfo *);
+void tcp_init(void);
+void tcp_input(struct mbuf *, int);
+void tcp_mss(struct tcpcb *, int);
+int tcp_mssopt(struct tcpcb *);
+void tcp_drop_syn_sent(struct inpcb *, int);
+void tcp_mtudisc(struct inpcb *, int);
struct tcpcb *
- tcp_newtcpcb __P((struct inpcb *));
-int tcp_output __P((struct tcpcb *));
-void tcp_quench __P((struct inpcb *, int));
-void tcp_respond __P((struct tcpcb *, void *,
- struct tcphdr *, struct mbuf *, tcp_seq, tcp_seq, int));
+ tcp_newtcpcb(struct inpcb *);
+int tcp_output(struct tcpcb *);
+void tcp_quench(struct inpcb *, int);
+void tcp_respond(struct tcpcb *, void *,
+ struct tcphdr *, struct mbuf *, tcp_seq, tcp_seq, int);
struct rtentry *
- tcp_rtlookup __P((struct in_conninfo *));
-void tcp_setpersist __P((struct tcpcb *));
-void tcp_slowtimo __P((void));
+ tcp_rtlookup(struct in_conninfo *);
+void tcp_setpersist(struct tcpcb *);
+void tcp_slowtimo(void);
struct tcptemp *
- tcp_maketemplate __P((struct tcpcb *));
-void tcp_fillheaders __P((struct tcpcb *, void *, void *));
+ tcp_maketemplate(struct tcpcb *);
+void tcp_fillheaders(struct tcpcb *, void *, void *);
struct tcpcb *
- tcp_timers __P((struct tcpcb *, int));
-void tcp_trace __P((int, int, struct tcpcb *, void *, struct tcphdr *,
- int));
+ tcp_timers(struct tcpcb *, int);
+void tcp_trace(int, int, struct tcpcb *, void *, struct tcphdr *, int);
void syncache_init(void);
void syncache_unreach(struct in_conninfo *, struct tcphdr *);
int syncache_expand(struct in_conninfo *, struct tcphdr *,
@@ -480,7 +479,7 @@ void syncache_badack(struct in_conninfo *);
extern struct pr_usrreqs tcp_usrreqs;
extern u_long tcp_sendspace;
extern u_long tcp_recvspace;
-tcp_seq tcp_new_isn __P((struct tcpcb *));
+tcp_seq tcp_new_isn(struct tcpcb *);
#endif /* _KERNEL */
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index 3f98ea7..e4f7e0d 100644
--- a/sys/netinet/udp_usrreq.c
+++ b/sys/netinet/udp_usrreq.c
@@ -126,15 +126,15 @@ struct udp_ip6 {
} udp_ip6;
#endif /* INET6 */
-static void udp_append __P((struct inpcb *last, struct ip *ip,
- struct mbuf *n, int off));
+static void udp_append(struct inpcb *last, struct ip *ip,
+ struct mbuf *n, int off);
#ifdef INET6
-static void ip_2_ip6_hdr __P((struct ip6_hdr *ip6, struct ip *ip));
+static void ip_2_ip6_hdr(struct ip6_hdr *ip6, struct ip *ip);
#endif
-static int udp_detach __P((struct socket *so));
-static int udp_output __P((struct inpcb *, struct mbuf *, struct sockaddr *,
- struct mbuf *, struct thread *));
+static int udp_detach(struct socket *so);
+static int udp_output(struct inpcb *, struct mbuf *, struct sockaddr *,
+ struct mbuf *, struct thread *);
void
udp_init()
@@ -509,7 +509,7 @@ udp_ctlinput(cmd, sa, vip)
{
struct ip *ip = vip;
struct udphdr *uh;
- void (*notify) __P((struct inpcb *, int)) = udp_notify;
+ void (*notify)(struct inpcb *, int) = udp_notify;
struct in_addr faddr;
struct inpcb *inp;
int s;
diff --git a/sys/netinet/udp_var.h b/sys/netinet/udp_var.h
index ca43eef..b966396 100644
--- a/sys/netinet/udp_var.h
+++ b/sys/netinet/udp_var.h
@@ -103,12 +103,12 @@ extern u_long udp_recvspace;
extern struct udpstat udpstat;
extern int log_in_vain;
-void udp_ctlinput __P((int, struct sockaddr *, void *));
-void udp_init __P((void));
-void udp_input __P((struct mbuf *, int));
+void udp_ctlinput(int, struct sockaddr *, void *);
+void udp_init(void);
+void udp_input(struct mbuf *, int);
-void udp_notify __P((struct inpcb *inp, int errno));
-int udp_shutdown __P((struct socket *so));
+void udp_notify(struct inpcb *inp, int errno);
+int udp_shutdown(struct socket *so);
#endif
#endif
OpenPOWER on IntegriCloud