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