# -*- text -*-
# Copyright (C) 2019 The FreeRADIUS Server project and contributors
# This work is licensed under CC-BY version 4.0 https://creativecommons.org/licenses/by/4.0
#
#	3GPP2 stuff.
#
#	http://www.3gpp2.org/Public_html/specs/index.cfm
#	X.S0011-005-C v1.0
#	http://www.3gpp2.org/Public_html/specs/X.S0011-005-C_v2.0_050708.pdf
#	http://www.3gpp2.org/Public_html/Specs/X.S0011-005-E_v1.0_091116.pdf
#
#	$Id: f345481d8cc70f8d83fc932a0433e6d96d838a72 $
#
VENDOR		3GPP2				5535

BEGIN-VENDOR	3GPP2

ATTRIBUTE	3GPP2-Ike-Preshared-Secret-Request	1	integer
ATTRIBUTE	3GPP2-Security-Level			2	integer
ATTRIBUTE	3GPP2-Pre-Shared-Secret			3	string # 18 octets
ATTRIBUTE	3GPP2-Reverse-Tunnel-Spec		4	integer
ATTRIBUTE	3GPP2-Diffserv-Class-Option		5	integer

VALUE	3GPP2-Diffserv-Class-Option	Best-Effort		0
VALUE	3GPP2-Diffserv-Class-Option	AF11			10
VALUE	3GPP2-Diffserv-Class-Option	AF12			12
VALUE	3GPP2-Diffserv-Class-Option	AF13			14
VALUE	3GPP2-Diffserv-Class-Option	AF21			18
VALUE	3GPP2-Diffserv-Class-Option	AF22			20
VALUE	3GPP2-Diffserv-Class-Option	AF23			22
VALUE	3GPP2-Diffserv-Class-Option	AF31			26
VALUE	3GPP2-Diffserv-Class-Option	AF32			28
VALUE	3GPP2-Diffserv-Class-Option	AF33			30
VALUE	3GPP2-Diffserv-Class-Option	AF41			34
VALUE	3GPP2-Diffserv-Class-Option	AF42			36
VALUE	3GPP2-Diffserv-Class-Option	AF43			38
VALUE	3GPP2-Diffserv-Class-Option	EF			46

#  Contains embedded 3GPP2 accounting attributes.
ATTRIBUTE	3GPP2-Accounting-Container		6	octets
ATTRIBUTE	3GPP2-Home-Agent-IP-Address		7	ipaddr

# A number formed from the concatenation of the home RADIUS IP address,
# the FA IP address, and a 32-bit Unix timestamp, all encoded as 8 ASCII
#  hex characters.
ATTRIBUTE	3GPP2-KeyID				8	string # 22 octets

