]> git.proxmox.com Git - mirror_edk2.git/blame_incremental - 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
... / ...
CommitLineData
1/** @file
2
3Copyright (c) 2005 - 2006, Intel Corporation
4All rights reserved. This program and the accompanying materials
5are licensed and made available under the terms and conditions of the BSD License
6which accompanies this distribution. The full text of the license may be found at
7http://opensource.org/licenses/bsd-license.php
8
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
11
12
13Module Name:
14
15 Ip4Option.h
16
17Abstract:
18
19 IP4 option support routines.
20
21
22**/
23
24#ifndef __EFI_IP4_OPTION_H__
25#define __EFI_IP4_OPTION_H__
26
27enum {
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
37BOOLEAN
38Ip4OptionIsValid (
39 IN UINT8 *Option,
40 IN UINT32 OptLen,
41 IN BOOLEAN Rcvd
42 );
43
44EFI_STATUS
45Ip4CopyOption (
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