blob: a1722fe3eb4fbc3ddf03cce1574296a27fb60b46 [file] [log] [blame]
Prakash Dhavali7090c5f2015-11-02 17:55:19 -08001/*
2 * Copyright (c) 2012, 2014 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#define IP_PROTOCOL_ICMP 0x01 /* Internet Control Message Protocol */
32#define IP_PROTOCOL_IGMP 0x02 /* Internet Group Management Protocol */
33#define IP_PROTOCOL_IPV4 0x04 /* IPv4 (encapsulation) */
34#define IP_PROTOCOL_TCP 0x06 /* Transmission Control Protocol */
35#define IP_PROTOCOL_UDP 0x11 /* User Datagram Protocol */
36#define IP_PROTOCOL_RDP 0x1B /* Reliable Datagram Protocol */
37#define IP_PROTOCOL_IPV6 0x29 /* IPv6 (encapsulation) */
38#define IP_PROTOCOL_IPV6_ROUTE 0x2B /* Routing Header for IPv6 */
39#define IP_PROTOCOL_IPV6_FRAG 0x2C /* Fragment Header for IPv6 */
40#define IP_PROTOCOL_RSVP 0x2E /* Resource Reservation Protocol */
41#define IP_PROTOCOL_GRE 0x2F /* Generic Routing Encapsulation */
42#define IP_PROTOCOL_MHRP 0x30 /* Mobile Host Routing Protocol */
43#define IP_PROTOCOL_BNA 0x31 /* BNA */
44#define IP_PROTOCOL_ESP 0x32 /* Encapsulating Security Payload */
45#define IP_PROTOCOL_MOBILE 0x37 /* IP Mobility (Min Encap) */
46#define IP_PROTOCOL_IPV6_ICMP 0x3A /* ICMP for IPv6 */
47#define IP_PROTOCOL_IPV6_NONXT 0x3B /* No Next Header for IPv6 */
48#define IP_PROTOCOL_IPV6_OPTS 0x3C /* Destination Options for IPv6 */
49#define IP_PROTOCOL_IPCOMP 0x6C /* IP Payload Compression Protocol */
50#define IP_PROTOCOL_L2TP 0x73 /* Layer Two Tunneling Protocol Version 3 */
51#define IP_PROTOCOL_SMP 0x79 /* Simple Message Protocol */
52#define IP_PROTOCOL_SCTP 0x84 /* Stream Control Transmission Protocol */
53#define IP_PROTOCOL_SHIM6 0x8C /* Site Multihoming by IPv6 Intermediation */
54
55/* IPv6 ICMP types */
56#define IPV6_ICMP_TYPE_MLD 0x8F
57
58#endif /* _IP_PROT__H_ */