Subject: kern/34894: agr(4) interface cannot add ethernet agrport
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <misho@aitbg.com>
List: netbsd-bugs
Date: 10/24/2006 07:00:01
>Number:         34894
>Category:       kern
>Synopsis:       agr(4) interface cannot add ethernet agrport
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 24 07:00:01 +0000 2006
>Originator:     Michael Pounov
>Release:        currents:: 4.99.1 and 4.99.3
>Organization:
AITNET
>Environment:
NetBSD terran 4.99.3 NetBSD 4.99.3 (TERRAN) #1: Tue Oct 24 00:33:25 EEST 2006  root@terran:/usr/src/sys/arch/i386/compile/TERRAN i386
>Description:
agr(4) interface in netbsd currents not work, because cannot add any ethernet interface to aggregation interface agr0.
I starting to read and diff peace of agr code for fix, but not found difference with netbsd-4_BETA kernel which agr(4) work nice ;)
Debug ifconfig before send ioctl all things like fine.
Example {
Input:: sudo ./ifconfig agr0 agrport fxp0
Debug-printf of vars:: val=fxp0 d=0 buf=fxp0 errno=2 No such file or directory
Output:: ifconfig: SIOCSETAGR: No such file or directory
}
sys/net/agr/if_agr.c where in line 954L starting SIOCSETAGR affected code from ioctl(SIOCSETAGR) not found problems and diffs with work case of agr(4) in netbsd-4_BETA

Thats it :)


>How-To-Repeat:
ifconfig agr0 create
ifconfig agr0 agrport fxp0
ifconfig: SIOCSETAGR: No such file or directory

// ifconfig agr0 agrport (ethetnet port not work same result)
>Fix:
not known :(:(:(:(:(:(

btw ;) in netbsd-4_BETA agr(4) ok!