if_iso88025subr.c (128636) | if_iso88025subr.c (130549) |
---|---|
1/* 2 * Copyright (c) 1998, Larry Lile 3 * All rights reserved. 4 * 5 * For latest sources and information on this driver, please 6 * go to http://anarchy.stdio.com. 7 * 8 * Questions, comments or suggestions should be directed to --- 16 unchanged lines hidden (view full) --- 25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * | 1/* 2 * Copyright (c) 1998, Larry Lile 3 * All rights reserved. 4 * 5 * For latest sources and information on this driver, please 6 * go to http://anarchy.stdio.com. 7 * 8 * Questions, comments or suggestions should be directed to --- 16 unchanged lines hidden (view full) --- 25 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 * |
33 * $FreeBSD: head/sys/net/if_iso88025subr.c 128636 2004-04-25 09:24:52Z luigi $ | 33 * $FreeBSD: head/sys/net/if_iso88025subr.c 130549 2004-06-15 23:57:42Z mlaier $ |
34 * 35 */ 36 37/* 38 * 39 * General ISO 802.5 (Token Ring) support routines 40 * 41 */ --- 383 unchanged lines hidden (view full) --- 425 } else if (bcmp(th->iso88025_dhost, th->iso88025_shost, 426 ETHER_ADDR_LEN) == 0) { 427 (void) if_simloop(ifp, m, dst->sa_family, 428 ISO88025_HDR_LEN); 429 return(0); /* XXX */ 430 } 431 } 432 | 34 * 35 */ 36 37/* 38 * 39 * General ISO 802.5 (Token Ring) support routines 40 * 41 */ --- 383 unchanged lines hidden (view full) --- 425 } else if (bcmp(th->iso88025_dhost, th->iso88025_shost, 426 ETHER_ADDR_LEN) == 0) { 427 (void) if_simloop(ifp, m, dst->sa_family, 428 ISO88025_HDR_LEN); 429 return(0); /* XXX */ 430 } 431 } 432 |
433 if (! IF_HANDOFF_ADJ(&ifp->if_snd, m, ifp, ISO88025_HDR_LEN + LLC_SNAPFRAMELEN) ) { | 433 IFQ_HANDOFF_ADJ(ifp, m, ISO88025_HDR_LEN + LLC_SNAPFRAMELEN, error); 434 if (error) { |
434 printf("iso88025_output: packet dropped QFULL.\n"); | 435 printf("iso88025_output: packet dropped QFULL.\n"); |
435 senderr(ENOBUFS); | 436 ifp->if_oerrors++; |
436 } 437 return (error); 438 439bad: 440 ifp->if_oerrors++; 441 if (m) 442 m_freem(m); 443 return (error); --- 340 unchanged lines hidden --- | 437 } 438 return (error); 439 440bad: 441 ifp->if_oerrors++; 442 if (m) 443 m_freem(m); 444 return (error); --- 340 unchanged lines hidden --- |