Deleted Added
full compact
if_tap.c (256008) if_tap.c (257078)
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 256008 2013-10-02 20:44:36Z glebius $
34 * $FreeBSD: head/sys/net/if_tap.c 257078 2013-10-24 22:21:31Z grehan $
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>

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

200{
201 struct cdev *dev;
202 int i;
203
204 /* Find any existing device, or allocate new unit number. */
205 i = clone_create(&tapclones, &tap_cdevsw, &unit, &dev, VMNET_DEV_MASK);
206 if (i) {
207 dev = make_dev(&tap_cdevsw, unit | VMNET_DEV_MASK, UID_ROOT,
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>

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

200{
201 struct cdev *dev;
202 int i;
203
204 /* Find any existing device, or allocate new unit number. */
205 i = clone_create(&tapclones, &tap_cdevsw, &unit, &dev, VMNET_DEV_MASK);
206 if (i) {
207 dev = make_dev(&tap_cdevsw, unit | VMNET_DEV_MASK, UID_ROOT,
208 GID_WHEEL, 0600, "%s%d", tapname, unit);
208 GID_WHEEL, 0600, "%s%d", vmnetname, unit);
209 }
210
211 tapcreate(dev);
212 return (0);
213}
214
215static void
216tap_destroy(struct tap_softc *tp)

--- 899 unchanged lines hidden ---
209 }
210
211 tapcreate(dev);
212 return (0);
213}
214
215static void
216tap_destroy(struct tap_softc *tp)

--- 899 unchanged lines hidden ---