xref: /wlan-driver/fw-api/fw/ip_prot.h (revision 5113495b16420b49004c444715d2daae2066e7dc) !
1 /*
2  * Copyright (c) 2012 The Linux Foundation. All rights reserved.
3  *
4  * Previously licensed under the ISC license by Qualcomm Atheros, Inc.
5  *
6  *
7  * Permission to use, copy, modify, and/or distribute this software for
8  * any purpose with or without fee is hereby granted, provided that the
9  * above copyright notice and this permission notice appear in all
10  * copies.
11  *
12  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL
13  * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
14  * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
15  * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
16  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
17  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
18  * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19  * PERFORMANCE OF THIS SOFTWARE.
20  */
21 
22 /*
23  * This file was originally distributed by Qualcomm Atheros, Inc.
24  * under proprietary terms before Copyright ownership was assigned
25  * to the Linux Foundation.
26  */
27 
28 #ifndef _IP_PROT__H_
29 #define _IP_PROT__H_
30 
31 
32 #define IP_PROTOCOL_ICMP        0x01 /* Internet Control Message Protocol */
33 #define IP_PROTOCOL_IGMP        0x02 /* Internet Group Management Protocol */
34 #define IP_PROTOCOL_IPV4        0x04 /* IPv4 (encapsulation) */
35 #define IP_PROTOCOL_TCP         0x06 /* Transmission Control Protocol */
36 #define IP_PROTOCOL_UDP         0x11 /* User Datagram Protocol */
37 #define IP_PROTOCOL_RDP         0x1B /* Reliable Datagram Protocol */
38 #define IP_PROTOCOL_IPV6        0x29 /* IPv6 (encapsulation) */
39 #define IP_PROTOCOL_IPV6_ROUTE  0x2B /* Routing Header for IPv6 */
40 #define IP_PROTOCOL_IPV6_FRAG   0x2C /* Fragment Header for IPv6 */
41 #define IP_PROTOCOL_RSVP        0x2E /* Resource Reservation Protocol */
42 #define IP_PROTOCOL_GRE         0x2F /* Generic Routing Encapsulation */
43 #define IP_PROTOCOL_MHRP        0x30 /* Mobile Host Routing Protocol */
44 #define IP_PROTOCOL_BNA         0x31 /* BNA */
45 #define IP_PROTOCOL_ESP         0x32 /* Encapsulating Security Payload */
46 #define IP_PROTOCOL_MOBILE      0x37 /* IP Mobility (Min Encap) */
47 #define IP_PROTOCOL_IPV6_ICMP   0x3A /* ICMP for IPv6 */
48 #define IP_PROTOCOL_IPV6_NONXT  0x3B /* No Next Header for IPv6 */
49 #define IP_PROTOCOL_IPV6_OPTS   0x3C /* Destination Options for IPv6 */
50 #define IP_PROTOCOL_IPCOMP      0x6C /* IP Payload Compression Protocol */
51 #define IP_PROTOCOL_L2TP        0x73 /* Layer Two Tunneling Protocol Version 3 */
52 #define IP_PROTOCOL_SMP         0x79 /* Simple Message Protocol */
53 #define IP_PROTOCOL_SCTP        0x84 /* Stream Control Transmission Protocol */
54 #define IP_PROTOCOL_SHIM6       0x8C /* Site Multihoming by IPv6 Intermediation */
55 
56 
57 
58 /* IPv6 ICMP types */
59 #define IPV6_ICMP_TYPE_MLD 0x8F
60 
61 #endif /* _IP_PROT__H_ */
62