ip_prot.h 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. * This file was originally distributed by Qualcomm Atheros, Inc.
  23. * under proprietary terms before Copyright ownership was assigned
  24. * to the Linux Foundation.
  25. */
  26. #ifndef _IP_PROT__H_
  27. #define _IP_PROT__H_
  28. #define IP_PROTOCOL_ICMP 0x01 /* Internet Control Message Protocol */
  29. #define IP_PROTOCOL_IGMP 0x02 /* Internet Group Management Protocol */
  30. #define IP_PROTOCOL_IPV4 0x04 /* IPv4 (encapsulation) */
  31. #define IP_PROTOCOL_TCP 0x06 /* Transmission Control Protocol */
  32. #define IP_PROTOCOL_UDP 0x11 /* User Datagram Protocol */
  33. #define IP_PROTOCOL_RDP 0x1B /* Reliable Datagram Protocol */
  34. #define IP_PROTOCOL_IPV6 0x29 /* IPv6 (encapsulation) */
  35. #define IP_PROTOCOL_IPV6_ROUTE 0x2B /* Routing Header for IPv6 */
  36. #define IP_PROTOCOL_IPV6_FRAG 0x2C /* Fragment Header for IPv6 */
  37. #define IP_PROTOCOL_RSVP 0x2E /* Resource Reservation Protocol */
  38. #define IP_PROTOCOL_GRE 0x2F /* Generic Routing Encapsulation */
  39. #define IP_PROTOCOL_MHRP 0x30 /* Mobile Host Routing Protocol */
  40. #define IP_PROTOCOL_BNA 0x31 /* BNA */
  41. #define IP_PROTOCOL_ESP 0x32 /* Encapsulating Security Payload */
  42. #define IP_PROTOCOL_MOBILE 0x37 /* IP Mobility (Min Encap) */
  43. #define IP_PROTOCOL_IPV6_ICMP 0x3A /* ICMP for IPv6 */
  44. #define IP_PROTOCOL_IPV6_NONXT 0x3B /* No Next Header for IPv6 */
  45. #define IP_PROTOCOL_IPV6_OPTS 0x3C /* Destination Options for IPv6 */
  46. #define IP_PROTOCOL_IPCOMP 0x6C /* IP Payload Compression Protocol */
  47. #define IP_PROTOCOL_L2TP 0x73 /* Layer Two Tunneling Protocol Version 3 */
  48. #define IP_PROTOCOL_SMP 0x79 /* Simple Message Protocol */
  49. #define IP_PROTOCOL_SCTP 0x84 /* Stream Control Transmission Protocol */
  50. #define IP_PROTOCOL_SHIM6 0x8C /* Site Multihoming by IPv6 Intermediation */
  51. /* IPv6 ICMP types */
  52. #define IPV6_ICMP_TYPE_MLD 0x8F
  53. #endif /* _IP_PROT__H_ */