Deleted Added
full compact
if_tap.c (255360) if_tap.c (256008)
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 255360 2013-09-07 13:50:13Z davide $
34 * $FreeBSD: head/sys/net/if_tap.c 256008 2013-10-02 20:44:36Z glebius $
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>

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

215static void
216tap_destroy(struct tap_softc *tp)
217{
218 struct ifnet *ifp = tp->tap_ifp;
219
220 CURVNET_SET(ifp->if_vnet);
221 destroy_dev(tp->tap_dev);
222 seldrain(&tp->tap_rsel);
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>

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

215static void
216tap_destroy(struct tap_softc *tp)
217{
218 struct ifnet *ifp = tp->tap_ifp;
219
220 CURVNET_SET(ifp->if_vnet);
221 destroy_dev(tp->tap_dev);
222 seldrain(&tp->tap_rsel);
223 knlist_clear(&tp->tap_rsel.si_note, 0);
223 knlist_destroy(&tp->tap_rsel.si_note);
224 ether_ifdetach(ifp);
225 if_free(ifp);
226
227 mtx_destroy(&tp->tap_mtx);
228 free(tp, M_TAP);
229 CURVNET_RESTORE();
230}

--- 884 unchanged lines hidden ---
224 knlist_destroy(&tp->tap_rsel.si_note);
225 ether_ifdetach(ifp);
226 if_free(ifp);
227
228 mtx_destroy(&tp->tap_mtx);
229 free(tp, M_TAP);
230 CURVNET_RESTORE();
231}

--- 884 unchanged lines hidden ---