Deleted Added
full compact
if_tap.c (341884) if_tap.c (346803)
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: stable/11/sys/net/if_tap.c 341884 2018-12-12 11:29:21Z hselasky $
34 * $FreeBSD: stable/11/sys/net/if_tap.c 346803 2019-04-28 03:51:08Z kevans $
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>

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

170 "Allow user to open /dev/tap (based on node permissions)");
171SYSCTL_INT(_net_link_tap, OID_AUTO, up_on_open, CTLFLAG_RW, &tapuponopen, 0,
172 "Bring interface up when /dev/tap is opened");
173SYSCTL_INT(_net_link_tap, OID_AUTO, devfs_cloning, CTLFLAG_RWTUN, &tapdclone, 0,
174 "Enable legacy devfs interface creation");
175SYSCTL_INT(_net_link_tap, OID_AUTO, debug, CTLFLAG_RW, &tapdebug, 0, "");
176
177DEV_MODULE(if_tap, tapmodevent, NULL);
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>

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

170 "Allow user to open /dev/tap (based on node permissions)");
171SYSCTL_INT(_net_link_tap, OID_AUTO, up_on_open, CTLFLAG_RW, &tapuponopen, 0,
172 "Bring interface up when /dev/tap is opened");
173SYSCTL_INT(_net_link_tap, OID_AUTO, devfs_cloning, CTLFLAG_RWTUN, &tapdclone, 0,
174 "Enable legacy devfs interface creation");
175SYSCTL_INT(_net_link_tap, OID_AUTO, debug, CTLFLAG_RW, &tapdebug, 0, "");
176
177DEV_MODULE(if_tap, tapmodevent, NULL);
178MODULE_VERSION(if_tap, 1);
178
179static int
180tap_clone_create(struct if_clone *ifc, int unit, caddr_t params)
181{
182 struct cdev *dev;
183 int i;
184
185 /* Find any existing device, or allocate new unit number. */

--- 942 unchanged lines hidden ---
179
180static int
181tap_clone_create(struct if_clone *ifc, int unit, caddr_t params)
182{
183 struct cdev *dev;
184 int i;
185
186 /* Find any existing device, or allocate new unit number. */

--- 942 unchanged lines hidden ---