Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Help! mopd did not work with TAP/TUN drivers!
@ 2002-03-16  6:18 sword7
  2002-03-16 11:50 ` Dennis Henriksen
  0 siblings, 1 reply; 3+ messages in thread
From: sword7 @ 2002-03-16  6:18 UTC (permalink / raw)


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?

Thank you!

-- Tim Stark

-- 
Timothy Stark	<><	Inet: sword7@speakeasy.org
--------------------------------------------------------------------------
"For God so loved the world, that he gave his only begotten Son, that 
whosoever believeth in him should not perish, but have everlasting life.
Amen." -- John 3:16 (King James Version Bible)


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Help! mopd did not work with TAP/TUN drivers!
  2002-03-16  6:18 Help! mopd did not work with TAP/TUN drivers! sword7
@ 2002-03-16 11:50 ` Dennis Henriksen
  2002-03-16 15:18   ` sword7
  0 siblings, 1 reply; 3+ messages in thread
From: Dennis Henriksen @ 2002-03-16 11:50 UTC (permalink / raw)




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



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Help! mopd did not work with TAP/TUN drivers!
  2002-03-16 11:50 ` Dennis Henriksen
@ 2002-03-16 15:18   ` sword7
  0 siblings, 0 replies; 3+ messages in thread
From: sword7 @ 2002-03-16 15:18 UTC (permalink / raw)


In comp.sys.dec Dennis Henriksen <opus@osrl.net_spamfree> wrote:
> -  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 ?

00:FF:53:5F:4D:D0 - tap0 connection (simulator side)
                    Note: it is dymanic Ethernet address.
00:50:DA:1A:13:C3 - 3Com Ethernet card (host side)
AB:00:00:01:00:00 - MicroVAX Firmware sent a packet to seek any MOP
                    server to response.  Yes, broadcast addr.

> 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 ...

I will try that and will inform you soon.

Thank you!

-- Tim Stark

-- 
Timothy Stark	<><	Inet: sword7@speakeasy.org
--------------------------------------------------------------------------
"For God so loved the world, that he gave his only begotten Son, that 
whosoever believeth in him should not perish, but have everlasting life.
Amen." -- John 3:16 (King James Version Bible)


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-03-16 15:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-16  6:18 Help! mopd did not work with TAP/TUN drivers! sword7
2002-03-16 11:50 ` Dennis Henriksen
2002-03-16 15:18   ` sword7

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