diff options
author | bde <bde@FreeBSD.org> | 1995-12-02 19:38:06 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-12-02 19:38:06 +0000 |
commit | 66a99891e36527d5c77a18274159d0095a83f4eb (patch) | |
tree | f7f809c8e9f7a5048e5081473031c8338d4988ab /sys/netinet | |
parent | b3a3046e1be780219c042aae92d9e1e6d40305e7 (diff) | |
download | FreeBSD-src-66a99891e36527d5c77a18274159d0095a83f4eb.zip FreeBSD-src-66a99891e36527d5c77a18274159d0095a83f4eb.tar.gz |
Completed function declarations and/or added prototypes.
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/if_ether.c | 5 | ||||
-rw-r--r-- | sys/netinet/igmp.c | 6 | ||||
-rw-r--r-- | sys/netinet/in_proto.c | 8 | ||||
-rw-r--r-- | sys/netinet/in_rmx.c | 5 | ||||
-rw-r--r-- | sys/netinet/ip_fw.c | 13 | ||||
-rw-r--r-- | sys/netinet/ip_mroute.c | 29 | ||||
-rw-r--r-- | sys/netinet/ip_mroute.h | 6 |
7 files changed, 62 insertions, 10 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c index 380fdd4..74eb792 100644 --- a/sys/netinet/if_ether.c +++ b/sys/netinet/if_ether.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)if_ether.c 8.1 (Berkeley) 6/10/93 - * $Id: if_ether.c,v 1.19 1995/10/05 20:08:39 wollman Exp $ + * $Id: if_ether.c,v 1.20 1995/10/22 19:07:58 phk Exp $ */ /* @@ -63,6 +63,8 @@ #include <netinet/ip.h> #include <netinet/if_ether.h> +extern int arpioctl __P((int cmd, caddr_t data)); + #define SIN(s) ((struct sockaddr_in *)s) #define SDL(s) ((struct sockaddr_dl *)s) #define SRP(s) ((struct sockaddr_inarp *)s) @@ -91,6 +93,7 @@ static LIST_HEAD(, llinfo_arp) llinfo_arp; static void arprequest __P((struct arpcom *, u_long *, u_long *, u_char *)); static void arptfree __P((struct llinfo_arp *)); +static void arp_rtrequest __P((int, struct rtentry *, struct sockaddr *)); static void arptimer __P((void *)); static struct llinfo_arp *arplookup __P((u_long, int, int)); static void in_arpinput __P((struct mbuf *)); diff --git a/sys/netinet/igmp.c b/sys/netinet/igmp.c index 85b41ee..cbbe462 100644 --- a/sys/netinet/igmp.c +++ b/sys/netinet/igmp.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * @(#)igmp.c 8.1 (Berkeley) 7/19/93 - * $Id: igmp.c,v 1.12 1995/06/13 17:51:05 wollman Exp $ + * $Id: igmp.c,v 1.13 1995/11/14 20:33:52 phk Exp $ */ /* @@ -67,6 +67,10 @@ #include <netinet/igmp.h> #include <netinet/igmp_var.h> +extern int fill_rti __P((struct in_multi *inm)); +extern struct router_info * + find_rti __P((struct ifnet *ifp)); + struct igmpstat igmpstat; SYSCTL_STRUCT(_net_inet_igmp, IGMPCTL_STATS, stats, CTLFLAG_RD, diff --git a/sys/netinet/in_proto.c b/sys/netinet/in_proto.c index e83d3c0..802b580 100644 --- a/sys/netinet/in_proto.c +++ b/sys/netinet/in_proto.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)in_proto.c 8.2 (Berkeley) 2/9/95 - * $Id: in_proto.c,v 1.21 1995/11/14 20:34:05 phk Exp $ + * $Id: in_proto.c,v 1.22 1995/11/20 12:28:16 phk Exp $ */ #include <sys/param.h> @@ -71,11 +71,13 @@ */ #ifdef IPXIP -void ipxip_input(), ipxip_ctlinput(); +#include <netipx/ipx.h> +#include <netipx/ipx_ip.h> #endif #ifdef NSIP -void idpip_input(), nsip_ctlinput(); +#include <netns/ns.h> +#include <netns/ns_if.h> #endif #ifdef TPIP diff --git a/sys/netinet/in_rmx.c b/sys/netinet/in_rmx.c index ee3be35..7e8be6e 100644 --- a/sys/netinet/in_rmx.c +++ b/sys/netinet/in_rmx.c @@ -26,7 +26,7 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: in_rmx.c,v 1.18 1995/11/09 20:22:59 phk Exp $ + * $Id: in_rmx.c,v 1.19 1995/11/14 20:34:06 phk Exp $ */ /* @@ -69,6 +69,9 @@ #include <netinet/tcpip.h> #endif /* not MTUDISC */ +extern int in_inithead __P((void **head, int off)); +extern void in_rtqdrain __P((void)); + #define RTPRF_OURS RTF_PROTO3 /* set on routes we manage */ /* diff --git a/sys/netinet/ip_fw.c b/sys/netinet/ip_fw.c index fc55aa8..890daa3 100644 --- a/sys/netinet/ip_fw.c +++ b/sys/netinet/ip_fw.c @@ -11,7 +11,7 @@ * * This software is provided ``AS IS'' without any warranties of any kind. * - * $Id: ip_fw.c,v 1.25 1995/10/29 15:32:31 phk Exp $ + * $Id: ip_fw.c,v 1.26 1995/11/14 20:34:10 phk Exp $ */ /* @@ -71,6 +71,17 @@ #define dprint_ip(a) #endif +static int add_entry __P((struct ip_fw **chainptr, struct ip_fw *frwl)); +static int del_entry __P((struct ip_fw **chainptr, struct ip_fw *frwl)); +static struct ip_fw * + check_ipfw_struct __P(( struct mbuf *m)); +static int clr_entry __P((struct ip_fw **chainptr, struct ip_fw *frwl)); +static void free_fw_chain __P((struct ip_fw **chainptr)); +static int ipopts_match __P((struct ip *ip, struct ip_fw *f)); +static int port_match __P((u_short *portptr, int nports, u_short port, + int range_flag)); +static int tcpflg_match __P((struct tcphdr *tcp, struct ip_fw *f)); +static void zero_fw_chain __P((struct ip_fw *chainptr)); /* * Returns TRUE if the port is matched by the vector, FALSE otherwise diff --git a/sys/netinet/ip_mroute.c b/sys/netinet/ip_mroute.c index 593ea8c..d68e283 100644 --- a/sys/netinet/ip_mroute.c +++ b/sys/netinet/ip_mroute.c @@ -9,7 +9,7 @@ * Modified by Bill Fenner, PARC, April 1995 * * MROUTING Revision: 3.5 - * $Id: ip_mroute.c,v 1.24 1995/10/29 15:32:35 phk Exp $ + * $Id: ip_mroute.c,v 1.25 1995/11/14 20:34:16 phk Exp $ */ @@ -38,6 +38,8 @@ #include <netinet/ip_mroute.h> #include <netinet/udp.h> +extern void rsvp_input __P((struct mbuf *m, int iphlen)); + #ifndef NTOHL #if BYTE_ORDER != BIG_ENDIAN #define NTOHL(d) ((d) = ntohl((d))) @@ -53,6 +55,17 @@ #endif #ifndef MROUTING +extern void ipip_input __P((struct mbuf *m)); +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((int cmd, struct socket *so, + struct mbuf **m)); +extern int _ip_mrouter_set __P((int cmd, struct socket *so, + struct mbuf *m)); +extern int _mrt_ioctl __P((int req, caddr_t data, struct proc *p)); + /* * Dummy routines and globals used when multicast routing is not compiled in. */ @@ -191,11 +204,14 @@ ip_rsvp_force_done(so) * except for netstat or debugging purposes. */ #ifndef MROUTE_LKM +extern void ipip_input __P((struct mbuf *m, int iphlen)); struct socket *ip_mrouter = NULL; struct mrtstat mrtstat; int ip_mrtproto = IGMP_DVMRP; /* for netstat only */ #else /* MROUTE_LKM */ +#error /* the function definition will have a syntax error */ +extern void X_ipip_input __P((struct mbuf *m)); extern struct mrtstat mrtstat; static int ip_mrtproto; #endif @@ -266,6 +282,14 @@ static int have_encap_tunnel = 0; 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((int cmd, struct socket *so, struct mbuf **m)); +static int X_ip_mrouter_set __P((int cmd, struct socket *so, struct mbuf *m)); +static int X_legal_vif_num __P((int vif)); +static int X_mrt_ioctl __P((int cmd, caddr_t data)); + static int get_sg_cnt(struct sioc_sg_req *); static int get_vif_cnt(struct sioc_vif_req *); static int ip_mrouter_init(struct socket *, struct mbuf *); @@ -273,6 +297,7 @@ static int add_vif(struct vifctl *); static int del_vif(vifi_t *); static int add_mfc(struct mfcctl *); static int del_mfc(struct mfcctl *); +static int socket_send(struct socket *, struct mbuf *, struct sockaddr_in *); static int get_version(struct mbuf *); static int get_assert(struct mbuf *); static int set_assert(int *); @@ -441,7 +466,7 @@ X_mrt_ioctl(cmd, data) } #ifndef MROUTE_LKM -int (*mrt_ioctl)(int, caddr_t, struct proc *) = X_mrt_ioctl; +int (*mrt_ioctl)(int, caddr_t) = X_mrt_ioctl; #endif /* diff --git a/sys/netinet/ip_mroute.h b/sys/netinet/ip_mroute.h index d425993..aaded80 100644 --- a/sys/netinet/ip_mroute.h +++ b/sys/netinet/ip_mroute.h @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * @(#)ip_mroute.h 8.1 (Berkeley) 6/10/93 - * $Id: ip_mroute.h,v 1.8 1995/06/13 17:51:13 wollman Exp $ + * $Id: ip_mroute.h,v 1.9 1995/08/23 18:20:17 wollman Exp $ */ #ifndef _NETINET_IP_MROUTE_H_ @@ -251,7 +251,11 @@ struct tbf extern int (*ip_mrouter_set) __P((int, struct socket *, struct mbuf *)); extern int (*ip_mrouter_get) __P((int, struct socket *, struct mbuf **)); extern int (*ip_mrouter_done) __P((void)); +#ifdef MROUTING +extern int (*mrt_ioctl) __P((int, caddr_t)); +#else extern int (*mrt_ioctl) __P((int, caddr_t, struct proc *)); +#endif #endif /* KERNEL */ |