*BSD News Article 86811


Return to BSD News archive

#! rnews 1836 bsd
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.mira.net.au!vic.news.telstra.net!news.telstra.net!newsfeed.internetmci.com!news.wildstar.net!news.ececs.uc.edu!newsfeeds.sol.net!news-xfer.netaxs.com!news.bbnplanet.com!cam-news-hub1.bbnplanet.com!howland.erols.net!worldnet.att.net!ix.netcom.com!netcom.net.uk!news-lond.gsl.net!news.gsl.net!news-paris.gsl.net!news.gsl.net!rain.fr!news.grolier.fr!usenet
From: "Yves Arrouye" <arrouye@matranet.com>
Newsgroups: comp.protocols.tcp-ip,comp.unix.bsd.bsdi.misc
Subject: Problems porting swIPe to BSDI 2.1 (packets arrive on Ethernet, never on swIPe device)
Date: 20 Jan 1997 18:49:05 GMT
Organization: MATRAnet
Lines: 21
Message-ID: <01bc0702$c3cdba60$110200c0@zola.matranet.com>
NNTP-Posting-Host: malraux.matranet.com
X-Newsreader: Microsoft Internet News 4.70.1157
Xref: euryale.cc.adfa.oz.au comp.protocols.tcp-ip:50886 comp.unix.bsd.bsdi.misc:5610

Hello,

I tried to port swIPe from the floppy disk distribution with the NetBSD
patches to BSDI 2.1. The code now compiles and the swIPe device correctly
resends encrypted packets, but at the other end those packets, which arrive
on the Ethernet card, are never passed to the swIPe device which should
decrypt them.

I actually kept the swinit() code that replaces the rp_input() function for
IPPROTO_RAW by a swinput() which handles packets differently if their
protocol is 94, but it looks like packets are never seen as IPPROTO_RAW
(sorry if I talk nonsense, that's my current understanding). They indeed
come as protocol 94 on de0, my Ethernet card, and are not seen on sw0
(maybe because they are not of type IPPROTO_RAW?).

If I add an entry for proto 94 in in_proto.c, with swipe_input() as input
function, I just get a page fault :-(. Is this what I should do anyway?

Thanks for any help,
Yves.