This commit is contained in:
matt 2004-04-18 21:00:35 +00:00
parent 27f928584a
commit db6a0b431a
17 changed files with 243 additions and 244 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: icmp6.h,v 1.28 2003/08/07 16:33:07 agc Exp $ */
/* $NetBSD: icmp6.h,v 1.29 2004/04/18 21:00:35 matt Exp $ */
/* $KAME: icmp6.h,v 1.84 2003/04/23 10:26:51 itojun Exp $ */
@ -625,25 +625,24 @@ struct icmp6stat {
#define RTF_PROBEMTU RTF_PROTO1
#ifdef _KERNEL
# ifdef __STDC__
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 *));
int icmp6_sysctl __P((int *, u_int, void *, size_t *, void *, size_t));
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 *);
int icmp6_sysctl (int *, u_int, void *, size_t *, void *, size_t);
struct ip6ctlparam;
void icmp6_mtudisc_update __P((struct ip6ctlparam *, int));
void icmp6_mtudisc_callback_register __P((void (*)(struct in6_addr *)));
void icmp6_mtudisc_update (struct ip6ctlparam *, int);
void icmp6_mtudisc_callback_register (void (*)(struct in6_addr *));
/* XXX: is this the right place for these macros? */
#define icmp6_ifstat_inc(ifp, tag) \

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_atm.h,v 1.6 2002/06/09 16:33:37 itojun Exp $ */
/* $NetBSD: if_atm.h,v 1.7 2004/04/18 21:00:35 matt Exp $ */
/*
*
@ -39,8 +39,8 @@
* if_atm.h
*/
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 *);
#endif /* _NETINET_IF_ATM_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: if_inarp.h,v 1.33 2003/08/07 16:33:08 agc Exp $ */
/* $NetBSD: if_inarp.h,v 1.34 2004/04/18 21:00:35 matt Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@ -61,20 +61,20 @@ struct sockaddr_inarp {
#ifdef _KERNEL
extern struct ifqueue arpintrq;
void arp_ifinit __P((struct ifnet *, struct ifaddr *));
void arp_rtrequest __P((int, struct rtentry *, struct rt_addrinfo *));
int arpresolve __P((struct ifnet *, struct rtentry *, struct mbuf *,
struct sockaddr *, u_char *));
void arpintr __P((void));
void arp_drain __P((void));
void arp_ifinit (struct ifnet *, struct ifaddr *);
void arp_rtrequest (int, struct rtentry *, struct rt_addrinfo *);
int arpresolve (struct ifnet *, struct rtentry *, struct mbuf *,
struct sockaddr *, u_char *);
void arpintr (void);
void arp_drain (void);
int arpioctl __P((u_long, caddr_t));
void arpwhohas __P((struct ifnet *, struct in_addr *));
int arpioctl (u_long, caddr_t);
void arpwhohas (struct ifnet *, struct in_addr *);
void revarpinput __P((struct mbuf *));
void in_revarpinput __P((struct mbuf *));
void revarprequest __P((struct ifnet *));
int revarpwhoarewe __P((struct ifnet *, struct in_addr *, struct in_addr *));
void revarpinput (struct mbuf *);
void in_revarpinput (struct mbuf *);
void revarprequest (struct ifnet *);
int revarpwhoarewe (struct ifnet *, struct in_addr *, struct in_addr *);
#endif
#endif /* _NETINET_IF_INARP_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: igmp_var.h,v 1.18 2003/10/07 21:24:56 mycroft Exp $ */
/* $NetBSD: igmp_var.h,v 1.19 2004/04/18 21:00:35 matt Exp $ */
/*
* Copyright (c) 1992, 1993
@ -113,13 +113,13 @@ extern struct igmpstat igmpstat;
#define IGMP_HDR_ALIGNED_P(ig) ((((vaddr_t) (ig)) & 3) == 0)
#endif
void igmp_init __P((void));
void igmp_input __P((struct mbuf *, ...));
int igmp_joingroup __P((struct in_multi *));
void igmp_leavegroup __P((struct in_multi *));
void igmp_fasttimo __P((void));
void igmp_slowtimo __P((void));
extern void igmp_purgeif(struct ifnet *);
void igmp_init (void);
void igmp_input (struct mbuf *, ...);
int igmp_joingroup (struct in_multi *);
void igmp_leavegroup (struct in_multi *);
void igmp_fasttimo (void);
void igmp_slowtimo (void);
void igmp_purgeif (struct ifnet *);
#endif
#endif /* _NETINET_IGMP_VAR_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: in.h,v 1.64 2003/11/19 18:39:34 jonathan Exp $ */
/* $NetBSD: in.h,v 1.65 2004/04/18 21:00:35 matt Exp $ */
/*
* Copyright (c) 1982, 1986, 1990, 1993
@ -467,13 +467,13 @@ in_cksum_addword(u_int16_t a, u_int16_t b)
extern struct in_addr zeroin_addr;
extern u_char ip_protox[];
int in_broadcast __P((struct in_addr, struct ifnet *));
int in_canforward __P((struct in_addr));
int in_cksum __P((struct mbuf *, int));
int in4_cksum __P((struct mbuf *, u_int8_t, int, int));
void in_delayed_cksum __P((struct mbuf *));
int in_localaddr __P((struct in_addr));
void in_socktrim __P((struct sockaddr_in *));
int in_broadcast (struct in_addr, struct ifnet *);
int in_canforward (struct in_addr);
int in_cksum (struct mbuf *, int);
int in4_cksum (struct mbuf *, u_int8_t, int, int);
void in_delayed_cksum (struct mbuf *);
int in_localaddr (struct in_addr);
void in_socktrim (struct sockaddr_in *);
#define in_hosteq(s,t) ((s).s_addr == (t).s_addr)
#define in_nullhost(x) ((x).s_addr == INADDR_ANY)

View File

@ -1,4 +1,4 @@
/* $NetBSD: in_gif.h,v 1.8 2002/11/11 18:35:28 itojun Exp $ */
/* $NetBSD: in_gif.h,v 1.9 2004/04/18 21:00:35 matt Exp $ */
/* $KAME: in_gif.h,v 1.6 2001/07/25 00:55:48 itojun Exp $ */
/*
@ -38,12 +38,12 @@
extern int ip_gif_ttl;
struct gif_softc;
void in_gif_input __P((struct mbuf *, ...));
int in_gif_output __P((struct ifnet *, int, struct mbuf *));
void in_gif_input (struct mbuf *, ...);
int in_gif_output (struct ifnet *, int, struct mbuf *);
#ifdef GIF_ENCAPCHECK
int gif_encapcheck4 __P((const struct mbuf *, int, int, void *));
int gif_encapcheck4 (const struct mbuf *, int, int, void *);
#endif
int in_gif_attach __P((struct gif_softc *));
int in_gif_detach __P((struct gif_softc *));
int in_gif_attach (struct gif_softc *);
int in_gif_detach (struct gif_softc *);
#endif /*_NETINET_IN_GIF_H_*/

