diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-04-18 16:36:20 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-04-18 16:36:20 +0000 |
commit | 88d99508351846afbc0047423fcfcffe27243ff4 (patch) | |
tree | fd6fd12fcd0c04500223c1ea5b26527fb106c715 /cpukit/libnetworking/net/if_loop.c | |
parent | 2005-04-18 Ralf Corsepius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-88d99508351846afbc0047423fcfcffe27243ff4.tar.bz2 |
2005-04-18 Ralf Corsepius <ralf.corsepius@rtems.org>
* libnetworking/net/if.h: Update from FreeBSD.
* libnetworking/net/if_loop.c: Reflect updates.
* libnetworking/net/if_ppp.c: Reflect updates.
* libnetworking/net/if_types.h: Update from FreeBSD.
Diffstat (limited to 'cpukit/libnetworking/net/if_loop.c')
-rw-r--r-- | cpukit/libnetworking/net/if_loop.c | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/cpukit/libnetworking/net/if_loop.c b/cpukit/libnetworking/net/if_loop.c index d0c63f58cf..c84abd9ded 100644 --- a/cpukit/libnetworking/net/if_loop.c +++ b/cpukit/libnetworking/net/if_loop.c @@ -27,7 +27,7 @@ * SUCH DAMAGE. * * @(#)if_loop.c 8.2 (Berkeley) 1/9/95 - * $FreeBSD: src/sys/net/if_loop.c,v 1.102 2004/08/27 18:33:07 andre Exp $ + * $FreeBSD: src/sys/net/if_loop.c,v 1.104 2005/02/24 01:34:01 sam Exp $ */ /* @@ -83,14 +83,12 @@ #ifdef NETATALK #include <netatalk/at.h> #include <netatalk/at_var.h> -#endif /* NETATALK */ - -#include "bpfilter.h" +#endif -static int loioctl __P((struct ifnet *, int, caddr_t)); -static void lortrequest __P((int, struct rtentry *, struct sockaddr *)); +static int loioctl(struct ifnet *, u_long, caddr_t); +static void lortrequest(int, struct rtentry *, struct sockaddr *); - void rtems_bsdnet_loopattach __P((void *)); + void rtems_bsdnet_loopattach(void *); PSEUDO_SET(loopattach, if_loop); #ifdef TINY_LOMTU @@ -246,7 +244,7 @@ lortrequest(cmd, rt, sa) static int loioctl(ifp, cmd, data) register struct ifnet *ifp; - int cmd; + u_long cmd; caddr_t data; { register struct ifaddr *ifa; @@ -276,6 +274,10 @@ loioctl(ifp, cmd, data) case AF_INET: break; #endif +#ifdef INET6 + case AF_INET6: + break; +#endif default: error = EAFNOSUPPORT; @@ -287,6 +289,9 @@ loioctl(ifp, cmd, data) ifp->if_mtu = ifr->ifr_mtu; break; + case SIOCSIFFLAGS: + break; + default: error = EINVAL; } |