summaryrefslogtreecommitdiffstats
path: root/sys/netinet/in.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netinet/in.c')
-rw-r--r--sys/netinet/in.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/netinet/in.c b/sys/netinet/in.c
index e8b481b..05bd4ca 100644
--- a/sys/netinet/in.c
+++ b/sys/netinet/in.c
@@ -31,9 +31,11 @@
* SUCH DAMAGE.
*
* @(#)in.c 8.2 (Berkeley) 11/15/93
+ * $Id: in.c,v 1.3 1994/08/02 07:48:12 davidg Exp $
*/
#include <sys/param.h>
+#include <sys/systm.h>
#include <sys/ioctl.h>
#include <sys/errno.h>
#include <sys/malloc.h>
@@ -91,6 +93,7 @@ int subnetsarelocal = SUBNETSARELOCAL;
* is true, this includes other subnets of the local net.
* Otherwise, it includes only the directly-connected (sub)nets.
*/
+int
in_localaddr(in)
struct in_addr in;
{
@@ -114,6 +117,7 @@ in_localaddr(in)
* that may not be forwarded, or whether datagrams to that destination
* may be forwarded.
*/
+int
in_canforward(in)
struct in_addr in;
{
@@ -156,6 +160,7 @@ extern struct ifnet loif;
* Ifp is 0 if not an interface-specific ioctl.
*/
/* ARGSUSED */
+int
in_control(so, cmd, data, ifp)
struct socket *so;
int cmd;
@@ -395,6 +400,7 @@ in_ifscrub(ifp, ia)
* Initialize an interface's internet address
* and routing table entry.
*/
+int
in_ifinit(ifp, ia, sin, scrub)
register struct ifnet *ifp;
register struct in_ifaddr *ia;
@@ -403,7 +409,7 @@ in_ifinit(ifp, ia, sin, scrub)
{
register u_long i = ntohl(sin->sin_addr.s_addr);
struct sockaddr_in oldaddr;
- int s = splimp(), flags = RTF_UP, error, ether_output();
+ int s = splimp(), flags = RTF_UP, error;
oldaddr = ia->ia_addr;
ia->ia_addr = *sin;
@@ -483,6 +489,7 @@ in_ifinit(ifp, ia, sin, scrub)
/*
* Return 1 if the address might be a local broadcast address.
*/
+int
in_broadcast(in, ifp)
struct in_addr in;
struct ifnet *ifp;
@@ -584,7 +591,7 @@ in_addmulti(ap, ifp)
/*
* Delete a multicast address record.
*/
-int
+void
in_delmulti(inm)
register struct in_multi *inm;
{
OpenPOWER on IntegriCloud