/***********************************************************
Copyright IBM Corporation 1987
Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted,
provided that the above copyright notice appear in all copies and that
both that copyright notice and this permission notice appear in
supporting documentation, and that the name of IBM not be
used in advertising or publicity pertaining to distribution of the
software without specific, written prior permission.
IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
******************************************************************/
* ARGO Project, Computer Sciences Dept., University of Wisconsin - Madison
* $Header: iso_usrreq.c,v 4.2 88/06/29 15:00:06 hagens Exp $
* $Source: /usr/argo/sys/netiso/RCS/iso_usrreq.c,v $
* iso_usrreq.c : support for iso address family ioctls only.
* (which support ifconfig, for example)
static char *rcsid
= "$Header: iso_usrreq.c,v 4.2 88/06/29 15:00:06 hagens Exp $";
#include "../net/route.h"
* PURPOSE: Provide a means of getting from soo_ioctl to iso_control
* RETURNS: unix error code
* NOTES: Only PRU_CONTROL causes anything to occur. PRU_ATTACH
* and PRU_DETACH are noops so socket and close don't return
iso_usrreq(so
, req
, m
, nam
, rights
, control
)
struct socket
*so
; /* socket: used only to get to this code */
struct mbuf
*m
; /* data for request */
struct mbuf
*nam
; /* optional name */
struct mbuf
*rights
; /* optional rights */
struct mbuf
*control
; /* optional control info */
error
= iso_control(so
, (int)m
, (caddr_t
)nam
,