]> git.proxmox.com Git - mirror_edk2.git/blame - MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Option.h
Sync the latest version from R8.
[mirror_edk2.git] / MdeModulePkg / Universal / Network / Ip4Dxe / Ip4Option.h
CommitLineData
83cbd279 1/** @file\r
2\r
3Copyright (c) 2005 - 2006, Intel Corporation\r
4All rights reserved. This program and the accompanying materials\r
5are licensed and made available under the terms and conditions of the BSD License\r
6which accompanies this distribution. The full text of the license may be found at\r
7http://opensource.org/licenses/bsd-license.php\r
8\r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
11\r
12\r
13Module Name:\r
14\r
15 Ip4Option.h\r
16\r
17Abstract:\r
18\r
19 IP4 option support routines.\r
20\r
21\r
22**/\r
23\r
24#ifndef __EFI_IP4_OPTION_H__\r
25#define __EFI_IP4_OPTION_H__\r
26\r
27enum {\r
28 IP4_OPTION_EOP = 0,\r
29 IP4_OPTION_NOP = 1,\r
30 IP4_OPTION_LSRR = 131, // Loss source and record routing, 10000011\r
31 IP4_OPTION_SSRR = 137, // Strict source and record routing, 10001001\r
32 IP4_OPTION_RR = 7, // Record routing, 00000111\r
33\r
34 IP4_OPTION_COPY_MASK = 0x80\r
35};\r
36\r
37BOOLEAN\r
38Ip4OptionIsValid (\r
39 IN UINT8 *Option,\r
40 IN UINT32 OptLen,\r
41 IN BOOLEAN Rcvd\r
42 );\r
43\r
44EFI_STATUS\r
45Ip4CopyOption (\r
46 IN UINT8 *Option,\r
47 IN UINT32 OptLen,\r
48 IN BOOLEAN Fragment,\r
49 IN UINT8 *Buf, OPTIONAL\r
50 IN OUT UINT32 *BufLen\r
51 );\r
52#endif\r