mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-01 00:18:15 +01:00
Add missing ifr variable declaration that I forgot when adding MTU
ioctl support.
This commit is contained in:
parent
f66e339c33
commit
6979fee553
@ -39,7 +39,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: if_ie.c,v 1.6 1994/05/27 04:02:04 rgrimes Exp $
|
||||
* $Id: if_ie.c,v 1.7 1994/08/08 13:33:15 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -1663,6 +1663,7 @@ ieioctl(ifp, command, data)
|
||||
{
|
||||
struct ifaddr *ifa = (struct ifaddr *)data;
|
||||
struct ie_softc *ie = &ie_softc[ifp->if_unit];
|
||||
struct ifreq *ifr = (struct ifreq *) data;
|
||||
int s, error = 0;
|
||||
|
||||
s = splimp();
|
||||
@ -1738,8 +1739,8 @@ ieioctl(ifp, command, data)
|
||||
* Update multicast listeners
|
||||
*/
|
||||
error = ((command == SIOCADDMULTI)
|
||||
? ether_addmulti((struct ifreq *)data, &ie->arpcom)
|
||||
: ether_delmulti((struct ifreq *)data, &ie->arpcom));
|
||||
? ether_addmulti(ifr, &ie->arpcom)
|
||||
: ether_delmulti(ifr, &ie->arpcom));
|
||||
|
||||
if(error == ENETRESET) {
|
||||
/* reset multicast filtering */
|
||||
|
@ -39,7 +39,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: if_ie.c,v 1.6 1994/05/27 04:02:04 rgrimes Exp $
|
||||
* $Id: if_ie.c,v 1.7 1994/08/08 13:33:15 davidg Exp $
|
||||
*/
|
||||
|
||||
/*
|
||||
@ -1663,6 +1663,7 @@ ieioctl(ifp, command, data)
|
||||
{
|
||||
struct ifaddr *ifa = (struct ifaddr *)data;
|
||||
struct ie_softc *ie = &ie_softc[ifp->if_unit];
|
||||
struct ifreq *ifr = (struct ifreq *) data;
|
||||
int s, error = 0;
|
||||
|
||||
s = splimp();
|
||||
@ -1738,8 +1739,8 @@ ieioctl(ifp, command, data)
|
||||
* Update multicast listeners
|
||||
*/
|
||||
error = ((command == SIOCADDMULTI)
|
||||
? ether_addmulti((struct ifreq *)data, &ie->arpcom)
|
||||
: ether_delmulti((struct ifreq *)data, &ie->arpcom));
|
||||
? ether_addmulti(ifr, &ie->arpcom)
|
||||
: ether_delmulti(ifr, &ie->arpcom));
|
||||
|
||||
if(error == ENETRESET) {
|
||||
/* reset multicast filtering */
|
||||
|
Loading…
Reference in New Issue
Block a user