if_tap.c (130585) | if_tap.c (130640) |
---|---|
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 130585 2004-06-16 09:47:26Z phk $ | 34 * $FreeBSD: head/sys/net/if_tap.c 130640 2004-06-17 17:16:53Z phk $ |
35 * $Id: if_tap.c,v 0.21 2000/07/23 21:46:02 max Exp $ 36 */ 37 38#include "opt_inet.h" 39 40#include <sys/param.h> 41#include <sys/conf.h> 42#include <sys/filedesc.h> --- 180 unchanged lines hidden (view full) --- 223 char *name; 224 int namelen; 225 struct cdev **dev; 226{ 227 u_int extra; 228 int i, unit; 229 char *device_name = name; 230 | 35 * $Id: if_tap.c,v 0.21 2000/07/23 21:46:02 max Exp $ 36 */ 37 38#include "opt_inet.h" 39 40#include <sys/param.h> 41#include <sys/conf.h> 42#include <sys/filedesc.h> --- 180 unchanged lines hidden (view full) --- 223 char *name; 224 int namelen; 225 struct cdev **dev; 226{ 227 u_int extra; 228 int i, unit; 229 char *device_name = name; 230 |
231 if (*dev != NODEV) | 231 if (*dev != NULL) |
232 return; 233 234 device_name = TAP; 235 extra = 0; 236 if (strcmp(name, TAP) == 0) { 237 unit = -1; 238 } else if (strcmp(name, VMNET) == 0) { 239 device_name = VMNET; --- 654 unchanged lines hidden --- | 232 return; 233 234 device_name = TAP; 235 extra = 0; 236 if (strcmp(name, TAP) == 0) { 237 unit = -1; 238 } else if (strcmp(name, VMNET) == 0) { 239 device_name = VMNET; --- 654 unchanged lines hidden --- |