if_wl.c (50002) | if_wl.c (50026) |
---|---|
1/* $Id: if_wl.c,v 1.22 1999/07/06 19:22:54 des Exp $ */ | 1/* $Id: if_wl.c,v 1.23 1999/08/18 06:11:59 mdodd Exp $ */ |
2/* 3 * Redistribution and use in source and binary forms, with or without 4 * modification, are permitted provided that the following conditions 5 * are met: 6 * 1. Redistributions of source code must retain all copyright 7 * notices, this list of conditions and the following disclaimer. 8 * 2. The names of the authors may not be used to endorse or promote products 9 * derived from this software withough specific prior written permission --- 189 unchanged lines hidden (view full) --- 199#include <sys/mbuf.h> 200#include <sys/socket.h> 201#include <sys/syslog.h> 202#include <sys/proc.h> 203 204#include <sys/kernel.h> 205#include <sys/sysctl.h> 206 | 2/* 3 * Redistribution and use in source and binary forms, with or without 4 * modification, are permitted provided that the following conditions 5 * are met: 6 * 1. Redistributions of source code must retain all copyright 7 * notices, this list of conditions and the following disclaimer. 8 * 2. The names of the authors may not be used to endorse or promote products 9 * derived from this software withough specific prior written permission --- 189 unchanged lines hidden (view full) --- 199#include <sys/mbuf.h> 200#include <sys/socket.h> 201#include <sys/syslog.h> 202#include <sys/proc.h> 203 204#include <sys/kernel.h> 205#include <sys/sysctl.h> 206 |
207#include <net/ethernet.h> |
|
207#include <net/if.h> 208#include <net/if_dl.h> 209 210#ifdef INET 211#include <netinet/in.h> 212#include <netinet/in_systm.h> 213#include <netinet/ip.h> 214#include <netinet/if_ether.h> --- 961 unchanged lines hidden (view full) --- 1176 if (sc->wl_if.if_flags & IFF_DEBUG) 1177 printf("wl%d: entered wlioctl()\n",unit); 1178#endif 1179 opri = splimp(); 1180 switch (cmd) { 1181 case SIOCSIFADDR: 1182 case SIOCGIFADDR: 1183 case SIOCSIFMTU: | 208#include <net/if.h> 209#include <net/if_dl.h> 210 211#ifdef INET 212#include <netinet/in.h> 213#include <netinet/in_systm.h> 214#include <netinet/ip.h> 215#include <netinet/if_ether.h> --- 961 unchanged lines hidden (view full) --- 1177 if (sc->wl_if.if_flags & IFF_DEBUG) 1178 printf("wl%d: entered wlioctl()\n",unit); 1179#endif 1180 opri = splimp(); 1181 switch (cmd) { 1182 case SIOCSIFADDR: 1183 case SIOCGIFADDR: 1184 case SIOCSIFMTU: |
1184 error = ether_ioctl(ifp, command, data); | 1185 error = ether_ioctl(ifp, cmd, data); |
1185 break; 1186 1187 case SIOCSIFFLAGS: 1188 if (ifp->if_flags & IFF_ALLMULTI) { 1189 mode |= MOD_ENAL; 1190 } 1191 if (ifp->if_flags & IFF_PROMISC) { 1192 mode |= MOD_PROM; --- 1487 unchanged lines hidden --- | 1186 break; 1187 1188 case SIOCSIFFLAGS: 1189 if (ifp->if_flags & IFF_ALLMULTI) { 1190 mode |= MOD_ENAL; 1191 } 1192 if (ifp->if_flags & IFF_PROMISC) { 1193 mode |= MOD_PROM; --- 1487 unchanged lines hidden --- |