if_arcsubr.c (193891) | if_arcsubr.c (194581) |
---|---|
1/* $NetBSD: if_arcsubr.c,v 1.36 2001/06/14 05:44:23 itojun Exp $ */ | 1/* $NetBSD: if_arcsubr.c,v 1.36 2001/06/14 05:44:23 itojun Exp $ */ |
2/* $FreeBSD: head/sys/net/if_arcsubr.c 193891 2009-06-10 09:07:05Z bz $ */ | 2/* $FreeBSD: head/sys/net/if_arcsubr.c 194581 2009-06-21 10:29:31Z rdivacky $ */ |
3 4/*- 5 * Copyright (c) 1994, 1995 Ignatios Souvatzis 6 * Copyright (c) 1982, 1989, 1993 7 * The Regents of the University of California. All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without 10 * modification, are permitted provided that the following conditions --- 656 unchanged lines hidden (view full) --- 667void 668arc_ifdetach(struct ifnet *ifp) 669{ 670 bpfdetach(ifp); 671 if_detach(ifp); 672} 673 674int | 3 4/*- 5 * Copyright (c) 1994, 1995 Ignatios Souvatzis 6 * Copyright (c) 1982, 1989, 1993 7 * The Regents of the University of California. All rights reserved. 8 * 9 * Redistribution and use in source and binary forms, with or without 10 * modification, are permitted provided that the following conditions --- 656 unchanged lines hidden (view full) --- 667void 668arc_ifdetach(struct ifnet *ifp) 669{ 670 bpfdetach(ifp); 671 if_detach(ifp); 672} 673 674int |
675arc_ioctl(struct ifnet *ifp, int command, caddr_t data) | 675arc_ioctl(struct ifnet *ifp, u_long command, caddr_t data) |
676{ 677 struct ifaddr *ifa = (struct ifaddr *) data; 678 struct ifreq *ifr = (struct ifreq *) data; 679 int error = 0; 680 681 switch (command) { 682 case SIOCSIFADDR: 683 ifp->if_flags |= IFF_UP; --- 201 unchanged lines hidden --- | 676{ 677 struct ifaddr *ifa = (struct ifaddr *) data; 678 struct ifreq *ifr = (struct ifreq *) data; 679 int error = 0; 680 681 switch (command) { 682 case SIOCSIFADDR: 683 ifp->if_flags |= IFF_UP; --- 201 unchanged lines hidden --- |