Deleted Added
full compact
if_tap.c (93752) if_tap.c (95883)
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 93752 2002-04-04 06:03:17Z luigi $
34 * $FreeBSD: head/sys/net/if_tap.c 95883 2002-05-01 20:44:46Z alfred $
35 * $Id: if_tap.c,v 0.21 2000/07/23 21:46:02 max Exp $
36 */
37
38#include "opt_inet.h"
39
40#include <sys/param.h>
41#include <sys/conf.h>
42#include <sys/filedesc.h>

--- 578 unchanged lines hidden (view full) ---

621
622 if (ifp->if_snd.ifq_len != 0) {
623 if (tp->tap_flags & TAP_RWAIT) {
624 tp->tap_flags &= ~TAP_RWAIT;
625 wakeup((caddr_t)tp);
626 }
627
628 if ((tp->tap_flags & TAP_ASYNC) && (tp->tap_sigio != NULL))
35 * $Id: if_tap.c,v 0.21 2000/07/23 21:46:02 max Exp $
36 */
37
38#include "opt_inet.h"
39
40#include <sys/param.h>
41#include <sys/conf.h>
42#include <sys/filedesc.h>

--- 578 unchanged lines hidden (view full) ---

621
622 if (ifp->if_snd.ifq_len != 0) {
623 if (tp->tap_flags & TAP_RWAIT) {
624 tp->tap_flags &= ~TAP_RWAIT;
625 wakeup((caddr_t)tp);
626 }
627
628 if ((tp->tap_flags & TAP_ASYNC) && (tp->tap_sigio != NULL))
629 pgsigio(tp->tap_sigio, SIGIO, 0);
629 pgsigio(&tp->tap_sigio, SIGIO, 0);
630
631 selwakeup(&tp->tap_rsel);
632 ifp->if_opackets ++; /* obytes are counted in ether_output */
633 }
634
635 ifp->if_flags &= ~IFF_OACTIVE;
636 splx(s);
637} /* tapifstart */

--- 309 unchanged lines hidden ---
630
631 selwakeup(&tp->tap_rsel);
632 ifp->if_opackets ++; /* obytes are counted in ether_output */
633 }
634
635 ifp->if_flags &= ~IFF_OACTIVE;
636 splx(s);
637} /* tapifstart */

--- 309 unchanged lines hidden ---