From bugzilla-daemon at allevil.dishone.st Tue Jul 1 10:58:44 2008 From: bugzilla-daemon at allevil.dishone.st (bugzilla-daemon@allevil.dishone.st) Date: Tue Jul 1 09:58:52 2008 Subject: [Quagga-bugs] [Bug 465] New: zebra does not see changes to netgraph interfaces on FreeBSD Message-ID: <200807010858.m618wil6016819@allevil.dishone.st> Please do not reply directly to this email. All additional comments should be made in the comments box of this bug report. http://bugzilla.quagga.net/show_bug.cgi?id=465 Summary: zebra does not see changes to netgraph interfaces on FreeBSD Product: Quagga Version: 0.99.10 Platform: PC OS/Version: FreeBSD Status: UNCONFIRMED Severity: major Priority: High Component: zebra AssignedTo: maintainers@quagga.net ReportedBy: root@net1.cc After being started, zebra no more sees changes to virtual interfaces, at least netgraph ones. When started, the zebra daemon sees correctly ng interfaces, whether they are up or down, and correctly generates routes to the other side IP's and redistributes them to other quagga daemons. The problem is, any changes which occur after zebra has been started, do not appear correctly. If an ng interface, which has been up during zebra startup, goes down, the route is correctly removed and the interface is correctly shown as down. If it is reconnected again, or a new ng interface is set up and connected, zebra never sees them as up (until restarted again). The thing is, it sees their settings - IPs, options, etc, but continues to show them as "down". When checking with ifconfig, the interfaces are UP. In search of a solution, I have installed the original zebra package. It works perfectly fine with netgraph interfaces and does not show the behaviour of quagga. ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. From bugzilla-daemon at allevil.dishone.st Tue Jul 1 16:50:23 2008 From: bugzilla-daemon at allevil.dishone.st (bugzilla-daemon@allevil.dishone.st) Date: Tue Jul 1 15:50:29 2008 Subject: [Quagga-bugs] [Bug 465] zebra does not see changes to netgraph interfaces on FreeBSD Message-ID: <200807011450.m61EoNhA032457@allevil.dishone.st> Please do not reply directly to this email. All additional comments should be made in the comments box of this bug report. http://bugzilla.quagga.net/show_bug.cgi?id=465 ------- Additional Comments From paul@dishone.st 2008-07-01 15:50 ------- Can you set 'debug zebra kernel', reproduce and then capture the result (either by configuring a log file, or issuing 'terminal monitor' in the telnet vty and copy/pasting)? Please annotate the debug log file by noting at which points you issued pertinent commands outside of zebra. Thanks. ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. From bugzilla-daemon at allevil.dishone.st Tue Jul 1 17:13:59 2008 From: bugzilla-daemon at allevil.dishone.st (bugzilla-daemon@allevil.dishone.st) Date: Tue Jul 1 16:14:08 2008 Subject: [Quagga-bugs] [Bug 465] zebra does not see changes to netgraph interfaces on FreeBSD Message-ID: <200807011513.m61FDxE6001183@allevil.dishone.st> Please do not reply directly to this email. All additional comments should be made in the comments box of this bug report. http://bugzilla.quagga.net/show_bug.cgi?id=465 web@pilot.org.ua changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |web@pilot.org.ua ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. From bugzilla-daemon at allevil.dishone.st Tue Jul 1 17:24:10 2008 From: bugzilla-daemon at allevil.dishone.st (bugzilla-daemon@allevil.dishone.st) Date: Tue Jul 1 16:24:16 2008 Subject: [Quagga-bugs] [Bug 465] zebra does not see changes to netgraph interfaces on FreeBSD Message-ID: <200807011524.m61FOAMk001730@allevil.dishone.st> Please do not reply directly to this email. All additional comments should be made in the comments box of this bug report. http://bugzilla.quagga.net/show_bug.cgi?id=465 root@net1.cc changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed| |1 ------- Additional Comments From root@net1.cc 2008-07-01 16:13 ------- Here's what gets output when a new netgraph interface is set up: 2008/07/01 18:09:26 ZEBRA: Kernel: Len: 24 Type: RTM_IFANNOUNCE 2008/07/01 18:09:26 ZEBRA: Kernel: DYNAMIC MODIFIED 2008/07/01 18:09:26 ZEBRA: Kernel: message seq 0 2008/07/01 18:09:26 ZEBRA: Kernel: pid 0, rtm_addrs 0x0 2008/07/01 18:09:26 ZEBRA: ifan_read: creating interface for ifindex 4, name ng0 2008/07/01 18:09:26 ZEBRA: interface ng0 index 4 becomes active. 2008/07/01 18:09:26 ZEBRA: if_ioctl(SIOCGIFMEDIA) failed: Invalid argument 2008/07/01 18:09:26 ZEBRA: ifan_read: interface ng0 index 4 2008/07/01 18:09:26 ZEBRA: Kernel: Len: 168 Type: RTM_IFINFO 2008/07/01 18:09:26 ZEBRA: Kernel: DYNAMIC STATIC PROTO1 2008/07/01 18:09:26 ZEBRA: Kernel: message seq -1744830464 2008/07/01 18:09:26 ZEBRA: Kernel: pid 53, rtm_addrs 0x4 2008/07/01 18:09:26 ZEBRA: ifm_read: sdl ifname (nil) 2008/07/01 18:09:26 ZEBRA: ifm_read: interface ng0 index 4 2008/07/01 18:09:26 ZEBRA: Kernel: Len: 116 Type: RTM_NEWADDR 2008/07/01 18:09:26 ZEBRA: Kernel: 2008/07/01 18:09:26 ZEBRA: Kernel: message seq 520 2008/07/01 18:09:26 ZEBRA: Kernel: pid 0, rtm_addrs 0x4 2008/07/01 18:09:26 ZEBRA: ifam_read_mesg: RTA_SDL_GET nlen 3, alen 0 2008/07/01 18:09:26 ZEBRA: ifam_read_mesg: ifindex 4, ifname ng0, ifam_addrs 0xb 4, ifam_flags 0x0, addr 213.137.48.5/32 broad 88.213.194.240 dst 0.0.0.0 gateway 0.0.0.0 2008/07/01 18:09:26 ZEBRA: if_ioctl(SIOCGIFMEDIA) failed: Invalid argument 2008/07/01 18:09:26 ZEBRA: Kernel: Len: 184 Type: RTM_ADD 2008/07/01 18:09:26 ZEBRA: Kernel: UP HOST 2008/07/01 18:09:26 ZEBRA: Kernel: message seq 0 2008/07/01 18:09:26 ZEBRA: Kernel: pid 0, rtm_addrs 0x3 2008/07/01 18:09:26 ZEBRA: Kernel: Len: 88 Type: RTM_NEWMADDR 2008/07/01 18:09:26 ZEBRA: Kernel: 2008/07/01 18:09:26 ZEBRA: Kernel: message seq 821 2008/07/01 18:09:26 ZEBRA: Kernel: pid 266808, rtm_addrs 0x4 2008/07/01 18:09:26 ZEBRA: Unprocessed RTM_type: 15 ------- Additional Comments From paul@dishone.st 2008-07-01 16:24 ------- Ah, and ifconfig output too please. Also, can you confirm whether or not 'link-detect' is set in the configuration for that interface? (I presume it isn't, and it shouldn't make a difference judging by the output below). ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. From bugzilla-daemon at allevil.dishone.st Tue Jul 1 17:53:33 2008 From: bugzilla-daemon at allevil.dishone.st (bugzilla-daemon@allevil.dishone.st) Date: Tue Jul 1 16:53:41 2008 Subject: [Quagga-bugs] [Bug 465] zebra does not see changes to netgraph interfaces on FreeBSD Message-ID: <200807011553.m61FrX47003021@allevil.dishone.st> Please do not reply directly to this email. All additional comments should be made in the comments box of this bug report. http://bugzilla.quagga.net/show_bug.cgi?id=465 paul@dishone.st changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED ------- Additional Comments From root@net1.cc 2008-07-01 16:42 ------- link-detect was not set up. Setting it on or of doesn't change the erratic behaviour. ------- Additional Comments From paul@dishone.st 2008-07-01 16:53 ------- Ok, the problem is, I think, that our BSD link-state support assumes that if the system is capable of the SIOCGIFMEDIA ioctl() then it must work.. An additional problem is that on BSD we ignore the 'link-detect' interface-configuration flag, which exists precisely so as to make link-state bugs be opt-in.. I think the about-to-be attached patch should fix things. Please can you re-test with it, both with 'link-detect' set in the configuration of 'nge0' and without. (things should work in both caseS). ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. From bugzilla-daemon at allevil.dishone.st Tue Jul 1 18:07:44 2008 From: bugzilla-daemon at allevil.dishone.st (bugzilla-daemon@allevil.dishone.st) Date: Tue Jul 1 17:07:49 2008 Subject: [Quagga-bugs] [Bug 465] zebra does not see changes to netgraph interfaces on FreeBSD Message-ID: <200807011607.m61G7iGO003788@allevil.dishone.st> Please do not reply directly to this email. All additional comments should be made in the comments box of this bug report. http://bugzilla.quagga.net/show_bug.cgi?id=465 ------- Additional Comments From paul@dishone.st 2008-07-01 16:55 ------- Created an attachment (id=267) --> (http://bugzilla.quagga.net/attachment.cgi?id=267&action=view) Fix link-state on BSD, where an interface doesn't implement SIOCGIFMEDIA Fix link-detection on BSD for the case where SIOCGIFMEDIA fails - should be treated same as invalid link-state. Additionally, the whole link-detect logic is supposed to be predicated on the 'link-detect' interface configuration flag having been set. It wasn't on BSD. Fix. ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. From bugzilla-daemon at allevil.dishone.st Tue Jul 1 20:25:36 2008 From: bugzilla-daemon at allevil.dishone.st (bugzilla-daemon@allevil.dishone.st) Date: Tue Jul 1 19:25:40 2008 Subject: [Quagga-bugs] [Bug 465] zebra does not see changes to netgraph interfaces on FreeBSD Message-ID: <200807011825.m61IPam9008946@allevil.dishone.st> Please do not reply directly to this email. All additional comments should be made in the comments box of this bug report. http://bugzilla.quagga.net/show_bug.cgi?id=465 paul@dishone.st changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution| |FIXED ------- Additional Comments From root@net1.cc 2008-07-01 17:07 ------- I can confirm zebra now behaves properly, in both cases - with or without link-detect. ------- Additional Comments From paul@dishone.st 2008-07-01 19:25 ------- That's great to hear. Thanks. Commited to CVS. ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.