From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10669a,e09c352ffc7fd5f7 X-Google-Attributes: gid10669a,public X-Google-Thread: 1164f8,e09c352ffc7fd5f7 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2002-03-16 03:50:35 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!newsfeed.online.be!zur.uu.net!ash.uu.net!news.cybercity.dk!not-for-mail From: Dennis Henriksen Newsgroups: comp.os.linux.networking,comp.sys.dec Subject: Re: Help! mopd did not work with TAP/TUN drivers! Date: Sat, 16 Mar 2002 12:50:09 +0100 Organization: Cybercity Message-ID: <3C933171.6000609@osrl.net_spamfree> References: NNTP-Posting-Host: osrl.adsl.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.cybercity.dk 1016279412 83297 217.157.177.186 (16 Mar 2002 11:50:12 GMT) X-Complaints-To: abuse@cybercity.dk NNTP-Posting-Date: Sat, 16 Mar 2002 11:50:12 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20011019 Netscape6/6.2 X-Accept-Language: en, da Xref: archiver1.google.com comp.os.linux.networking:89219 comp.sys.dec:12291 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