if_tap.c (213028) | if_tap.c (225177) |
---|---|
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 213028 2010-09-22 21:02:43Z jhb $ | 34 * $FreeBSD: head/sys/net/if_tap.c 225177 2011-08-25 15:51:54Z attilio $ |
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> --- 166 unchanged lines hidden (view full) --- 209tap_destroy(struct tap_softc *tp) 210{ 211 struct ifnet *ifp = tp->tap_ifp; 212 213 /* Unlocked read. */ 214 KASSERT(!(tp->tap_flags & TAP_OPEN), 215 ("%s flags is out of sync", ifp->if_xname)); 216 | 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> --- 166 unchanged lines hidden (view full) --- 209tap_destroy(struct tap_softc *tp) 210{ 211 struct ifnet *ifp = tp->tap_ifp; 212 213 /* Unlocked read. */ 214 KASSERT(!(tp->tap_flags & TAP_OPEN), 215 ("%s flags is out of sync", ifp->if_xname)); 216 |
217 seldrain(&tp->tap_rsel); |
|
217 knlist_destroy(&tp->tap_rsel.si_note); 218 destroy_dev(tp->tap_dev); 219 ether_ifdetach(ifp); 220 if_free_type(ifp, IFT_ETHER); 221 222 mtx_destroy(&tp->tap_mtx); 223 free(tp, M_TAP); 224} --- 860 unchanged lines hidden --- | 218 knlist_destroy(&tp->tap_rsel.si_note); 219 destroy_dev(tp->tap_dev); 220 ether_ifdetach(ifp); 221 if_free_type(ifp, IFT_ETHER); 222 223 mtx_destroy(&tp->tap_mtx); 224 free(tp, M_TAP); 225} --- 860 unchanged lines hidden --- |