Mailing List Archive

[Bug 465] zebra does not see changes to netgraph interfaces on FreeBSD
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.
_______________________________________________
Quagga-bugs mailing list
Quagga-bugs@lists.quagga.net
http://lists.quagga.net/mailman/listinfo/quagga-bugs
[Bug 465] zebra does not see changes to netgraph interfaces on FreeBSD [ In reply to ]
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.
_______________________________________________
Quagga-bugs mailing list
Quagga-bugs@lists.quagga.net
http://lists.quagga.net/mailman/listinfo/quagga-bugs
[Bug 465] zebra does not see changes to netgraph interfaces on FreeBSD [ In reply to ]
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.
_______________________________________________
Quagga-bugs mailing list
Quagga-bugs@lists.quagga.net
http://lists.quagga.net/mailman/listinfo/quagga-bugs
[Bug 465] zebra does not see changes to netgraph interfaces on FreeBSD [ In reply to ]
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.
_______________________________________________
Quagga-bugs mailing list
Quagga-bugs@lists.quagga.net
http://lists.quagga.net/mailman/listinfo/quagga-bugs
[Bug 465] zebra does not see changes to netgraph interfaces on FreeBSD [ In reply to ]
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.
_______________________________________________
Quagga-bugs mailing list
Quagga-bugs@lists.quagga.net
http://lists.quagga.net/mailman/listinfo/quagga-bugs
[Bug 465] zebra does not see changes to netgraph interfaces on FreeBSD [ In reply to ]
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.
_______________________________________________
Quagga-bugs mailing list
Quagga-bugs@lists.quagga.net
http://lists.quagga.net/mailman/listinfo/quagga-bugs