Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Jan 2002 17:03:22 -0800 (PST)
From:      Jan Oravec <wsx@wsx6.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   kern/33747: bug in rt socket
Message-ID:  <200201100103.g0A13Mw46469@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         33747
>Category:       kern
>Synopsis:       bug in rt socket
>Confidential:   no
>Severity:       non-critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 09 17:10:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Jan Oravec
>Release:        4.4-STABLE
>Organization:
XS26 - 'Access to IPv6'
>Environment:
FreeBSD ipv6.isternet.sk 4.4-STABLE FreeBSD 4.4-STABLE #6: Thu Oct 18 21:44:36 CEST 2001     wsx@ipv6.isternet.sk:/usr/obj/usr/src/sys/IPv6  i386

>Description:
there is a bug in rt socket in kernel, file net/rtsock.c:
 
function rt_ifmsg contains:
ifm->ifm_addrs = 0;
 
we should set RTA_IFP attribute instead and send interface name, because information that some interface has been created without name of interface is unusable.

openbsd haven't this bug
>How-To-Repeat:
open rt socket, create interface (e.g. ifconfig gif0 create) and see what you get...MTU, interface ID, ..., but not interface name
>Fix:
ifm->ifm_addrs = RTA_IFP;
and some other code to send name of interface...

>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200201100103.g0A13Mw46469>