TianoCore EDK2 master
|
Go to the source code of this file.
Functions | |
BOOLEAN | Ip6IsOptionValid (IN IP6_SERVICE *IpSb, IN NET_BUF *Packet, IN UINT8 *Option, IN UINT16 OptionLen, IN UINT32 Pointer) |
Exposes the functions needed to test the Ip6Option module.
Copyright (c) Microsoft Corporation SPDX-License-Identifier: BSD-2-Clause-Patent
Definition in file Ip6OptionGoogleTest.h.
BOOLEAN Ip6IsOptionValid | ( | IN IP6_SERVICE * | IpSb, |
IN NET_BUF * | Packet, | ||
IN UINT8 * | Option, | ||
IN UINT16 | OptionLen, | ||
IN UINT32 | Pointer | ||
) |
Validate the IP6 option format for both the packets we received and that we will transmit. It will compute the ICMPv6 error message fields if the option is malformatted.
[in] | IpSb | The IP6 service data. |
[in] | Packet | The to be validated packet. |
[in] | Option | The first byte of the option. |
[in] | OptionLen | The length of the whole option. |
[in] | Pointer | Identifies the octet offset within the invoking packet where the error was detected. |
TRUE | The option is properly formatted. |
FALSE | The option is malformatted. |
Validate the IP6 option format for both the packets we received and that we will transmit. It will compute the ICMPv6 error message fields if the option is malformatted.
[in] | IpSb | The IP6 service data. |
[in] | Packet | The to be validated packet. |
[in] | Option | The first byte of the option. |
[in] | OptionLen | The length of all options, expressed in byte length of octets. Maximum length is 2046 bytes or ((n + 1) * 8) - 2 where n is 255. |
[in] | Pointer | Identifies the octet offset within the invoking packet where the error was detected. |
TRUE | The option is properly formatted. |
FALSE | The option is malformatted. |
Definition at line 31 of file Ip6Option.c.