Date: Sun, 16 May 1999 18:01:39 -0400 From: "David E. Cross" <crossd@cs.rpi.edu> To: Bernd Walter <ticso@cicely.de> Cc: "Justin C. Walker" <justin@apple.com>, Mike Smith <mike@smith.net.au>, Greg Lehey <grog@lemis.com>, "Mark J. Taylor" <mtaylor@cybernet.com>, Daniel Eischen <eischen@vigrid.com>, freebsd-hackers@FreeBSD.ORG, crossd@cs.rpi.edu Subject: Re: ifconfig: changing mac address Message-ID: <199905162201.SAA52023@cs.rpi.edu> In-Reply-To: Message from Bernd Walter <ticso@cicely.de> of "Sun, 16 May 1999 11:48:42 %2B0200." <19990516114842.A48820@cicely8.cicely.de>
next in thread | previous in thread | raw e-mail | index | archive | help
> > > > It seems there's a need, and the possibility. Would somebody like to > > > > suggest a syntax? > > > > > > The precedent would be the socket ioctls SIOCGIFHWADDR and > > > SIOCSIFHWADDR. The Linux emulator suppors the get-only version > > > already. > > It's already been mentioned that some adapters support multiple > > unicast media addresses (the DEC parts; the on-board enets for (most) > > PowerPC Macs; ...). It would be good to support aliases for media > > addresses as well. The 'alias' keyword for ifconfig could be > > overloaded for this, no? The driver could fail the request if it > > didn't support it; or if it has run out of slots for aliases. There > > should also be (I think) a way to tell the driver to go to > > promiscuous mode to emulate this (an "I really want this" request?), > > but I'm not sure it should be the default response to the "set > > hardware address" request. > An alias would be nice. A standby system must be reachable before it > will be active and will need another MAC to be. > But I don't see any sence in having more than one MAC on one IP-Address. > So talking on IP it should be an optional argument to the ip-alias. The linux method reeks of layer violation. I would suggest implimenting AF_LINK and using the already supported SIOC*ADDR routines on the AF_LINK socket. With that those IOCTLs there is already support for getting, setting and adding aliases. We do obviously need to support the other in linux-compat mode. -- David Cross | email: crossd@cs.rpi.edu Systems Administrator/Research Programmer | Web: http://www.cs.rpi.edu/~crossd Rensselaer Polytechnic Institute, | Ph: 518.276.2860 Department of Computer Science | Fax: 518.276.4033 I speak only for myself. | WinNT:Linux::Linux:FreeBSD To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199905162201.SAA52023>