if_tap.c (193951) | if_tap.c (194990) |
---|---|
1/*- 2 * Copyright (C) 1999-2000 by Maksim Yevmenkin <m_evmenkin@yahoo.com> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * BASED ON: 27 * ------------------------------------------------------------------------- 28 * 29 * Copyright (c) 1988, Julian Onions <jpo@cs.nott.ac.uk> 30 * Nottingham University 1987. 31 */ 32 33/* | 1/*- 2 * Copyright (C) 1999-2000 by Maksim Yevmenkin <m_evmenkin@yahoo.com> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 17 unchanged lines hidden (view full) --- 26 * BASED ON: 27 * ------------------------------------------------------------------------- 28 * 29 * Copyright (c) 1988, Julian Onions <jpo@cs.nott.ac.uk> 30 * Nottingham University 1987. 31 */ 32 33/* |
34 * $FreeBSD: head/sys/net/if_tap.c 193951 2009-06-10 20:59:32Z kib $ | 34 * $FreeBSD: head/sys/net/if_tap.c 194990 2009-06-25 18:46:30Z kib $ |
35 * $Id: if_tap.c,v 0.21 2000/07/23 21:46:02 max Exp $ 36 */ 37 38#include "opt_compat.h" 39#include "opt_inet.h" 40 41#include <sys/param.h> 42#include <sys/conf.h> --- 886 unchanged lines hidden (view full) --- 929 930 TAPDEBUG("%s writting, minor = %#x\n", 931 ifp->if_xname, dev2unit(dev)); 932 933 if (uio->uio_resid == 0) 934 return (0); 935 936 if ((uio->uio_resid < 0) || (uio->uio_resid > TAPMRU)) { | 35 * $Id: if_tap.c,v 0.21 2000/07/23 21:46:02 max Exp $ 36 */ 37 38#include "opt_compat.h" 39#include "opt_inet.h" 40 41#include <sys/param.h> 42#include <sys/conf.h> --- 886 unchanged lines hidden (view full) --- 929 930 TAPDEBUG("%s writting, minor = %#x\n", 931 ifp->if_xname, dev2unit(dev)); 932 933 if (uio->uio_resid == 0) 934 return (0); 935 936 if ((uio->uio_resid < 0) || (uio->uio_resid > TAPMRU)) { |
937 TAPDEBUG("%s invalid packet len = %d, minor = %#x\n", | 937 TAPDEBUG("%s invalid packet len = %zd, minor = %#x\n", |
938 ifp->if_xname, uio->uio_resid, dev2unit(dev)); 939 940 return (EIO); 941 } 942 943 if ((m = m_uiotombuf(uio, M_DONTWAIT, 0, ETHER_ALIGN, 944 M_PKTHDR)) == NULL) { 945 ifp->if_ierrors ++; --- 170 unchanged lines hidden --- | 938 ifp->if_xname, uio->uio_resid, dev2unit(dev)); 939 940 return (EIO); 941 } 942 943 if ((m = m_uiotombuf(uio, M_DONTWAIT, 0, ETHER_ALIGN, 944 M_PKTHDR)) == NULL) { 945 ifp->if_ierrors ++; --- 170 unchanged lines hidden --- |