View File

@ -1,4 +1,4 @@
/* $NetBSD: in_pcb.h,v 1.36 2003/10/23 20:55:08 mycroft Exp $ */
/* $NetBSD: in_pcb.h,v 1.37 2004/04/18 21:00:35 matt Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@ -111,36 +111,36 @@ struct inpcb {
#define sotoinpcb(so) ((struct inpcb *)(so)->so_pcb)
#ifdef _KERNEL
void in_losing __P((struct inpcb *));
int in_pcballoc __P((struct socket *, void *));
int in_pcbbind __P((void *, struct mbuf *, struct proc *));
int in_pcbconnect __P((void *, struct mbuf *));
void in_pcbdetach __P((void *));
void in_pcbdisconnect __P((void *));
void in_pcbinit __P((struct inpcbtable *, int, int));
void in_losing (struct inpcb *);
int in_pcballoc (struct socket *, void *);
int in_pcbbind (void *, struct mbuf *, struct proc *);
int in_pcbconnect (void *, struct mbuf *);
void in_pcbdetach (void *);
void in_pcbdisconnect (void *);
void in_pcbinit (struct inpcbtable *, int, int);
struct inpcb *
in_pcblookup_port __P((struct inpcbtable *,
struct in_addr, u_int, int));
in_pcblookup_port (struct inpcbtable *,
struct in_addr, u_int, int);
struct inpcb *
in_pcblookup_bind __P((struct inpcbtable *,
struct in_addr, u_int));
in_pcblookup_bind (struct inpcbtable *,
struct in_addr, u_int);
struct inpcb *
in_pcblookup_connect __P((struct inpcbtable *,
struct in_addr, u_int, struct in_addr, u_int));
int in_pcbnotify __P((struct inpcbtable *, struct in_addr, u_int,
struct in_addr, u_int, int, void (*)(struct inpcb *, int)));
void in_pcbnotifyall __P((struct inpcbtable *, struct in_addr, int,
void (*)(struct inpcb *, int)));
void in_pcbpurgeif0 __P((struct inpcbtable *, struct ifnet *));
void in_pcbpurgeif __P((struct inpcbtable *, struct ifnet *));
void in_pcbstate __P((struct inpcb *, int));
void in_rtchange __P((struct inpcb *, int));
void in_setpeeraddr __P((struct inpcb *, struct mbuf *));
void in_setsockaddr __P((struct inpcb *, struct mbuf *));
in_pcblookup_connect (struct inpcbtable *,
struct in_addr, u_int, struct in_addr, u_int);
int in_pcbnotify (struct inpcbtable *, struct in_addr, u_int,
struct in_addr, u_int, int, void (*)(struct inpcb *, int));
void in_pcbnotifyall (struct inpcbtable *, struct in_addr, int,
void (*)(struct inpcb *, int));
void in_pcbpurgeif0 (struct inpcbtable *, struct ifnet *);
void in_pcbpurgeif (struct inpcbtable *, struct ifnet *);
void in_pcbstate (struct inpcb *, int);
void in_rtchange (struct inpcb *, int);
void in_setpeeraddr (struct inpcb *, struct mbuf *);
void in_setsockaddr (struct inpcb *, struct mbuf *);
struct rtentry *
in_pcbrtentry __P((struct inpcb *));
extern struct sockaddr_in *in_selectsrc __P((struct sockaddr_in *,
struct route *, int, struct ip_moptions *, int *));
in_pcbrtentry (struct inpcb *);
extern struct sockaddr_in *in_selectsrc (struct sockaddr_in *,
struct route *, int, struct ip_moptions *, int *);
#endif
#endif /* _NETINET_IN_PCB_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: in_systm.h,v 1.11 2003/08/07 16:33:11 agc Exp $ */
/* $NetBSD: in_systm.h,v 1.12 2004/04/18 21:00:35 matt Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@ -53,7 +53,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 /* _NETINET_IN_SYSTM_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: in_var.h,v 1.51 2003/11/11 20:25:26 jonathan Exp $ */
/* $NetBSD: in_var.h,v 1.52 2004/04/18 21:00:35 matt Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -292,22 +292,22 @@ struct in_multistep {
struct ifaddr;
int in_ifinit __P((struct ifnet *,
struct in_ifaddr *, struct sockaddr_in *, int));
void in_savemkludge __P((struct in_ifaddr *));
void in_restoremkludge __P((struct in_ifaddr *, struct ifnet *));
void in_purgemkludge __P((struct ifnet *));
struct in_multi *in_addmulti __P((struct in_addr *, struct ifnet *));
void in_delmulti __P((struct in_multi *));
void in_ifscrub __P((struct ifnet *, struct in_ifaddr *));
void in_setmaxmtu __P((void));
const char *in_fmtaddr __P((struct in_addr));
int in_control __P((struct socket *, u_long, caddr_t, struct ifnet *,
struct proc *));
void in_purgeaddr __P((struct ifaddr *, struct ifnet *));
void in_purgeif __P((struct ifnet *));
void ip_input __P((struct mbuf *));
int ipflow_fastforward __P((struct mbuf *));
int in_ifinit (struct ifnet *,
struct in_ifaddr *, struct sockaddr_in *, int);
void in_savemkludge (struct in_ifaddr *);
void in_restoremkludge (struct in_ifaddr *, struct ifnet *);
void in_purgemkludge (struct ifnet *);
struct in_multi *in_addmulti (struct in_addr *, struct ifnet *);
void in_delmulti (struct in_multi *);
void in_ifscrub (struct ifnet *, struct in_ifaddr *);
void in_setmaxmtu (void);
const char *in_fmtaddr (struct in_addr);
int in_control (struct socket *, u_long, caddr_t, struct ifnet *,
struct proc *);
void in_purgeaddr (struct ifaddr *, struct ifnet *);
void in_purgeif (struct ifnet *);
void ip_input (struct mbuf *);
int ipflow_fastforward (struct mbuf *);
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: ip_ecn.h,v 1.9 2001/12/21 04:11:24 itojun Exp $ */
/* $NetBSD: ip_ecn.h,v 1.10 2004/04/18 21:00:35 matt Exp $ */
/* $KAME: ip_ecn.h,v 1.6 2001/05/03 14:51:48 itojun Exp $ */
/*
@ -49,11 +49,11 @@
#define ECN_NOCARE (-1) /* no consideration to ECN */
#if defined(KERNEL) || defined(_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 *);
#ifdef INET6
extern void ip6_ecn_ingress __P((int, u_int32_t *, const u_int32_t *));
extern void ip6_ecn_egress __P((int, const u_int32_t *, u_int32_t *));
extern void ip6_ecn_ingress (int, u_int32_t *, const u_int32_t *);
extern void ip6_ecn_egress (int, const u_int32_t *, u_int32_t *);
#endif
#endif
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: ip_encap.h,v 1.3 2003/01/17 08:11:57 itojun Exp $ */
/* $NetBSD: ip_encap.h,v 1.4 2004/04/18 21:00:36 matt Exp $ */
/* $KAME: ip_encap.h,v 1.7 2000/03/25 07:23:37 sumikawa Exp $ */
/*
@ -50,7 +50,7 @@ struct encaptab {
struct sockaddr *srcmask;
struct sockaddr *dst; /* remote addr */
struct sockaddr *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 PACKET_TAG_ENCAP */
};

