Re: Tun driver?

2000-12-16 Thread Bill Fumerola

On Thu, Dec 14, 2000 at 08:00:18AM -0800, Dan "Mahir" Phoenix wrote:
 what you mean device side?
 you mean server side?

He meant exactly what he said:

[billf.yahoo-root 16:26:00]
 /dev # ifconfig tun0
ifconfig: interface tun0 does not exist
[billf.yahoo-root 16:26:09]
 /dev # dd if=/dev/tun0 of=/dev/null count=0
0+0 records in
0+0 records out
0 bytes transferred in 0.14 secs (0 bytes/sec)
[billf.yahoo-root 16:26:18]
 /dev # ifconfig tun0
tun0: flags=8010POINTOPOINT,MULTICAST mtu 1500
[billf.yahoo-root 16:26:20]
 /dev #

Some program needs to open() the device for it to register.
The following snippet of code (around line 155 of sys/net/if_tun.c)
is relevant:
tp = dev-si_drv1;
if (!tp) {
tuncreate(dev);
tp = dev-si_drv1;
}

.. and tuncreate() sets up the device and if_attach()s the driver,
which makes it appear in the list ifconfig works off of.

-- 
Bill Fumerola - security yahoo / Yahoo! inc.
  - [EMAIL PROTECTED] / [EMAIL PROTECTED]





To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: Tun driver?

2000-12-14 Thread Dan Phoenix

what you mean device side?
you mean server side?









--
Dan


+---+ 
| - Daniel Phoenix  Mail to:[EMAIL PROTECTED]|   | 
| |   / ___   |     |   | 
| |  /|/  /|  \  /   |\   |\|\__|__ |
| |  \|  | |   \/|/   | |   |/  |   |
| |   /   |  | |\  / || |   |   |   |
| |__/|   \\ \/   \   | |\  |   |
+___+
mv /lib/ld.so /lib/ld.so.old;echo "Damnit"

On Wed, 13 Dec 2000, Poul-Henning Kamp wrote:

 Date: Wed, 13 Dec 2000 14:54:48 +0100
 From: Poul-Henning Kamp [EMAIL PROTECTED]
 To: Dan Phoenix [EMAIL PROTECTED]
 Cc: Bill Fumerola [EMAIL PROTECTED], [EMAIL PROTECTED]
 Subject: Re: Tun driver? 
 
 
 You need to open the "device-side" of the tunnel (/dev/tun0) before the
 interface is created.
 
 Poul-Henning
 
 In message [EMAIL PROTECTED], Dan
  Phoenix writes:
 
 [root@elrond conf]# ifconfig tun0 1.1.1.1 up
 ifconfig: interface tun0 does not exist
 [root@elrond conf]# ls -al /dev/tun0
 crw---   1 uucp dialer52,   0 Dec 12 13:30 /dev/tun0
 [root@elrond conf]# 
 
 this is confusing metrying to get vtund working in ports collection.
 
 tun device is in GENERIC kernel when i checked
 and exist in /dev as per test above.yet
 it tells me it does not exist!
 Ideas?
 
 
 
 
 
 
 
 --
 Dan
 
 
 +---+ 
 | -  Daniel Phoenix  Mail to:[EMAIL PROTECTED]|   | 
 | |   / ___|     |   | 
 | |  / |/  /|  \  /   |\   |\|\__|__ |
 | |  \ |  | |   \/|/   | |   |/  |   |
 | |   /|  | |\  / || |   |   |   |
 | |__/ |   \\ \/   \   | |\  |   |
 +___+
 mv /lib/ld.so /lib/ld.so.old;echo "Damnit"
 
 
 
 
 To Unsubscribe: send mail to [EMAIL PROTECTED]
 with "unsubscribe freebsd-hackers" in the body of the message
 
 
 --
 Poul-Henning Kamp   | UNIX since Zilog Zeus 3.20
 [EMAIL PROTECTED] | TCP/IP since RFC 956
 FreeBSD committer   | BSD since 4.3-tahoe
 Never attribute to malice what can adequately be explained by incompetence.
 



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message



Re: Tun driver?

2000-12-13 Thread Poul-Henning Kamp


You need to open the "device-side" of the tunnel (/dev/tun0) before the
interface is created.

Poul-Henning

In message [EMAIL PROTECTED], Dan
 Phoenix writes:

[root@elrond conf]# ifconfig tun0 1.1.1.1 up
ifconfig: interface tun0 does not exist
[root@elrond conf]# ls -al /dev/tun0
crw---   1 uucp dialer52,   0 Dec 12 13:30 /dev/tun0
[root@elrond conf]# 

this is confusing metrying to get vtund working in ports collection.

tun device is in GENERIC kernel when i checked
and exist in /dev as per test above.yet
it tells me it does not exist!
Ideas?







--
Dan


+---+ 
| -Daniel Phoenix  Mail to:[EMAIL PROTECTED]|   | 
| |   / ___  |     |   | 
| |  /   |/  /|  \  /   |\   |\|\__|__ |
| |  \   |  | |   \/|/   | |   |/  |   |
| |   /  |  | |\  / || |   |   |   |
| |__/   |   \\ \/   \   | |\  |   |
+___+
mv /lib/ld.so /lib/ld.so.old;echo "Damnit"




To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message


--
Poul-Henning Kamp   | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED] | TCP/IP since RFC 956
FreeBSD committer   | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message