ATTRIBUTE	3GPP2-PCF-IP-Address			9	ipaddr
ATTRIBUTE	3GPP2-BSID				10	string
ATTRIBUTE	3GPP2-User-Id				11	integer
ATTRIBUTE	3GPP2-Forward-FCH-Mux-Option		12	integer
ATTRIBUTE	3GPP2-Reverse-FCH-Mux-Option		13	integer
#
# 14-15 ?
#
ATTRIBUTE	3GPP2-Service-Option			16	integer
ATTRIBUTE	3GPP2-Forward-Traffic-Type		17	integer
ATTRIBUTE	3GPP2-Reverse-Traffic-Type		18	integer
ATTRIBUTE	3GPP2-FCH-Frame-Size			19	integer
ATTRIBUTE	3GPP2-Forward-FCH-RC			20	integer
ATTRIBUTE	3GPP2-Reverse-FCH-RC			21	integer
ATTRIBUTE	3GPP2-IP-Technology			22	integer
ATTRIBUTE	3GPP2-Compulsory-Tunnel-Indicator	23	integer
ATTRIBUTE	3GPP2-Release-Indicator			24	integer
ATTRIBUTE	3GPP2-Bad-PPP-Frame-Count		25	integer
#
# 26-29 ?
#
ATTRIBUTE	3GPP2-Number-Active-Transitions		30	integer
ATTRIBUTE	3GPP2-Terminating-SDB-Octet-Count	31	integer
ATTRIBUTE	3GPP2-Originating-SDB-OCtet-Count	32	integer
ATTRIBUTE	3GPP2-Terminating-Number-SDBs		33	integer
ATTRIBUTE	3GPP2-Originating-Number-SDBs		34	integer
# 35 ?
ATTRIBUTE	3GPP2-IP-QoS				36	integer
# 37-38 ?
ATTRIBUTE	3GPP2-Airlink-Priority			39	integer
ATTRIBUTE	3GPP2-Airlink-Record-Type		40	integer # ?
ATTRIBUTE	3GPP2-R-P-Session-ID			41	octets
ATTRIBUTE	3GPP2-Airlink-Sequence-Number		42	integer # ?
ATTRIBUTE	3GPP2-Received-HDLC-Octets		43	integer
ATTRIBUTE	3GPP2-Correlation-Id			44	string
ATTRIBUTE	3GPP2-Module-Orig-Term-Indicator	45	octets # ?
ATTRIBUTE	3GPP2-Inbound-Mobile-IP-Sig-Octets	46	integer
ATTRIBUTE	3GPP2-Outbound-Mobile-IP-Sig-Octets	47	integer
ATTRIBUTE	3GPP2-Session-Continue			48	integer
ATTRIBUTE	3GPP2-Active-Time			49	integer
ATTRIBUTE	3GPP2-DCCH-Frame-Size			50	integer
ATTRIBUTE	3GPP2-Begin-Session			51	integer
ATTRIBUTE	3GPP2-ESN				52	string
# 53 ?
ATTRIBUTE	3GPP2-S-Key				54	octets
ATTRIBUTE	3GPP2-S-Request				55	integer
ATTRIBUTE	3GPP2-S-Lifetime			56	date
ATTRIBUTE	3GPP2-MN-HA-SPI				57	integer
ATTRIBUTE	3GPP2-MN-HA-Shared-Key			58	string encrypt=2

ATTRIBUTE	3GPP2-Remote-IP-Address			59	tlv
ATTRIBUTE	3GPP2-Remote-IP-Address-Value		59.1	ipaddr
ATTRIBUTE	3GPP2-Remote-IP-Address-Mask		59.2	integer
ATTRIBUTE	3GPP2-Remote-IP-Qualifier		59.3	short

ATTRIBUTE	3GPP2-HRPD-Access-Authorization		60	integer

ATTRIBUTE	3GPP2-AT-Hardware-Identifier		61	tlv
ATTRIBUTE	3GPP2-AT-Hardware-Identifier-Type	61.1	integer
ATTRIBUTE	3GPP2-AT-Hardware-Identifier-Value	61.2	octets

# 62 - 69 are marked "reserved"

ATTRIBUTE	3GPP2-Remote-IPv6-Address		70	tlv
ATTRIBUTE	3GPP2-Remote-IPv6-Address-Value		70.1	ipv6addr
ATTRIBUTE	3GPP2-Remote-IPv6-Address-Prefix-Length	70.2	integer
ATTRIBUTE	3GPP2-Remote-IPv6-Address-Qualifier	70.3	tlv

ATTRIBUTE	3GPP2-Remote-Address-Table-Index	71	tlv
ATTRIBUTE	3GPP2-Remote-Address-Table-Index-Value	71.1	short
ATTRIBUTE	3GPP2-Remote-Address-Table-Index-Qualifier 71.2	short

