diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-04-18 16:26:58 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2005-04-18 16:26:58 +0000 |
commit | 038387325875bd1bd0685773c7e21cd3dd2e7c7b (patch) | |
tree | 04292c31e28471b3b53bb8ccee8177ed890c2ca9 /cpukit/libnetworking/net/if.c | |
parent | Update (diff) | |
download | rtems-038387325875bd1bd0685773c7e21cd3dd2e7c7b.tar.bz2 |
2005-04-18 Ralf Corsepius <ralf.corsepius@rtems.org>
* libnetworking/net/ethernet.h: Add RTEMS outdated either_input.
* libnetworking/net/if.c: Partial update from FreeBSD.
* libnetworking/net/if_ethersubr.c: Partial update from FreeBSD.
Diffstat (limited to 'cpukit/libnetworking/net/if.c')
-rw-r--r-- | cpukit/libnetworking/net/if.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cpukit/libnetworking/net/if.c b/cpukit/libnetworking/net/if.c index 43b0f0c57a..b7a7c1ee21 100644 --- a/cpukit/libnetworking/net/if.c +++ b/cpukit/libnetworking/net/if.c @@ -51,6 +51,7 @@ #include <net/if.h> #include <net/if_dl.h> #include <net/if_types.h> +#include <net/if_var.h> #include <net/radix.h> /* @@ -79,8 +80,7 @@ struct ifnet *ifnet; */ /* ARGSUSED*/ void -ifinit(dummy) - void *dummy; +ifinit(void *dummy) { struct ifnet *ifp; @@ -475,7 +475,7 @@ ifunit(char *name) * Interface ioctls. */ int -ifioctl(struct socket *so, int cmd, caddr_t data, struct proc *p) +ifioctl(struct socket *so, u_long cmd, caddr_t data, struct proc *p) { struct ifnet *ifp; struct ifreq *ifr; @@ -582,7 +582,7 @@ ifioctl(struct socket *so, int cmd, caddr_t data, struct proc *p) error = suser(p->p_ucred, &p->p_acflag); if (error) return (error); - if (ifp->if_ioctl == 0) + if (ifp->if_ioctl == NULL) return (EOPNOTSUPP); error = (*ifp->if_ioctl)(ifp, cmd, data); if (error == 0) @@ -590,7 +590,7 @@ ifioctl(struct socket *so, int cmd, caddr_t data, struct proc *p) return error; case SIOCGIFMEDIA: - if (ifp->if_ioctl == 0) + if (ifp->if_ioctl == NULL) return (EOPNOTSUPP); return ((*ifp->if_ioctl)(ifp, cmd, data)); |