View File

@ -1,4 +1,4 @@
/* $NetBSD: ip_gre.h,v 1.5 2002/06/09 16:33:40 itojun Exp $ */
/* $NetBSD: ip_gre.h,v 1.6 2004/04/18 21:00:36 matt Exp $ */
/*
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -37,6 +37,6 @@
*/
#ifdef _KERNEL
void gre_input __P((struct mbuf *, ...));
void gre_mobile_input __P((struct mbuf *, ...));
void gre_input (struct mbuf *, ...);
void gre_mobile_input (struct mbuf *, ...);
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: ip_icmp.h,v 1.18 2003/08/07 16:33:12 agc Exp $ */
/* $NetBSD: ip_icmp.h,v 1.19 2004/04/18 21:00:36 matt Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@ -175,15 +175,15 @@ struct icmp {
(type) == ICMP_MASKREQ || (type) == ICMP_MASKREPLY)
#ifdef _KERNEL
void icmp_error __P((struct mbuf *, int, int, n_long, struct ifnet *));
void icmp_mtudisc __P((struct icmp *, struct in_addr));
void icmp_input __P((struct mbuf *, ...));
void icmp_init __P((void));
void icmp_reflect __P((struct mbuf *));
void icmp_send __P((struct mbuf *, struct mbuf *));
int icmp_sysctl __P((int *, u_int, void *, size_t *, void *, size_t));
void icmp_error (struct mbuf *, int, int, n_long, struct ifnet *);
void icmp_mtudisc (struct icmp *, struct in_addr);
void icmp_input (struct mbuf *, ...);
void icmp_init (void);
void icmp_reflect (struct mbuf *);
void icmp_send (struct mbuf *, struct mbuf *);
int icmp_sysctl (int *, u_int, void *, size_t *, void *, size_t);
void icmp_mtudisc_callback_register __P((void (*)(struct in_addr)));
void icmp_mtudisc_callback_register (void (*)(struct in_addr));
#endif

View File

@ -1,4 +1,4 @@
/* $NetBSD: ip_mroute.h,v 1.21 2003/06/26 03:35:00 itojun Exp $ */
/* $NetBSD: ip_mroute.h,v 1.22 2004/04/18 21:00:36 matt Exp $ */
/*
* Definitions for IP multicast forwarding.
@ -204,22 +204,22 @@ struct rtdetq {
#define MAXQSIZE 10 /* max. no of pkts in token queue */
int ip_mrouter_set __P((struct socket *, int, struct mbuf **));
int ip_mrouter_get __P((struct socket *, int, struct mbuf **));
int mrt_ioctl __P((struct socket *, u_long, caddr_t));
int ip_mrouter_done __P((void));
void ip_mrouter_detach(struct ifnet *);
void reset_vif __P((struct vif *));
int ip_mrouter_set (struct socket *, int, struct mbuf **);
int ip_mrouter_get (struct socket *, int, struct mbuf **);
int mrt_ioctl (struct socket *, u_long, caddr_t);
int ip_mrouter_done (void);
void ip_mrouter_detach (struct ifnet *);
void reset_vif (struct vif *);
#ifdef RSVP_ISI
int ip_mforward __P((struct mbuf *, struct ifnet *, struct ip_moptions *));
int legal_vif_num __P((int));
int ip_rsvp_vif_init __P((struct socket *, struct mbuf *));
int ip_rsvp_vif_done __P((struct socket *, struct mbuf *));
void ip_rsvp_force_done __P((struct socket *));
/*int rsvp_input __P((struct mbuf *, struct ifnet *));*/
void rsvp_input __P((struct mbuf *, int, int));
int ip_mforward (struct mbuf *, struct ifnet *, struct ip_moptions *);
int legal_vif_num (int);
int ip_rsvp_vif_init (struct socket *, struct mbuf *);
int ip_rsvp_vif_done (struct socket *, struct mbuf *);
void ip_rsvp_force_done (struct socket *);
/*int rsvp_input (struct mbuf *, struct ifnet *);*/
void rsvp_input (struct mbuf *, int, int);
#else
int ip_mforward __P((struct mbuf *, struct ifnet *));
int ip_mforward (struct mbuf *, struct ifnet *);
#endif
#endif /* _KERNEL */