ATTRIBUTE	3GPP2-Remote-IPv4-Addr-Octet-Count	72	tlv
ATTRIBUTE	3GPP2-Remote-IPv4-Addr-Octet-Count-Address 72.1	ipaddr
ATTRIBUTE	3GPP2-Remote-IPv4-Addr-Octet-Count-Mask	72.2	integer
ATTRIBUTE	3GPP2-Remote-IPv4-Addr-Octet-Count-Forward 72.3	integer
ATTRIBUTE	3GPP2-Remote-IPv4-Addr-Octet-Count-Reverse 72.4	integer
ATTRIBUTE	3GPP2-Remote-IPv4-Addr-Octet-Count-Table-Index 72.5	short
ATTRIBUTE	3GPP2-Remote-IPv4-Addr-Octet-Count-Forward-Overflow 72.6	short
ATTRIBUTE	3GPP2-Remote-IPv4-Addr-Octet-Count-Reverse-Overflow 72.7	short

ATTRIBUTE	3GPP2-Allowed-Diffserv-Marking		73	tlv
ATTRIBUTE	3GPP2-Allowed-Diffserv-Marking-Allowed	73.1	short
ATTRIBUTE	3GPP2-Allowed-Diffserv-Marking-Max-Class 73.2	short
ATTRIBUTE	3GPP2-Allowed-Diffserv-Marking-Reverse-Runnel 73.3	short

ATTRIBUTE	3GPP2-Service-Option-Profile		74	tlv
ATTRIBUTE	3GPP2-Service-Option-Profile-Option	74.1	short

ATTRIBUTE	3GPP2-DNS-Update-Required		75	integer

# 76 ?
# 77 ?
ATTRIBUTE	3GPP2-Always-On				78	integer
ATTRIBUTE	3GPP2-Foreign-Agent-Address		79	ipaddr
ATTRIBUTE	3GPP2-Last-User-Activity-Time		80	integer
ATTRIBUTE	3GPP2-MN-AAA-Removal-Indication		81	integer
ATTRIBUTE	3GPP2-RN-Packet-Data-Inactivity-Timer	82	integer
ATTRIBUTE	3GPP2-Forward-PDCH-RC			83	integer
ATTRIBUTE	3GPP2-Forward-DCCH-Mux-Option		84	integer
ATTRIBUTE	3GPP2-Reverse-DCCH-Mux-Option		85	integer
ATTRIBUTE	3GPP2-Forward-DCCH-RC			86	integer
ATTRIBUTE	3GPP2-Reverse-DHHC-RC			87	integer
ATTRIBUTE	3GPP2-Session-Termination-Capability	88	integer
ATTRIBUTE	3GPP2-Allowed-Persistent-TFTs		89	integer

ATTRIBUTE	3GPP2-Prepaid-Acct-Quota		90	tlv

ATTRIBUTE	3GPP2-Prepaid-Acct-Quota-QuotaIDentifier 90.1	integer
ATTRIBUTE	3GPP2-Prepaid-Acct-Quota-VolumeQuota	90.2	integer
ATTRIBUTE	3GPP2-Prepaid-Acct-Quota-VolumeQuotaOverflow 90.3	integer
ATTRIBUTE	3GPP2-Prepaid-Acct-Quota-VolumeThreshold 90.4	integer
ATTRIBUTE	3GPP2-Prepaid-Acct-Quota-VolumeThresholdOverflow 90.5	integer
ATTRIBUTE	3GPP2-Prepaid-Acct-Quota-UpdateReason	90.8	short

# The next two attributes contain sub-types
ATTRIBUTE	3GPP2-Prepaid-acct-Capability		91	octets
ATTRIBUTE	3GPP2-MIP-Lifetime			92	octets

ATTRIBUTE	3GPP2-Acct-Stop-Trigger			93	integer

ATTRIBUTE	3GPP2-Service-Reference-Id		94	tlv
ATTRIBUTE	3GPP2-Service-Reference-Id-Value	94.1	short
ATTRIBUTE	3GPP2-Service-Reference-Main-SC-Indicator 94.2	short

ATTRIBUTE	3GPP2-DNS-Update-Capability		95	integer
ATTRIBUTE	3GPP2-Disconnect-Reason			96	integer

