Safecopies renders the NWIOQUERYPARAM ioctl useless. This functionality is now replaced with /dev/ipstat. Write the request to the device and read the answer in one read request.
		
			
				
	
	
		
			24 lines
		
	
	
		
			524 B
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			524 B
		
	
	
	
		
			C
		
	
	
		
			Executable File
		
	
	
	
	
/*
 | 
						|
net/netlib.h
 | 
						|
*/
 | 
						|
 | 
						|
#ifndef _NET__NETLIB_H_
 | 
						|
#define _NET__NETLIB_H_
 | 
						|
 | 
						|
#ifndef _ANSI
 | 
						|
#include <ansi.h>
 | 
						|
#endif
 | 
						|
 | 
						|
_PROTOTYPE (int iruserok, (unsigned long raddr, int superuser,
 | 
						|
		const char *ruser, const char *luser) );
 | 
						|
_PROTOTYPE (int rcmd, (char **ahost, int rport, const char *locuser, 
 | 
						|
		const char *remuser, const char *cmd, int *fd2p) );
 | 
						|
 | 
						|
#define IPSTAT_DEVICE	"/dev/ipstat"
 | 
						|
#define ETH_DEVICE	"/dev/eth"
 | 
						|
#define IP_DEVICE	"/dev/ip"
 | 
						|
#define TCP_DEVICE	"/dev/tcp"
 | 
						|
#define UDP_DEVICE	"/dev/udp"
 | 
						|
 | 
						|
#endif /* _NET__NETLIB_H_ */
 |