Date: Wed, 22 Sep 93 04:30:08 PDT From: Advanced Amateur Radio Networking Group <tcp-group@ucsd.edu> Errors-To: TCP-Group-Errors@UCSD.Edu Reply-To: TCP-Group@UCSD.Edu Precedence: Bulk Subject: TCP-Group Digest V93 #245 To: tcp-group-digest TCP-Group Digest Wed, 22 Sep 93 Volume 93 : Issue 245 Today's Topics: KA9Q base code and scrollback SunOS 4.X AX25 kernel driver Send Replies or notes for publication to: <TCP-Group@UCSD.Edu>. Subscription requests to <TCP-Group-REQUEST@UCSD.Edu>. Problems you can't solve otherwise to brian@ucsd.edu. Archives of past issues of the TCP-Group Digest are available (by FTP only) from UCSD.Edu in directory "mailarchives". We trust that readers are intelligent enough to realize that all text herein consists of personal comments and does not represent the official policies or positions of any party. Your mileage may vary. So there. ---------------------------------------------------------------------- Date: Wed, 22 Sep 93 07:31:45 UTC From: wj8q@wsu.n8fow.ampr.org Subject: KA9Q base code and scrollback To: tcp-group@ucsd.edu Hiya.. Just a note- I'm the one that had the problem. I have since figured out what it was. I'm not sure if it was intended to work this way or not, but what happens is that it won't open the TMP files into any TMP environment setting set to a root directory of a drive. I had my TMP environment set to a ramdrive, d:\, and it wouldn't do any temp file opening. Same on testing using main drives, etc-But I kept setting to root and it didn't help-- Once I made a directory in the ramdrive + set my TMP environment to that drive+directory, no problem. Thought I'd let y'all know. 73's, Wes _______ SMTP/Internet: wj8q@hamgate.cc.wayne.edu LAN: wj8q@wsu.n8fow.ampr.org : Wj8q@wj8q.ampr.org : 44.102.40.18 ------------------------------ Date: Wed, 22 Sep 1993 01:02:01 -0700 (PDT) From: William.Dorsey@Corp.Sun.COM (Bill Dorsey) Subject: SunOS 4.X AX25 kernel driver To: tcp-group@ucsd.edu Hi, Earlier, I asked a question about setting netmasks and broadcast addresses, and setting up routing on a Sparcstation running SunOS 4.X and the AX25 kernel driver in the /hamradio/packet/sun directory on ucsd.edu. I was able to establish outgoing connections from my machine to other hosts on amprnet, but they were not able to establish connections with me. I was led to believe this was because I didn't have routing set up correctly, or perhaps because I was using the wrong netmasks. After having spent many hours pulling my hair out trying to figure out what was going on, I finally bit the bullet and began sprinkling some printf's in the AX25 driver to see what was going on. After a few more hours of debugging, I realized that incoming ARP requests weren't being answered. As you can see below from the context diffs between the orig- inal tty_ax.c and my tty_ax.c, this is because the network interface ethernet address was being compared against the ax25 broadcast address in code which determines whether or not a packet is destined for our host. This is incorrect, and should be a comparison between the incoming ethernet address and the ethernet broadcast address. The original code would never pass ARP requests (which have their ethernet destinations set to be the ethernet broadcast address) to our host to the kernel, and thus the kernel would never generate an ARP reply. This prevents other stations from establishing a connection to the Sun, and thus severely limits the utility of the driver. I hope this is useful to someone... The full source code to the driver is available for anonymous ftp from n3lmf.ampr.org. The connection is very slow and the w6yx gateway seems to be down a lot, so if there is much demand, I can put it on ucsd.edu. *** tty_ax.c.old Fri Sep 3 14:24:18 1993 --- tty_ax.c Tue Sep 21 19:46:30 1993 *************** *** 472,478 **** ax_ax2ether(ax->ah_dst, &oureth); if( bcmp((caddr_t)&oureth, (caddr_t)&axp->arpcom.ac_enaddr, sizeof oureth) && ! bcmp((caddr_t)ax25broadcastaddr, (caddr_t)&a->arpcom.ac_enaddr, sizeof oureth)) { *forusp = 0; } --- 472,478 ---- ax_ax2ether(ax->ah_dst, &oureth); if( bcmp((caddr_t)&oureth, (caddr_t)&axp->arpcom.ac_enadd sizeof oureth) && ! bcmp((caddr_t)&oureth, (caddr_t)ðerbroadcastaddr, sizeof oureth)) { *forusp = 0; } -- Bill Dorsey william.dorsey@corp.sun.com PGP 2.X public key n3lmf@n0ary.#norcal.ca.us.na available on request dorsey@n3lmf.ampr.org ------------------------------ End of TCP-Group Digest V93 #245 ****************************** ******************************