ATTRIBUTE	3GPP2-Remote-IPv6-Octet-Count		97	tlv
ATTRIBUTE	3GPP2-Remote-IPv6-Count-Address		97.1	ipv6addr
ATTRIBUTE	3GPP2-Remote-IPv6-Prefix-Length		97.2	short
ATTRIBUTE	3GPP2-Remote-IPv6-Forward-Octet-Count	97.3	integer
ATTRIBUTE	3GPP2-Remote-IPv6-Reverse-Octet-Count	97.4	integer
ATTRIBUTE	3GPP2-Remote-IPv6-Table-Index		97.5	short
ATTRIBUTE	3GPP2-Remote-IPv6-Reverse-Octet-Count-Overflow 97.6	short

ATTRIBUTE	3GPP2-PrePaid-Tariff-Switching		98	tlv
ATTRIBUTE	3GPP2-Prepaid-Quota-Identifier		98.1	integer
ATTRIBUTE	3GPP2-Prepaid-Volume-Used-After-Tariff-Switch 98.2	integer
ATTRIBUTE	3GPP2-Prepaid-Volume-Used-ATS-Overflow	98.3	short
ATTRIBUTE	3GPP2-Prepaid-Tariff-Switch-Interval	98.4	integer
ATTRIBUTE	3GPP2-Prepaid-Time-Interval-After-Tariff-Switch-Update 98.5	integer

ATTRIBUTE	3GPP2-Subnet				108	tlv
ATTRIBUTE	3GPP2-Subnet-Subnet			108.1	octets
ATTRIBUTE	3GPP2-Subnet-Sector-ID			108.2	octets

ATTRIBUTE	3GPP2-MEID				116	octets	# sub tlvs?

ATTRIBUTE	3GPP2-DNS-Server-IP-Address		117	tlv
ATTRIBUTE	3GPP2-DNS-Server-Primary-IP-Address	117.1	ipaddr
ATTRIBUTE	3GPP2-DNS-Server-Secondary-IP-Address	117.2	ipaddr
ATTRIBUTE	3GPP2-DNS-Server-Flag			117.3	byte
ATTRIBUTE	3GPP2-DNS-Server-Entity-Type		117.4	byte

VALUE	3GPP2-DNS-Server-Entity-Type	HAAA			1
VALUE	3GPP2-DNS-Server-Entity-Type	VAAA			2

ATTRIBUTE	3GPP2-MIP6-Home-Agent			118	ipv6addr
ATTRIBUTE	3GPP2-MIP6-CoA				119	ipv6addr
ATTRIBUTE	3GPP2-MIP6-HoA-Not-Authorized		120	integer
ATTRIBUTE	3GPP2-MIP6-Session-Key			121	octets
ATTRIBUTE	3GPP2-MIP6-Accounting-Indication	122	string
ATTRIBUTE	3GPP2-MIP6-Mesg-ID			123	octets
ATTRIBUTE	3GPP2-Filter-Rule			124	string
ATTRIBUTE	3GPP2-HTTP-Redirection-Rule		125	string
ATTRIBUTE	3GPP2-IP-Redirection-Rule		126	string
ATTRIBUTE	3GGP2-Hot-Line-Capability		127	integer

ATTRIBUTE	3GPP2-MIP6-Home-Link-Prefix		128	octets
ATTRIBUTE	3GPP2-Max-Auth-Aggregate-Bandwidth	130	integer

ATTRIBUTE	3GPP2-Auth-Flow-Profile-ID		131	tlv
ATTRIBUTE	3GPP2-Auth-Flow-Profile-ID-Forward	131.1	short
ATTRIBUTE	3GPP2-Auth-Flow-Profile-ID-Reverse	131.2	short
ATTRIBUTE	3GPP2-Auth-Flow-Profile-ID-Bi-Direction	131.3	short

