1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-18 15:30:21 +00:00

Introduce the SIOC[SG]IFGENERIC hooks that can be used to pass an

arbritrary ioctl subcommand into an interface driver.  Surprisingly
enough, there was no provision for this already present (except of the
option of abusing SIOC[SG]IFMEDIA for this).

The idea is that an interface driver can establish ioctl subcommands
of its own that can't be meaningfully interpreted by the upper layer
interface ioctl function.  Something like this is required to
implement a clean solution of passing down things like CHAP secrets or
PPP options to the /sys/net/if_sppp* files.  (Yes, my CHAP is now
finally working with it, but i gotta update my kernel to the new
callout interface before being able to commit _that_.)

Reviewed by:	peter	[long ago, actually]
This commit is contained in:
Joerg Wunsch 1997-10-07 07:39:40 +00:00
parent cfeb4fd273
commit 90a09570d5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=30198

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)sockio.h 8.1 (Berkeley) 3/28/94
* $Id: sockio.h,v 1.9 1997/02/22 09:45:57 peter Exp $
* $Id: sockio.h,v 1.10 1997/05/03 21:05:03 peter Exp $
*/
#ifndef _SYS_SOCKIO_H_
@ -82,5 +82,7 @@
#define SIOCSIFPHYS _IOW('i', 54, struct ifreq) /* set IF wire */
#define SIOCSIFMEDIA _IOWR('i', 55, struct ifreq) /* set net media */
#define SIOCGIFMEDIA _IOWR('i', 56, struct ifmediareq) /* get net media */
#define SIOCSIFGENERIC _IOW('i', 57, struct ifreq) /* generic IF set op */
#define SIOCGIFGENERIC _IOWR('i', 58, struct ifreq) /* generic IF get op */
#endif /* !_SYS_SOCKIO_H_ */