View File

@ -1,4 +1,4 @@
/* $NetBSD: ip_var.h,v 1.65 2003/12/12 21:17:59 scw Exp $ */
/* $NetBSD: ip_var.h,v 1.66 2004/04/18 21:00:36 matt Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@ -214,49 +214,49 @@ extern struct pool inmulti_pool;
extern struct pool ipqent_pool;
struct inpcb;
int ip_ctloutput __P((int, struct socket *, int, int, struct mbuf **));
int ip_dooptions __P((struct mbuf *));
void ip_drain __P((void));
void ip_forward __P((struct mbuf *, int));
void ip_freef __P((struct ipq *));
void ip_freemoptions __P((struct ip_moptions *));
int ip_getmoptions __P((int, struct ip_moptions *, struct mbuf **));
void ip_init __P((void));
int ip_optcopy __P((struct ip *, struct ip *));
u_int ip_optlen __P((struct inpcb *));
int ip_output __P((struct mbuf *, ...));
int ip_fragment(struct mbuf *, struct ifnet *, u_long);
int ip_pcbopts __P((struct mbuf **, struct mbuf *));
int ip_ctloutput (int, struct socket *, int, int, struct mbuf **);
int ip_dooptions (struct mbuf *);
void ip_drain (void);
void ip_forward (struct mbuf *, int);
void ip_freef (struct ipq *);
void ip_freemoptions (struct ip_moptions *);
int ip_getmoptions (int, struct ip_moptions *, struct mbuf **);
void ip_init (void);
int ip_optcopy (struct ip *, struct ip *);
u_int ip_optlen (struct inpcb *);
int ip_output (struct mbuf *, ...);
int ip_fragment (struct mbuf *, struct ifnet *, u_long);
int ip_pcbopts (struct mbuf **, struct mbuf *);
struct mbuf *
ip_reass __P((struct ipqent *, struct ipq *, struct ipqhead *));
ip_reass (struct ipqent *, struct ipq *, struct ipqhead *);
struct in_ifaddr *
ip_rtaddr __P((struct in_addr));
void ip_savecontrol __P((struct inpcb *, struct mbuf **, struct ip *,
struct mbuf *));
int ip_setmoptions __P((int, struct ip_moptions **, struct mbuf *));
void ip_slowtimo __P((void));
ip_rtaddr (struct in_addr);
void ip_savecontrol (struct inpcb *, struct mbuf **, struct ip *,
struct mbuf *);
int ip_setmoptions (int, struct ip_moptions **, struct mbuf *);
void ip_slowtimo (void);
struct mbuf *
ip_srcroute __P((void));
void ip_stripoptions __P((struct mbuf *, struct mbuf *));
int ip_sysctl __P((int *, u_int, void *, size_t *, void *, size_t));
void ipintr __P((void));
void * rip_ctlinput __P((int, struct sockaddr *, void *));
int rip_ctloutput __P((int, struct socket *, int, int, struct mbuf **));
void rip_init __P((void));
void rip_input __P((struct mbuf *, ...));
int rip_output __P((struct mbuf *, ...));
int rip_usrreq __P((struct socket *,
int, struct mbuf *, struct mbuf *, struct mbuf *, struct proc *));
void ipflow_init __P((void));
struct ipflow *ipflow_reap __P((int));
void ipflow_create __P((const struct route *, struct mbuf *));
void ipflow_slowtimo __P((void));
void ipflow_invalidate_all __P((void));
ip_srcroute (void);
void ip_stripoptions (struct mbuf *, struct mbuf *);
int ip_sysctl (int *, u_int, void *, size_t *, void *, size_t);
void ipintr (void);
void * rip_ctlinput (int, struct sockaddr *, void *);
int rip_ctloutput (int, struct socket *, int, int, struct mbuf **);
void rip_init (void);
void rip_input (struct mbuf *, ...);
int rip_output (struct mbuf *, ...);
int rip_usrreq (struct socket *,
int, struct mbuf *, struct mbuf *, struct mbuf *, struct proc *);
void ipflow_init (void);
struct ipflow *ipflow_reap (int);
void ipflow_create (const struct route *, struct mbuf *);
void ipflow_slowtimo (void);
void ipflow_invalidate_all (void);
extern uint16_t ip_id;
static __inline uint16_t ip_newid __P((void));
static __inline uint16_t ip_newid (void);
u_int16_t ip_randomid __P((void));
u_int16_t ip_randomid (void);
extern int ip_do_randomid;
static __inline uint16_t

View File

@ -1,4 +1,4 @@
/* $NetBSD: tcp_var.h,v 1.106 2003/10/22 02:45:57 thorpej Exp $ */
/* $NetBSD: tcp_var.h,v 1.107 2004/04/18 21:00:36 matt Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
@ -270,9 +270,9 @@ struct tcpcb {
/*
* TCP reassembly queue locks.
*/
static __inline int tcp_reass_lock_try __P((struct tcpcb *))
static __inline int tcp_reass_lock_try (struct tcpcb *)
__attribute__((__unused__));
static __inline void tcp_reass_unlock __P((struct tcpcb *))
static __inline void tcp_reass_unlock (struct tcpcb *)
__attribute__((__unused__));
static __inline int
@ -701,85 +701,85 @@ extern struct mowner tcp_mowner;
#define TCP_HDR_ALIGNED_P(th) ((((vaddr_t) (th)) & 3) == 0)
#endif
int tcp_attach __P((struct socket *));
void tcp_canceltimers __P((struct tcpcb *));
int tcp_timers_invoking __P((struct tcpcb*));
int tcp_attach (struct socket *);
void tcp_canceltimers (struct tcpcb *);
int tcp_timers_invoking (struct tcpcb*);
struct tcpcb *
tcp_close __P((struct tcpcb *));
int tcp_isdead __P((struct tcpcb *));
tcp_close (struct tcpcb *);
int tcp_isdead (struct tcpcb *);
#ifdef INET6
void tcp6_ctlinput __P((int, struct sockaddr *, void *));
void tcp6_ctlinput (int, struct sockaddr *, void *);
#endif
void *tcp_ctlinput __P((int, struct sockaddr *, void *));
int tcp_ctloutput __P((int, struct socket *, int, int, struct mbuf **));
void *tcp_ctlinput (int, struct sockaddr *, void *);
int tcp_ctloutput (int, struct socket *, int, int, struct mbuf **);
struct tcpcb *
tcp_disconnect __P((struct tcpcb *));
tcp_disconnect (struct tcpcb *);
struct tcpcb *
tcp_drop __P((struct tcpcb *, int));
void tcp_dooptions __P((struct tcpcb *,
u_char *, int, struct tcphdr *, struct tcp_opt_info *));
void tcp_drain __P((void));
void tcp_established __P((struct tcpcb *));
void tcp_init __P((void));
tcp_drop (struct tcpcb *, int);
void tcp_dooptions (struct tcpcb *,
u_char *, int, struct tcphdr *, struct tcp_opt_info *);
void tcp_drain (void);
void tcp_established (struct tcpcb *);
void tcp_init (void);
#ifdef INET6
int tcp6_input __P((struct mbuf **, int *, int));
int tcp6_input (struct mbuf **, int *, int);
#endif
void tcp_input __P((struct mbuf *, ...));
u_long tcp_mss_to_advertise __P((const struct ifnet *, int));
void tcp_mss_from_peer __P((struct tcpcb *, int));
void tcp_tcpcb_template __P((void));
void tcp_input (struct mbuf *, ...);
u_long tcp_mss_to_advertise (const struct ifnet *, int);
void tcp_mss_from_peer (struct tcpcb *, int);
void tcp_tcpcb_template (void);
struct tcpcb *
tcp_newtcpcb __P((int, void *));
void tcp_notify __P((struct inpcb *, int));
tcp_newtcpcb (int, void *);
void tcp_notify (struct inpcb *, int);
#ifdef INET6
void tcp6_notify __P((struct in6pcb *, int));
void tcp6_notify (struct in6pcb *, int);
#endif
u_int tcp_optlen __P((struct tcpcb *));
int tcp_output __P((struct tcpcb *));
void tcp_pulloutofband __P((struct socket *,
struct tcphdr *, struct mbuf *, int));
void tcp_quench __P((struct inpcb *, int));
u_int tcp_optlen (struct tcpcb *);
int tcp_output (struct tcpcb *);
void tcp_pulloutofband (struct socket *,
struct tcphdr *, struct mbuf *, int);
void tcp_quench (struct inpcb *, int);
#ifdef INET6
void tcp6_quench __P((struct in6pcb *, int));
void tcp6_quench (struct in6pcb *, int);
#endif
int tcp_reass __P((struct tcpcb *, struct tcphdr *, struct mbuf *, int *));
int tcp_respond __P((struct tcpcb *, struct mbuf *, struct mbuf *,
struct tcphdr *, tcp_seq, tcp_seq, int));
void tcp_rmx_rtt __P((struct tcpcb *));
void tcp_setpersist __P((struct tcpcb *));
void tcp_slowtimo __P((void));
int tcp_reass (struct tcpcb *, struct tcphdr *, struct mbuf *, int *);
int tcp_respond (struct tcpcb *, struct mbuf *, struct mbuf *,
struct tcphdr *, tcp_seq, tcp_seq, int);
void tcp_rmx_rtt (struct tcpcb *);
void tcp_setpersist (struct tcpcb *);
void tcp_slowtimo (void);
struct mbuf *
tcp_template __P((struct tcpcb *));
void tcp_trace __P((int, int, struct tcpcb *, struct mbuf *, int));
tcp_template (struct tcpcb *);
void tcp_trace (int, int, struct tcpcb *, struct mbuf *, int);
struct tcpcb *
tcp_usrclosed __P((struct tcpcb *));
int tcp_sysctl __P((int *, u_int, void *, size_t *, void *, size_t));
int tcp_usrreq __P((struct socket *,
int, struct mbuf *, struct mbuf *, struct mbuf *, struct proc *));
void tcp_xmit_timer __P((struct tcpcb *, uint32_t));
tcp_seq tcp_new_iss __P((struct tcpcb *, tcp_seq));
tcp_seq tcp_new_iss1 __P((void *, void *, u_int16_t, u_int16_t, size_t,
tcp_seq));
tcp_usrclosed (struct tcpcb *);
int tcp_sysctl (int *, u_int, void *, size_t *, void *, size_t);
int tcp_usrreq (struct socket *,
int, struct mbuf *, struct mbuf *, struct mbuf *, struct proc *);
void tcp_xmit_timer (struct tcpcb *, uint32_t);
tcp_seq tcp_new_iss (struct tcpcb *, tcp_seq);
tcp_seq tcp_new_iss1 (void *, void *, u_int16_t, u_int16_t, size_t,
tcp_seq);
int syn_cache_add __P((struct sockaddr *, struct sockaddr *,
int syn_cache_add (struct sockaddr *, struct sockaddr *,
struct tcphdr *, unsigned int, struct socket *,
struct mbuf *, u_char *, int, struct tcp_opt_info *));
void syn_cache_unreach __P((struct sockaddr *, struct sockaddr *,
struct tcphdr *));
struct socket *syn_cache_get __P((struct sockaddr *, struct sockaddr *,
struct mbuf *, u_char *, int, struct tcp_opt_info *);
void syn_cache_unreach (struct sockaddr *, struct sockaddr *,
struct tcphdr *);
struct socket *syn_cache_get (struct sockaddr *, struct sockaddr *,
struct tcphdr *, unsigned int, unsigned int,
struct socket *so, struct mbuf *));
void syn_cache_init __P((void));
void syn_cache_insert __P((struct syn_cache *, struct tcpcb *));
struct syn_cache *syn_cache_lookup __P((struct sockaddr *, struct sockaddr *,
struct syn_cache_head **));
void syn_cache_reset __P((struct sockaddr *, struct sockaddr *,
struct tcphdr *));
int syn_cache_respond __P((struct syn_cache *, struct mbuf *));
void syn_cache_timer __P((void *));
void syn_cache_cleanup __P((struct tcpcb *));
struct socket *so, struct mbuf *);
void syn_cache_init (void);
void syn_cache_insert (struct syn_cache *, struct tcpcb *);
struct syn_cache *syn_cache_lookup (struct sockaddr *, struct sockaddr *,
struct syn_cache_head **);
void syn_cache_reset (struct sockaddr *, struct sockaddr *,
struct tcphdr *);
int syn_cache_respond (struct syn_cache *, struct mbuf *);
void syn_cache_timer (void *);
void syn_cache_cleanup (struct tcpcb *);
int tcp_newreno __P((struct tcpcb *, struct tcphdr *));
int tcp_newreno (struct tcpcb *, struct tcphdr *);
#endif
#endif /* _NETINET_TCP_VAR_H_ */

