]>
Commit | Line | Data |
---|---|---|
83cbd279 | 1 | /** @file\r |
2 | \r | |
3 | Copyright (c) 2005 - 2006, Intel Corporation\r | |
4 | All rights reserved. This program and the accompanying materials\r | |
5 | are licensed and made available under the terms and conditions of the BSD License\r | |
6 | which accompanies this distribution. The full text of the license may be found at\r | |
7 | http://opensource.org/licenses/bsd-license.php\r | |
8 | \r | |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
11 | \r | |
12 | \r | |
13 | Module Name:\r | |
14 | \r | |
15 | Ip4Option.h\r | |
16 | \r | |
17 | Abstract:\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 | |
5405e9a6 | 27 | typedef enum {\r |
83cbd279 | 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 | |
5405e9a6 | 35 | } IP4_OPTION_ENUM_TYPES;\r |
83cbd279 | 36 | \r |
37 | BOOLEAN\r | |
38 | Ip4OptionIsValid (\r | |
39 | IN UINT8 *Option,\r | |
40 | IN UINT32 OptLen,\r | |
41 | IN BOOLEAN Rcvd\r | |
42 | );\r | |
43 | \r | |
44 | EFI_STATUS\r | |
45 | Ip4CopyOption (\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 |