Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: Dennis Henriksen <opus@osrl.net_spamfree>
Subject: Re: Help! mopd did not work with TAP/TUN drivers!
Date: Sat, 16 Mar 2002 12:50:09 +0100	[thread overview]
Message-ID: <3C933171.6000609@osrl.net_spamfree> (raw)
In-Reply-To: u95ou8h61rnm3b@corp.supernews.com



sword7@speakeasy.org wrote:

> Hello folks:
> 
> I tried to load netboot file from mopd via TAP/TUN connection to my
> emulator and it did not work.  I ran 'mopd -d tap0'.  It was started
> successfully.  Also, I run 'moptrace -d tap0' to monitor traffic.  Then
> I entered 'b xqa0' on >>> prompt at my VAX emulator.
> 
> I got mopd-linux from linux-vax.sourceforge.net today and re-installed
> it.  It worked fine now but I have another problems with that.
> 
> Mopd server only can receive packets from my VAX emulator but can't
> send results back to it.  It complaint about pfWrite error.  Look
> at that problem:
> 
> [root@sword7-0 mop]# /usr/local/sbin/mopd tap0 -d
> mopd: not running as daemon, -d given.
> MOP DL 802.3 0:ff:53:5f:4d:d0  > ab:0:0:1:0:0      len   47 code 08 RPR 
> MOP DL 802.3 0:50:da:1a:13:c3  > 0:ff:53:5f:4d:d0  len    9 code 03 ASV 
> error pfWrite()
> MOP DL 802.3 0:ff:53:5f:4d:d0  > ab:0:0:1:0:0      len   47 code 08 RPR 
> MOP DL 802.3 0:50:da:1a:13:c3  > 0:ff:53:5f:4d:d0  len    9 code 03 ASV 
> error pfWrite()
> 
> When I tried to ifconfig'd tap0 but it went worse.  Look at that:
> 
> [root@sword7-0 mop]# /sbin/ifconfig tap0 192.168.0.1 up
> [root@sword7-0 mop]# /usr/local/sbin/mopd tap0 -d
> mopd: not running as daemon, -d given.
> 
> [Nothing happened - get out of it by press ^C]
> 
> [root@sword7-0 mop]# /sbin/ifconfig tap0               
> tap0      Link encap:Ethernet  HWaddr 00:FF:53:5F:4D:D0  
>           inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
>           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>           RX packets:69 errors:0 dropped:0 overruns:0 frame:0
>           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>           collisions:0 
>           RX bytes:5150 (5.0 Kb)  TX bytes:0 (0.0 b)
> 
> [root@sword7-0 mop]# 
> 
> Does anyone know about that problems for solution?


The fact the ifconfig on tap0 makes things worse is probably due
to the fact that MOPD is using DecNET rather that IP AFAIK. As for
the trace and the pfWrite problem - It seems there are three mac
addresses involved
-  00:FF:53:5F:4D:D0 (The host side of tap0)
-  ab:0:0:1:0:0 - Since the first byte is odd, a broadcast addr ?
-  0:50:da:1a:13:c3 - The simulator side of the tap0 ?

Try to change pfWrite in common/pf-linux2.c to

int
pfWrite(fd, buf, len)
int fd, len;
u_char *buf;
{

   if (sendto(fd, buf, len, 0, &socklist[fd].sa, sizeof(struct 
sockaddr)) == len)
     return(len);

   if (len < 0)
       fprintf( stderr, "pfWrite():%s\n", strerror( errno));

    return (-1);
}

No that it solves anything, but it could perhaps provide a clue
as to what is happening ...

 
> Thank you!
> 
> -- Tim Stark
> 
> 

Best of luck
/Dennis



  reply	other threads:[~2002-03-16 11:50 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-16  6:18 Help! mopd did not work with TAP/TUN drivers! sword7
2002-03-16 11:50 ` Dennis Henriksen [this message]
2002-03-16 15:18   ` sword7
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox