if_atmsubr.c (32925) | if_atmsubr.c (34961) |
---|---|
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 --- 94 unchanged lines hidden (view full) --- 103 struct atm_pseudohdr atmdst, *ad; 104 register struct mbuf *m = m0; 105 register struct rtentry *rt; 106 struct atmllc *atmllc; 107 u_int32_t atm_flags; 108 109 if ((ifp->if_flags & (IFF_UP|IFF_RUNNING)) != (IFF_UP|IFF_RUNNING)) 110 senderr(ENETDOWN); | 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 --- 94 unchanged lines hidden (view full) --- 103 struct atm_pseudohdr atmdst, *ad; 104 register struct mbuf *m = m0; 105 register struct rtentry *rt; 106 struct atmllc *atmllc; 107 u_int32_t atm_flags; 108 109 if ((ifp->if_flags & (IFF_UP|IFF_RUNNING)) != (IFF_UP|IFF_RUNNING)) 110 senderr(ENETDOWN); |
111 gettime(&ifp->if_lastchange); | 111 getmicrotime(&ifp->if_lastchange); |
112 113 /* 114 * check route 115 */ 116 if ((rt = rt0) != NULL) { 117 118 if ((rt->rt_flags & RTF_UP) == 0) { /* route went down! */ 119 if ((rt0 = rt = RTALLOC1(dst, 0)) != NULL) --- 138 unchanged lines hidden (view full) --- 258 register struct ifqueue *inq; 259 u_int16_t etype = ETHERTYPE_IP; /* default */ 260 int s; 261 262 if ((ifp->if_flags & IFF_UP) == 0) { 263 m_freem(m); 264 return; 265 } | 112 113 /* 114 * check route 115 */ 116 if ((rt = rt0) != NULL) { 117 118 if ((rt->rt_flags & RTF_UP) == 0) { /* route went down! */ 119 if ((rt0 = rt = RTALLOC1(dst, 0)) != NULL) --- 138 unchanged lines hidden (view full) --- 258 register struct ifqueue *inq; 259 u_int16_t etype = ETHERTYPE_IP; /* default */ 260 int s; 261 262 if ((ifp->if_flags & IFF_UP) == 0) { 263 m_freem(m); 264 return; 265 } |
266 gettime(&ifp->if_lastchange); | 266 getmicrotime(&ifp->if_lastchange); |
267 ifp->if_ibytes += m->m_pkthdr.len; 268 269#if NBPFILTER > 0 270 if (ifp->if_bpf) { 271 /* 272 * We need to prepend the address family as 273 * a four byte field. Cons up a dummy header 274 * to pacify bpf. This is safe because bpf --- 126 unchanged lines hidden --- | 267 ifp->if_ibytes += m->m_pkthdr.len; 268 269#if NBPFILTER > 0 270 if (ifp->if_bpf) { 271 /* 272 * We need to prepend the address family as 273 * a four byte field. Cons up a dummy header 274 * to pacify bpf. This is safe because bpf --- 126 unchanged lines hidden --- |