From owner-freebsd-hackers Sat Jul 11 22:58:44 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA11947 for freebsd-hackers-outgoing; Sat, 11 Jul 1998 22:58:44 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from smtp02.primenet.com (daemon@smtp02.primenet.com [206.165.6.132]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA11939; Sat, 11 Jul 1998 22:58:40 -0700 (PDT) (envelope-from tlambert@usr07.primenet.com) Received: (from daemon@localhost) by smtp02.primenet.com (8.8.8/8.8.8) id WAA18710; Sat, 11 Jul 1998 22:58:32 -0700 (MST) Received: from usr07.primenet.com(206.165.6.207) via SMTP by smtp02.primenet.com, id smtpd018663; Sat Jul 11 22:58:26 1998 Received: (from tlambert@localhost) by usr07.primenet.com (8.8.5/8.8.5) id WAA28581; Sat, 11 Jul 1998 22:58:22 -0700 (MST) From: Terry Lambert Message-Id: <199807120558.WAA28581@usr07.primenet.com> Subject: Re: Still having problems with my driver :( To: lile@stdio.com (Larry S. Lile) Date: Sun, 12 Jul 1998 05:58:22 +0000 (GMT) Cc: hackers@FreeBSD.ORG, tokenring@FreeBSD.ORG, dg@root.com In-Reply-To: from "Larry S. Lile" at Jul 11, 98 03:47:07 pm X-Mailer: ELM [version 2.4 PL25] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I still cannot get the upper network layers to respond to incoming > packets. I even hacked tcpdump to make sure that I was no wrecking > the packets as I took them off the wire. [ ... ] What about the kernel printf's? > The only messages I got indicating anything at all is wrong were > these when I ifconfig the card up for the first time after a > reboot. > > Jul 10 22:21:33 anarchy routed[69]: ignore RTM_ADD without gateway > Jul 10 22:21:33 anarchy routed[69]: Send bcast sendto(tok0, > 10.0.0.255.520): No buffer space available > Jul 10 22:21:33 anarchy routed[69]: write(rt_sock) RTM_ADD 10.0.0.0/24 > --> 10.0.0.1: File exists > > Any ideas what might be wrong, or could someone please look at my > code and help me figure this out. This happens to me on my ppp link if I start pinging, but turn my modem off (yes, I do bizarre things to see what would happen on border cases) so the link can't come up. Typically, it means that outbound packets haven't been sent, and the output queue has filled up. Have you tested this unidirectionally, ie: from some other system to FreeBSD, or vice versa, where you don't need an echo? This would let you test the input and output seperately. You should also probably put a fprintf in the soft interrupt handler. > I have attached the tcpdump patches if someone would like to commit > them to the source tree, I also sent them to the tcpdump maintainers. > The source for my driver is at http://anarchy.stdio.com. I went looking. I see you put the LLC code in the driver itself? I didn't see where you registered it with the system, or the driver itself, for that matter (ie: no DATA_SET). I couldn't see where you were calling ether_input()??? One thing you might want to consider is seting up the LLC in such a way that you can ifconfig up a loopback interface through the LLC and back for testing the upper layers down and back up. Unfortunately, TR hardware wants a hub. If I were still hanging out at Weber State University, I'd take advantage of their networking lab; as it is, I have no hardware to play with, and no known working other end to talk to in any case. The only thing I can recommend is that you try and divide the problem into smaller pieces (per my suggestions, above). Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message