From: Mark Butler <butlerm@middle.net>
To: James Lentini <jlentini@netapp.com>
Cc: netdev@vger.kernel.org,
openib-general <openib-general@openib.org>,
Stephen Hemminger <shemminger@osdl.org>
Subject: Re: Re: [iproute2] IPoIB link layer address bug
Date: Thu, 23 Mar 2006 11:10:16 -0700 [thread overview]
Message-ID: <4422E488.3060509@middle.net> (raw)
In-Reply-To: <Pine.LNX.4.61.0603231155401.23670@jlentini-linux.nane.netapp.com>
[-- Attachment #1.1: Type: text/plain, Size: 1460 bytes --]
James Lentini wrote:
>On Tue, 21 Mar 2006, Jason Gunthorpe wrote:
>
>
>
>>On Tue, Mar 21, 2006 at 03:56:17PM -0800, Stephen Hemminger wrote:
>>
>>
>>
>>>Okay, but there are number of other places in iproute2 that call
>>>ll_addr_a2n() with ifr.ifr_hwaddr.sa_data. And that is 14 bytes.
>>>If you want to fix those it will be harder since it would increase
>>>the sizeof(struct sockaddr) and potentially break compatibility.
>>>
>>>
>>Maybe the best thing is to upgrade ip (and or netlink?) to use
>>netlink messages instead of ioctls for the remaining problematic
>>operations. Since netlink already supports an arbitary length hwaddr
>>there should be no compatability problem.
>>
>>Just browsing I see usages of SIOCSIFHWBROADCAST, SIOCSIFHWADDR,
>>SIOCADDMULTI, SIOCDELMULTI and SIOCGIFHWADDR that use a struct
>>ifreq..
>>
>>I know SIOCGIFHWADDR can be done over netlink, but I'm not too
>>familiar with the others..
>>
>>
>
>Making ip neighbor work with IPoIB address is what I'm interested in
>now.
>
>As you and Jason point out there are a lot of places where ifreqs are
>used and hence options that will not support IPoIB addresses.
>
>
>
The sockaddr union is at the end of struct ifreq. Couldn't the union
sockaddr members be changed to sockaddr_storage, and the SIOCxxxx
encoded size bits be changed? dev_ifsioc() would just need to mask out
(or substitute) the size bits before the switch statement.
- Mark
[-- Attachment #1.2: Type: text/html, Size: 1989 bytes --]
[-- Attachment #2: Type: text/plain, Size: 0 bytes --]
prev parent reply other threads:[~2006-03-23 18:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-16 22:24 [iproute2] IPoIB link layer address bug James Lentini
2006-03-21 23:56 ` [LARTC] " Stephen Hemminger
2006-03-21 23:56 ` Stephen Hemminger
2006-03-22 1:30 ` Jason Gunthorpe
2006-03-23 17:12 ` James Lentini
2006-03-23 18:10 ` Mark Butler [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4422E488.3060509@middle.net \
--to=butlerm@middle.net \
--cc=jlentini@netapp.com \
--cc=netdev@vger.kernel.org \
--cc=openib-general@openib.org \
--cc=shemminger@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.