summaryrefslogtreecommitdiff
path: root/lib/std/ifreq+linux.myr
blob: 62be8ee4366f3aa67e3084ea5cf5a3841c62736e (plain)
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
67
use "sys.use"

pkg sys =
	const Ifnamesz = 16

	type ifreq_addr = struct
		name	: byte[Ifnamesz]
		addr	: sockaddr
	;;

	type ifreq_dstaddr = struct
		name	: byte[Ifnamesz]
		dstaddr	: sockaddr
	;;

	type ifreq_broadaddr = struct
		name	: byte[Ifnamesz]
		broadaddr	: sockaddr
	;;

	type ifreq_netmask = struct
		name	: byte[Ifnamesz]
		netmask	: sockaddr
	;;


	type ifreq_hwaddr = struct
		name	: byte[Ifnamesz]
		hwaddr	: sockaddr
	;;

	type ifreq_flags = struct
		name	: byte[Ifnamesz]
		flags	: int16
	;;

	type ifreq_ifindex = struct
		name	: byte[Ifnamesz]
		index	: int32
	;;

	type ifreq_metric = struct
		name	: byte[Ifnamesz]
		metric	: int32
	;;


	type ifreq_mtu = struct
		name	: byte[Ifnamesz]
		mtu	: int32
	;;

	type ifreq_slave = struct
		name	: byte[Ifnamesz]
		slave	: byte[Ifnamesz]
	;;

	type ifreq_newname = struct
		name	: byte[Ifnamesz]
		newname	: byte[Ifnamesz]
	;;

	type ifreq_data = struct
		name	: byte[Ifnamesz]
		data	: void#
	;;
;;