blob: 8835b2377f0e5ba9dfbc56ee9c8502839f1ce854 [file] [log] [blame]
xf.lif1aed282024-02-06 00:31:51 -08001#ifndef _MY_HEADER_H_
2#define _MY_HEADER_H_
3
4/*
5 * Passing NETID_UNSET as the netId causes system/netd/server/DnsProxyListener.cpp to
6 * fill in the appropriate default netId for the query.
7 */
8#define NETID_UNSET 0u
9
10/*
11 * MARK_UNSET represents the default (i.e. unset) value for a socket mark.
12 */
13#define MARK_UNSET 0u
14
15
16/*
17 * Definition of type and code field values.
18 * http://www.iana.org/assignments/icmp-parameters
19 */
20#define ICMP_ECHOREPLY 0 /* echo reply */
21#define ICMP_UNREACH 3 /* dest unreachable, codes: */
22#define ICMP_UNREACH_NET 0 /* bad net */
23#define ICMP_UNREACH_HOST 1 /* bad host */
24#define ICMP_UNREACH_PROTOCOL 2 /* bad protocol */
25#define ICMP_UNREACH_PORT 3 /* bad port */
26#define ICMP_UNREACH_NEEDFRAG 4 /* IP_DF caused drop */
27#define ICMP_UNREACH_NET_PROHIB 9 /* for crypto devs */
28#define ICMP_UNREACH_HOST_PROHIB 10 /* ditto */
29#define ICMP_UNREACH_FILTER_PROHIB 13 /* prohibited access */
30#define ICMP_UNREACH_PRECEDENCE_CUTOFF 15 /* precedence cutoff */
31#define ICMP_SOURCEQUENCH 4 /* packet lost, slow down */
32#define ICMP_ECHO 8 /* echo service */
33#define NETID_USE_LOCAL_NAMESERVERS 0x80000000
34
35#if 0
36struct ucred {
37 pid_t pid;
38 uid_t uid;
39 gid_t gid;
40};
41#endif
42
43#define AID_VPN 1016 /* vpn system */
44#define AID_CLAT 1029 /* clat part of nat464 */
45#define AID_INET 3003 /* can create AF_INET and AF_INET6 sockets */
46
47#endif
48