[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
dummy interface for pfinet
From: |
Marcus Brinkmann |
Subject: |
dummy interface for pfinet |
Date: |
Sat, 30 Sep 2000 23:13:56 +0200 |
User-agent: |
Mutt/1.1.4i |
Hi,
as an exercise, I implemented a dummy interface for pfinet. Apply the
attached diff, and compile pfinet. The interface name is "dummy".
settrans /servers/socket/2 /hurd/pfinet -i dummy -a 192.168.0.1 -m
255.255.255.0 -g 192.168.0.2
The dummy interface is the same as the dummy interface in linux:
A bottomless pit. You don't get a single packet out of it, and everything
you send to it is lost.
Note that the above local address 192.168.0.1 is recognized as local.
Stuff sent to this address is not lost, of course.
The implementation shows two areas where pfinet lacks:
Missing support for multiple interfaces, and no support for different types
of drivers (in my patch implemented as a switch on the device name).
Thanks,
Marcus
Changelog:
2000-09-30 Marcus Brinkmann <marcus@gnu.org>
* dummy.c: New file.
* Makefile (SRCS): Add dummy.c.
* main.c (find_device): If interface name is "dummy",
call setup_dummy_device, not setup_ethernet_device.
* pfinet.h: Prototype setup_dummy_device.
--
`Rhubarb is no Egyptian god.' Debian http://www.debian.org Check Key server
Marcus Brinkmann GNU http://www.gnu.org for public PGP Key
Marcus.Brinkmann@ruhr-uni-bochum.de, marcus@gnu.org PGP Key ID 36E7CD09
http://homepage.ruhr-uni-bochum.de/Marcus.Brinkmann/ brinkmd@debian.org
pfinet-dummy.diff
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- dummy interface for pfinet,
Marcus Brinkmann <=