ATTRIBUTE	3GPP2-Granted-QoS-Params		132	tlv
ATTRIBUTE	3GPP2-Granted-QoS-Params-Direction	132.1	short
ATTRIBUTE	3GPP2-Granted-QoS-Params-Flow-Id	132.2	short
ATTRIBUTE	3GPP2-Granted-QoS-Params-Flow-Profile-ID	132.4	short
ATTRIBUTE	3GPP2-Granted-QoS-Params-Traffic-Class	132.5	short
ATTRIBUTE	3GPP2-Granted-QoS-Params-Peak-Rate	132.6	short
ATTRIBUTE	3GPP2-Granted-QoS-Params-Bucket-Size	132.7	short
ATTRIBUTE	3GPP2-Granted-QoS-Params-Token-Rate	132.8	short
ATTRIBUTE	3GPP2-Granted-QoS-Params-Max-Latency	132.9	short
ATTRIBUTE	3GPP2-Granted-QoS-Params-Max-IP-Packet-Loss-Rate	132.10	short
ATTRIBUTE	3GPP2-Granted-QoS-Params-Packet-Size	132.11	short
ATTRIBUTE	3GPP2-Granted-QoS-Params-Delay-Var-Sensitive	132.12	short

ATTRIBUTE	3GPP2-Max-Per-Flow-Priority		133	integer
ATTRIBUTE	3GPP2-MIP6-Authenticator		134	octets

ATTRIBUTE	3GPP2-MIP6-MAC-Mobility-Data		138	octets
ATTRIBUTE	3GPP2-Inter-User-Priority		139	integer
ATTRIBUTE	3GPP2-MIP6-Home-Agent-Attr-B		140	ipv6addr
ATTRIBUTE	3GPP2-MIP6-HoA				141	ipv6addr

ATTRIBUTE	3GPP2-Carrier-ID			142	string

# More sub-types
ATTRIBUTE	3GPP2-GMT-Time-Zone-Offset		143	signed
ATTRIBUTE	3GPP2-Flow-ID				144	tlv
ATTRIBUTE	3GPP2-Flow-ID-Direction			144.1	short
ATTRIBUTE	3GPP2-Flow-ID-Flow-ID			144.2	short
ATTRIBUTE	3GPP2-Flow-Status			145	integer
ATTRIBUTE	3GPP2-Filtered-Octet-Count-Terminating	146	integer
ATTRIBUTE	3GPP2-Filtered-Octet-Count-Originating	147	integer

ATTRIBUTE	3GPP2-RSVP-Outbound-Octet-Count		163	integer
ATTRIBUTE	3GPP2-RSVP-Inbound-Octet-Count		164	integer
ATTRIBUTE	3GPP2-RSVP-Outbound-Packet-Count	165	integer

ATTRIBUTE	3GPP2-HA-Request			168	integer
ATTRIBUTE	3GPP2-HA-Authorised			169	integer
ATTRIBUTE	3GPP2-IP-Ver-Authorised			172	integer
ATTRIBUTE	3GPP2-MIPv4-Mesg-Id			173	string

ATTRIBUTE	3GPP2-MIP6-HA-Local-Assigment-Capability	179	integer

ATTRIBUTE	3GPP2-HAAA-MIP6-HA-Protocol-Capability-Indication	203	integer

ATTRIBUTE	3GPP2-VAAA-Assigned-MIP6-HA		205	ipv6addr
ATTRIBUTE	3GPP2-VAAA-Assigned-MIP6-HL		206	octets
ATTRIBUTE	3GPP2-VAAA-MIP6-HA-Protocol-Capability-Indication	207	integer

ATTRIBUTE	3GPP2-DNS-Server-IPv6-Address		214	tlv
ATTRIBUTE	3GPP2-DNS-Server-IPv6-Address-Primary	214.1	ipv6addr
ATTRIBUTE	3GPP2-DNS-Server-IPv6-Address-Secondary	214.2	ipv6addr
ATTRIBUTE	3GPP2-DNS-Server-IPv6-Address-Flag	214.3	byte
ATTRIBUTE	3GPP2-DNS-Server-IPv6-Address-Entity-Type	214.4	byte

END-VENDOR 3GPP2
