summaryrefslogtreecommitdiff
path: root/libstd/ifreq+osx.myr
blob: f5205bf3fe34bc4c3a1ff5e406d203bc6b9e846c (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
68
69
70
71
72
73
74
75
76
77
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_flags = struct
		name	: byte[Ifnamesz]
		flags	: int16
	;;

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


	type ifreq_phys = struct
		name	: byte[Ifnamesz]
		phys	: int32
	;;

	type ifreq_media = struct
		name	: byte[Ifnamesz]
		media	: int32
	;;

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

	type ifreq_devmtu = struct
		name	: byte[Ifnamesz]
                cur	: uint32
                min	: uint32
                max	: uint32
	;;

	type ifreq_kpi = struct
		name	: byte[Ifnamesz]
                modid	: uint32
                typeid	: uint32
		ptr	: void#
	;;

	type ifreq_wakeflg = struct
		name	: byte[Ifnamesz]
		wakeflg	: uint32
	;;
		
	type ifreq_routerefs = struct
		name	: byte[Ifnamesz]
		refs	: uint32
	;;

	type ifreq_icaps = struct
		name	: byte[Ifnamesz]
		req	: uint32
		cur	: uint32
	;;

;;