This file is indexed.

/usr/share/z88dk/include/net/device.h is in z88dk-data 1.8.ds1-10.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*
 *	Defs for a ZSock device driver
 *
 *	djm 25/1/2000
 *
 *	$Id: device.h,v 1.7 2002/05/14 22:31:15 dom Exp $
 */

#ifndef __NET_DEVICE_H__
#define __NET_DEVICE_H__

/* Address to which a plugin device is loaded */

#define DRIVER_ADDR 8192

/* Structure for the pkt drivers */

#ifdef SCCZ80
struct pktdrive {
        char    magic[10];	/* ZS0PKTDRV\0 */
        char    *type;		/* SLIP/PPP etc */
        char    *copymsg;	/* (C) string */
        int     (*initfunc)();	/* Initialise function */
        int     (*queuefn)();	/* Insert packet into queue */
        int     (*sendfn)();	/* Spew bytes out */
        int     (*readfn)();	/* Read packet from dev */
	void	(*onlinefn)();  /* Turn device online */
	void	(*offlinefn)();	/* Turn device offline (supply 1 for hangup, 0 for not hangup */
	void	(*statusfn)();
};
#else
struct pktdrive {
        char    magic[10];	/* ZS0PKTDRV\0 */
        char    *type;		/* SLIP/PPP etc */
        char    *copymsg;	/* (C) string */
        int     (*initfunc)();	/* Initialise function */
        void    (*queuefn)(void *pkt,u16_t len);	/* Insert packet into queue */
        void   *(*sendfn)();	/* Spew bytes out */
        int     (*readfn)(void **pkt);	/* Read packet from dev */
	void	(*onlinefn)();  /* Turn device online */
	void	(*offlinefn)(int);	/* Turn device offline (supply 1 for hangup, 0 for not hangup */
	int	(*statusfn)();
};
#endif


#ifndef _KERNEL
/*
 *	Routines for use by any packet drivers or apps
 *	if they really feel the need..
 */

/* Set the host IP address, returns it as well..network order! */

extern ipaddr_t __LIB__ __SHARED__ SetHostAddr(ipaddr_t ip);

/*
 * Set the name servers - supply both, if ns1 == 0 then no DNS 
 * returns number of nameservers
 */

extern size_t __LIB__ __SHARED__ SetNameServers(ipaddr_t ns1, ipaddr_t ns2);

#endif /* _KERNEL */

#endif /* _NET_DEVICE_H */