View File

@ -1,4 +1,4 @@
/* $NetBSD: udp_var.h,v 1.22 2003/08/07 16:33:21 agc Exp $ */
/* $NetBSD: udp_var.h,v 1.23 2004/04/18 21:00:36 matt Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@ -90,13 +90,13 @@ extern struct udpstat udpstat;
#define UDP_HDR_ALIGNED_P(uh) ((((vaddr_t) (uh)) & 3) == 0)
#endif
void *udp_ctlinput __P((int, struct sockaddr *, void *));
void udp_init __P((void));
void udp_input __P((struct mbuf *, ...));
int udp_output __P((struct mbuf *, ...));
int udp_sysctl __P((int *, u_int, void *, size_t *, void *, size_t));
int udp_usrreq __P((struct socket *,
int, struct mbuf *, struct mbuf *, struct mbuf *, struct proc *));
void *udp_ctlinput (int, struct sockaddr *, void *);
void udp_init (void);
void udp_input (struct mbuf *, ...);
int udp_output (struct mbuf *, ...);
int udp_sysctl (int *, u_int, void *, size_t *, void *, size_t);
int udp_usrreq (struct socket *,
int, struct mbuf *, struct mbuf *, struct mbuf *, struct proc *);
#endif
#endif /* _NETINET_UDP_VAR_H_ */