NetBSD Problem Report #45910

From www@NetBSD.org  Wed Feb  1 19:40:13 2012
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
	by www.NetBSD.org (Postfix) with ESMTP id 6E2CC63DF20
	for <gnats-bugs@gnats.NetBSD.org>; Wed,  1 Feb 2012 19:40:13 +0000 (UTC)
Message-Id: <20120201194012.572EE63C41D@www.NetBSD.org>
Date: Wed,  1 Feb 2012 19:40:12 +0000 (UTC)
From: 6bone@6bone.informatik.uni-leipzig.de
Reply-To: 6bone@6bone.informatik.uni-leipzig.de
To: gnats-bugs@NetBSD.org
Subject: setsockopt/MRT6_ADD_MIF
X-Send-Pr-Version: www-1.0

>Number:         45910
>Category:       kern
>Synopsis:       setsockopt/MRT6_ADD_MIF
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 01 19:45:00 +0000 2012
>Last-Modified:  Sat Mar 17 13:10:03 +0000 2012
>Originator:     Uwe Toenjes
>Release:        netbsd 5.1_STABLE
>Organization:
University of Leipzig
>Environment:
NetBSD gate.ipv6.uni-leipzig.de 5.1_STABLE NetBSD 5.1_STABLE (MYCONF) #6: Wed Jan 11 08:31:50 CET 2012  root@gate.ipv6.uni-leipzig.de:/usr/obj/sys/arch/amd64/compile/MYCONF amd64
>Description:
I am trying to use IPv6 Multicast Routing. I tested several multicast routing daemons like pim6, xorp or mrd6. It seems, that all programs are reporting errors at a setsockopt() call:

setsockopt(..., IPPROTO_IPV6, MRT6_ADD_MIF, &mc, sizeof(mc))

For example, the mrd6.log shows:
...
[vlan997] PIM, Has global address, changed to READY.
(MFA) Added interface vlan999 with vif 29
[vlan999] PIM, Has global address, changed to READY.
(MFA) Failed to MRT6_ADD_MIF: Invalid argument
...

At multiple program start, multiple interfaces are affected.

Because the programs are running fine at linux and freebsd but not at netbsd, the problem could be a netbsd kernel problem.
>How-To-Repeat:
try to use ipv6 multicast routing at netbsd.
>Fix:

>Audit-Trail:
From: David Holland <dholland-bugs@netbsd.org>
To: gnats-bugs@netbsd.org
Cc: 
Subject: Re: kern/45910: setsockopt/MRT6_ADD_MIF
Date: Sat, 17 Mar 2012 13:08:47 +0000

 (sent to gnats-admin instead of gnats-bugs)

    ------

 From: 6bone@6bone.informatik.uni-leipzig.de
 To: gnats-admin@netbsd.org
 Subject: Re: kern/45910: setsockopt/MRT6_ADD_MIF
 Date: Thu, 8 Mar 2012 23:48:18 +0100 (CET)

 The problem also occurs with netbsd-6-beta.

 The xorp release notes for version 1.8.5 say about the netbsd support:
 "... but seeing spurious failures when trying the MRT6_ADD_MIF call
 ..."


 Uwe

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.