if_atmsubr.c (148883) | if_atmsubr.c (148887) |
---|---|
1/* $NetBSD: if_atmsubr.c,v 1.10 1997/03/11 23:19:51 chuck Exp $ */ 2 3/*- 4 * 5 * Copyright (c) 1996 Charles D. Cranor and Washington University. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 21 unchanged lines hidden (view full) --- 30 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 32 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 * 34 * if_atmsubr.c 35 */ 36 37#include <sys/cdefs.h> | 1/* $NetBSD: if_atmsubr.c,v 1.10 1997/03/11 23:19:51 chuck Exp $ */ 2 3/*- 4 * 5 * Copyright (c) 1996 Charles D. Cranor and Washington University. 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 21 unchanged lines hidden (view full) --- 30 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 31 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 32 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 * 34 * if_atmsubr.c 35 */ 36 37#include <sys/cdefs.h> |
38__FBSDID("$FreeBSD: head/sys/net/if_atmsubr.c 148883 2005-08-09 08:39:56Z glebius $"); | 38__FBSDID("$FreeBSD: head/sys/net/if_atmsubr.c 148887 2005-08-09 10:20:02Z rwatson $"); |
39 40#include "opt_inet.h" 41#include "opt_inet6.h" 42#include "opt_mac.h" 43#include "opt_natm.h" 44 45#include <sys/param.h> 46#include <sys/systm.h> --- 86 unchanged lines hidden (view full) --- 133 u_int32_t atm_flags; 134 135#ifdef MAC 136 error = mac_check_ifnet_transmit(ifp, m); 137 if (error) 138 senderr(error); 139#endif 140 | 39 40#include "opt_inet.h" 41#include "opt_inet6.h" 42#include "opt_mac.h" 43#include "opt_natm.h" 44 45#include <sys/param.h> 46#include <sys/systm.h> --- 86 unchanged lines hidden (view full) --- 133 u_int32_t atm_flags; 134 135#ifdef MAC 136 error = mac_check_ifnet_transmit(ifp, m); 137 if (error) 138 senderr(error); 139#endif 140 |
141 if ((ifp->if_flags & (IFF_UP | IFF_RUNNING)) != (IFF_UP | IFF_RUNNING)) | 141 if (!((ifp->if_flags & IFF_UP) && 142 (ifp->if_drv_flags & IFF_DRV_RUNNING))) |
142 senderr(ENETDOWN); 143 144 /* 145 * check for non-native ATM traffic (dst != NULL) 146 */ 147 if (dst) { 148 switch (dst->sa_family) { 149 --- 382 unchanged lines hidden --- | 143 senderr(ENETDOWN); 144 145 /* 146 * check for non-native ATM traffic (dst != NULL) 147 */ 148 if (dst) { 149 switch (dst->sa_family) { 150 --- 382 unchanged lines hidden --- |