Re: 'struct ifnet' question!
Thanks, event handlers looks very trivial to implement. My thoughts was: userland read rules and check if interface exist with: 'if_nametoindex(interface)' call. kernel stores rules without any knowledge about interface name or direction, because I use seperate decision tree for every interface + direction pair. When module got departure event, all rules are flushed from in/out decision tree: flush_rules(decision_tree[ifp->if_index]->out); flush_rules(decision_tree[ifp->if_index]->in); because if interface is gone, rules are not valid: # ifconfig vlan0 create if_findindex() returns index 6 # load rules with '... in on vlan0 ...' kernel store rules in 'decision_tree[6]->in' # ifconfig vlan0 destory here we must flush all vlan0 rules # ifconfig gif0 create gif0 got index 6 if we don't flush old rules, gif0 will use vlan0 rules because index is reused... And here is the problem: If i watch departure events, interface renaming feature will flush walid rules: case SIOCSIFNAME: ... EVENTHANDLER_INVOKE(ifnet_departure_event, ifp); ... change if_xname ... EVENTHANDLER_INVOKE(ifnet_arrival_event, ifp); how about another event? ;) EVENTHANDLER_INVOKE(ifnet_rename_event, ifp->ifx_name, new_name); strlcpy(ifp->if_xname, new_name, sizeof(ifp->if_xname)); > The other (big) problem in this field is, how to handle yet unknown interfaces > (e.g. USB/Cardbus/ppp/tun/...). What is about usb/cardbus/... interfaces? Don't they also call ether_ifattach()/if_attach()? -- Artis On Thu, Apr 29, 2004 at 02:22:47PM +0200, Max Laier wrote: > Yes there is, in -current you will find some eventhandlers (in if_var.h and > if_clone.h) which allow you to get a notification when an interface arrives > or leaves. Pf (from OpenBSD 3.5) will use them to do exactly what you are > planning, to have O(1) interface look-ups. > > Attached is my WIP version of the pf interface handling, which might be a bit > too complex for your purpose, but should give you the idea. > > -- > Best regards, | [EMAIL PROTECTED] > Max Laier | ICQ #67774661 > http://pf4freebsd.love2party.net/ | [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Dlink DSL router doesn't like FreeBSD
I'm trying to make work a D-Link 504T DSL router/switch with FreeBSD 5.2.1-RELEASE-p6. I've already realised that IPv6 is not supported by the router so I compiled an IPv4-only kernel and got to work DNS, HTTP, and FTP. My problem is that ssh and telnet don't work. I get as far as the Password prompt, I type it in, and then ssh freezes for a couple of minutes until it probably goes in timeout and gives up. The D-Link help desk is useless; the only thing they suggested was to return the router to where I bought it. I've anyhow the impression that the problem might not completely be the router's fault. In fact I plugged a Windoze machine, installed PuTTY, and ssh seems to work flawlessly. What am I missing here? Thanks in advance, -- walter pelissero http://www.pelissero.de ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Dlink DSL router doesn't like FreeBSD
On Fri, 14 May 2004, Walter C. Pelissero wrote: > I'm trying to make work a D-Link 504T DSL router/switch with FreeBSD > 5.2.1-RELEASE-p6. > > I've already realised that IPv6 is not supported by the router so I > compiled an IPv4-only kernel and got to work DNS, HTTP, and FTP. > > My problem is that ssh and telnet don't work. I get as far as the > Password prompt, I type it in, and then ssh freezes for a couple of > minutes until it probably goes in timeout and gives up. > > The D-Link help desk is useless; the only thing they suggested was to > return the router to where I bought it. I've anyhow the impression > that the problem might not completely be the router's fault. In fact > I plugged a Windoze machine, installed PuTTY, and ssh seems to work > flawlessly. > > What am I missing here? I'd try two things: 1) ssh -vvv [EMAIL PROTECTED] 2) tcpdump -vv (while trying to connect by telnet or ssh) You might have a chance to see where problems occur. Or to repost your question with relevant sections of the output included. Best regards Konrad Heuer ([EMAIL PROTECTED]) ___ ___ GWDG / __/__ ___ / _ )/ __/ _ \ Am Fassberg / _// __/ -_) -_) _ |\ \/ // / 37077 Goettingen /_/ /_/ \__/\__//___// Germany ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Dlink DSL router doesn't like FreeBSD
Try connection to the router via SSHv1 protocol and without X11 forwarding. I had similar problems with Cisco routers with old Cisco IOS. They liked only SSH connections via SSHv1 and without X11 forwarding. Best regards, Vladimir On Fri, 14 May 2004 13:12:33 +0200 (CEST) Konrad Heuer <[EMAIL PROTECTED]> wrote: > > On Fri, 14 May 2004, Walter C. Pelissero wrote: > > > I'm trying to make work a D-Link 504T DSL router/switch with FreeBSD > > 5.2.1-RELEASE-p6. > > > > I've already realised that IPv6 is not supported by the router so I > > compiled an IPv4-only kernel and got to work DNS, HTTP, and FTP. > > > > My problem is that ssh and telnet don't work. I get as far as the > > Password prompt, I type it in, and then ssh freezes for a couple of > > minutes until it probably goes in timeout and gives up. > > > > The D-Link help desk is useless; the only thing they suggested was to > > return the router to where I bought it. I've anyhow the impression > > that the problem might not completely be the router's fault. In fact > > I plugged a Windoze machine, installed PuTTY, and ssh seems to work > > flawlessly. > > > > What am I missing here? > > I'd try two things: > > 1) ssh -vvv [EMAIL PROTECTED] > 2) tcpdump -vv(while trying to connect by telnet or ssh) > > You might have a chance to see where problems occur. Or to repost your > question with relevant sections of the output included. > > Best regards > > Konrad Heuer ([EMAIL PROTECTED]) ___ ___ > GWDG / __/__ ___ / _ )/ __/ _ \ > Am Fassberg / _// __/ -_) -_) _ |\ \/ // / > 37077 Goettingen /_/ /_/ \__/\__//___// > Germany > > ___ > [EMAIL PROTECTED] mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-net > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: Looking for a Broadcom BCM5704 datasheet
On 13-May-2004 Ruslan Ermilov wrote: > > I'm looking for a Broadcom BCM5704[S] technical datasheet. If anyone has > such a beast, or knows how one could obtain it, please let me know. Broadcom only provides them under NDA. John ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Looking for a Broadcom BCM5704 datasheet
Ruslan Ermilov wrote: Dear networkers, I'm looking for a Broadcom BCM5704[S] technical datasheet. If anyone has such a beast, or knows how one could obtain it, please let me know. As john pointed out, you can only get this under NDA from broadcom. What exactly are you trying to solve? I have the latest documentation so I may be able to help you, but I can't give you the docs. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Looking for a Broadcom BCM5704 datasheet
On Fri, May 14, 2004 at 09:40:07AM -0700, Paul Saab wrote: > Ruslan Ermilov wrote: > > >Dear networkers, > > > >I'm looking for a Broadcom BCM5704[S] technical datasheet. If anyone has > >such a beast, or knows how one could obtain it, please let me know. > > > > > > > As john pointed out, you can only get this under NDA from broadcom. > What exactly are you trying to solve? I have the latest documentation > so I may be able to help you, but I can't give you the docs. > We hoped that with dual-channel NIC we could be able to just move the received frame from one port for TX on another port, to overcome the 32-bit PCI bus speed limitation, to get better thoroughput with GigE. Bill Paul already explained in private that they are actually two distinct SRAMs, and the operation we needed is not supported (without PCI involved). Thanks to everyone who replied! Cheers, -- Ruslan Ermilov [EMAIL PROTECTED] FreeBSD committer pgp0.pgp Description: PGP signature
Transparent Bridging Admin Interface
Hi folks, I was searching the through the archives and found this question which seams to be describing a similar problem I am having, I did not find a reply or answer to it though. So I would like to ask the question again as it seams to very close to mine and I would imagine it must be resolveable, probably through a simple configuration or patch See the link below for the original post. http://lists.freebsd.org/pipermail/freebsd-net/2003-December/002109.html I have set up Transparent Bridging and IPFW on a server by compiling support into the Kernel as described in the FreeBSD handbook and other FreeBSD tutorials, no frills just the basics 2 interfaces, no IPs, passing traffic with the firewall wide open by default. I configured the machine over ssh before I stuck it on the network via a third interface that has an IP from the LAN the machine is bridging. When I put the bridge onto the network, it works perfectly, passing all packets both ways through the open firewall, but the third interface, the admin one with an ip on my network stops working just like describe in the original post Oh yea... FreeBSD 5.2.1 P4 1.4ghz 512Ram 2x3com (bridge) nics 1xrealtek (admin interface w/ ip) It must be some sort of logical loop bug!!! Anybody have any ideas, thanks, Russ ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"
RE: Looking for a Broadcom BCM5704 datasheet
From: Ruslan Ermilov [mailto:[EMAIL PROTECTED] > On Fri, May 14, 2004 at 09:40:07AM -0700, Paul Saab wrote: > > Ruslan Ermilov wrote: > > > > >Dear networkers, > > > > > >I'm looking for a Broadcom BCM5704[S] technical datasheet. > If anyone has > > >such a beast, or knows how one could obtain it, please let me know. > > > > > > > > > > > As john pointed out, you can only get this under NDA from > broadcom. > > What exactly are you trying to solve? I have the latest > documentation > > so I may be able to help you, but I can't give you the docs. > > > We hoped that with dual-channel NIC we could be able to just move > the received frame from one port for TX on another port, to overcome > the 32-bit PCI bus speed limitation, to get better thoroughput with > GigE. Bill Paul already explained in private that they are actually > two distinct SRAMs, and the operation we needed is not supported > (without PCI involved). > I believe it is 64-bit 133MHz PCI-X. ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-net To unsubscribe, send any mail to "[EMAIL PROTECTED]"