Deleted Added
full compact
if_tap.c (164033) if_tap.c (166438)
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 164033 2006-11-06 13:42:10Z rwatson $
34 * $FreeBSD: head/sys/net/if_tap.c 166438 2007-02-02 22:27:45Z bms $
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>

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

250/*
251 * DEVFS handler
252 *
253 * We need to support two kind of devices - tap and vmnet
254 */
255static void
256tapclone(void *arg, struct ucred *cred, char *name, int namelen, struct cdev **dev)
257{
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>

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

250/*
251 * DEVFS handler
252 *
253 * We need to support two kind of devices - tap and vmnet
254 */
255static void
256tapclone(void *arg, struct ucred *cred, char *name, int namelen, struct cdev **dev)
257{
258 u_int extra;
258 int extra;
259 int i, unit;
260 char *device_name = name;
261
262 if (*dev != NULL)
263 return;
264
265 device_name = TAP;
266 extra = 0;

--- 722 unchanged lines hidden ---
259 int i, unit;
260 char *device_name = name;
261
262 if (*dev != NULL)
263 return;
264
265 device_name = TAP;
266 extra = 0;

--- 722 unchanged lines hidden ---