2005-04-21 16:53:53 +02:00
|
|
|
/* net/ioctl.h - Network ioctl() command codes. Author: Kees J. Bot
|
|
|
|
* 23 Nov 2002
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _NET__IOCTL_H
|
|
|
|
#define _NET__IOCTL_H
|
|
|
|
|
|
|
|
#include <minix/ioctl.h>
|
2010-07-15 14:48:15 +02:00
|
|
|
#include <sys/un.h>
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2010-08-30 15:41:22 +02:00
|
|
|
#ifndef _SOCKLEN_T
|
|
|
|
#define _SOCKLEN_T
|
|
|
|
typedef int32_t socklen_t;
|
|
|
|
#endif /* _SOCKLEN_T */
|
|
|
|
|
|
|
|
#define MSG_CONTROL_MAX (1024 - sizeof(socklen_t))
|
|
|
|
struct msg_control
|
|
|
|
{
|
|
|
|
char msg_control[MSG_CONTROL_MAX];
|
|
|
|
socklen_t msg_controllen;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2005-04-21 16:53:53 +02:00
|
|
|
/* Network ioctls. */
|
|
|
|
#define NWIOSETHOPT _IOW('n', 16, struct nwio_ethopt)
|
|
|
|
#define NWIOGETHOPT _IOR('n', 17, struct nwio_ethopt)
|
|
|
|
#define NWIOGETHSTAT _IOR('n', 18, struct nwio_ethstat)
|
|
|
|
|
2005-06-28 17:19:58 +02:00
|
|
|
#define NWIOARPGIP _IORW('n',20, struct nwio_arp)
|
|
|
|
#define NWIOARPGNEXT _IORW('n',21, struct nwio_arp)
|
|
|
|
#define NWIOARPSIP _IOW ('n',22, struct nwio_arp)
|
|
|
|
#define NWIOARPDIP _IOW ('n',23, struct nwio_arp)
|
|
|
|
|
|
|
|
#define NWIOSIPCONF2 _IOW('n', 32, struct nwio_ipconf2)
|
2005-04-21 16:53:53 +02:00
|
|
|
#define NWIOSIPCONF _IOW('n', 32, struct nwio_ipconf)
|
2005-06-28 17:19:58 +02:00
|
|
|
#define NWIOGIPCONF2 _IOR('n', 33, struct nwio_ipconf2)
|
2005-04-21 16:53:53 +02:00
|
|
|
#define NWIOGIPCONF _IOR('n', 33, struct nwio_ipconf)
|
|
|
|
#define NWIOSIPOPT _IOW('n', 34, struct nwio_ipopt)
|
|
|
|
#define NWIOGIPOPT _IOR('n', 35, struct nwio_ipopt)
|
|
|
|
|
|
|
|
#define NWIOGIPOROUTE _IORW('n', 40, struct nwio_route)
|
|
|
|
#define NWIOSIPOROUTE _IOW ('n', 41, struct nwio_route)
|
|
|
|
#define NWIODIPOROUTE _IOW ('n', 42, struct nwio_route)
|
|
|
|
#define NWIOGIPIROUTE _IORW('n', 43, struct nwio_route)
|
|
|
|
#define NWIOSIPIROUTE _IOW ('n', 44, struct nwio_route)
|
|
|
|
#define NWIODIPIROUTE _IOW ('n', 45, struct nwio_route)
|
|
|
|
|
|
|
|
#define NWIOSTCPCONF _IOW('n', 48, struct nwio_tcpconf)
|
|
|
|
#define NWIOGTCPCONF _IOR('n', 49, struct nwio_tcpconf)
|
|
|
|
#define NWIOTCPCONN _IOW('n', 50, struct nwio_tcpcl)
|
|
|
|
#define NWIOTCPLISTEN _IOW('n', 51, struct nwio_tcpcl)
|
|
|
|
#define NWIOTCPATTACH _IOW('n', 52, struct nwio_tcpatt)
|
|
|
|
#define NWIOTCPSHUTDOWN _IO ('n', 53)
|
|
|
|
#define NWIOSTCPOPT _IOW('n', 54, struct nwio_tcpopt)
|
|
|
|
#define NWIOGTCPOPT _IOR('n', 55, struct nwio_tcpopt)
|
2005-06-28 17:19:58 +02:00
|
|
|
#define NWIOTCPPUSH _IO ('n', 56)
|
2005-07-27 13:40:34 +02:00
|
|
|
#define NWIOTCPLISTENQ _IOW('n', 57, int)
|
|
|
|
#define NWIOGTCPCOOKIE _IOR('n', 58, struct tcp_cookie)
|
|
|
|
#define NWIOTCPACCEPTTO _IOW('n', 59, struct tcp_cookie)
|
2006-03-24 15:08:46 +01:00
|
|
|
#define NWIOTCPGERROR _IOR('n', 60, int)
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
#define NWIOSUDPOPT _IOW('n', 64, struct nwio_udpopt)
|
|
|
|
#define NWIOGUDPOPT _IOR('n', 65, struct nwio_udpopt)
|
2005-06-28 17:19:58 +02:00
|
|
|
#define NWIOUDPPEEK _IOR('n', 66, struct udp_io_hdr)
|
2005-04-21 16:53:53 +02:00
|
|
|
|
2010-08-30 15:41:22 +02:00
|
|
|
#define NWIOGUDSFADDR _IOR ('n', 67, struct sockaddr_un) /* recvfrom() */
|
|
|
|
#define NWIOSUDSTADDR _IOW ('n', 68, struct sockaddr_un) /* sendto() */
|
|
|
|
#define NWIOSUDSADDR _IOW ('n', 69, struct sockaddr_un) /* bind() */
|
|
|
|
#define NWIOGUDSADDR _IOR ('n', 70, struct sockaddr_un) /* getsockname() */
|
|
|
|
#define NWIOGUDSPADDR _IOR ('n', 71, struct sockaddr_un) /* getpeername() */
|
|
|
|
#define NWIOSUDSTYPE _IOW ('n', 72, int) /* socket() */
|
|
|
|
#define NWIOSUDSBLOG _IOW ('n', 73, int) /* listen() */
|
|
|
|
#define NWIOSUDSCONN _IOW ('n', 74, struct sockaddr_un) /* connect() */
|
|
|
|
#define NWIOSUDSSHUT _IOW ('n', 75, int) /* shutdown() */
|
2011-08-31 15:38:28 +02:00
|
|
|
#define NWIOSUDSPAIROLD _IOW ('n', 76, short) /* socketpair() */
|
2010-08-30 15:41:22 +02:00
|
|
|
#define NWIOSUDSPAIR _IOW ('n', 76, dev_t) /* socketpair() */
|
|
|
|
#define NWIOSUDSACCEPT _IOW ('n', 77, struct sockaddr_un) /* accept() */
|
|
|
|
#define NWIOSUDSCTRL _IOW ('n', 78, struct msg_control) /* sendmsg() */
|
|
|
|
#define NWIOGUDSCTRL _IORW('n', 79, struct msg_control) /* recvmsg() */
|
2010-07-15 14:48:15 +02:00
|
|
|
|
2005-04-21 16:53:53 +02:00
|
|
|
#define NWIOSPSIPOPT _IOW('n', 80, struct nwio_psipopt)
|
|
|
|
#define NWIOGPSIPOPT _IOR('n', 81, struct nwio_psipopt)
|
|
|
|
|
2010-07-15 14:48:15 +02:00
|
|
|
/* setsockopt/setsockopt for unix domain sockets */
|
|
|
|
#define NWIOGUDSSOTYPE _IOR('n', 90, int) /* SO_TYPE */
|
2011-09-05 15:56:14 +02:00
|
|
|
#define NWIOGUDSPEERCREDOLD _IOR('n', 91, struct ucred_old) /* SO_PEERCRED */
|
2010-07-15 14:48:15 +02:00
|
|
|
#define NWIOGUDSPEERCRED _IOR('n', 91, struct ucred) /* SO_PEERCRED */
|
|
|
|
#define NWIOGUDSSNDBUF _IOR('n', 92, size_t) /* SO_SNDBUF */
|
|
|
|
#define NWIOSUDSSNDBUF _IOW('n', 93, size_t) /* SO_SNDBUF */
|
|
|
|
#define NWIOGUDSRCVBUF _IOR('n', 94, size_t) /* SO_RCVBUF */
|
|
|
|
#define NWIOSUDSRCVBUF _IOW('n', 95, size_t) /* SO_RCVBUF */
|
|
|
|
|
2005-04-21 16:53:53 +02:00
|
|
|
#endif /* _NET__IOCTL_H */
|
2005-06-28 17:19:58 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* $PchId: ioctl.h,v 1.2 2003/07/25 14:34:03 philip Exp $
|
|
|
|
*/
|