Helper functions for SLAAC. More...
Go to the source code of this file.
Functions | |
void | slaacLinkChangeEvent (SlaacContext *context) |
Callback function for link change event. More... | |
void | slaacParseRouterAdv (SlaacContext *context, NdpRouterAdvMessage *message, size_t length) |
Parse Router Advertisement message. More... | |
void | slaacParsePrefixInfoOption (SlaacContext *context, NdpPrefixInfoOption *option) |
Parse Prefix Information Option. More... | |
error_t | slaacGenerateLinkLocalAddr (SlaacContext *context) |
Generate a link-local address. More... | |
void | slaacDumpConfig (SlaacContext *context) |
Dump IPv6 configuration for debugging purpose. More... | |
Detailed Description
Helper functions for SLAAC.
License
SPDX-License-Identifier: GPL-2.0-or-later
Copyright (C) 2010-2024 Oryx Embedded SARL. All rights reserved.
This file is part of CycloneTCP Open.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
- Version
- 2.4.4
Definition in file slaac_misc.h.
Function Documentation
◆ slaacDumpConfig()
void slaacDumpConfig | ( | SlaacContext * | context | ) |
Dump IPv6 configuration for debugging purpose.
- Parameters
-
[in] context Pointer to the SLAAC context
Definition at line 480 of file slaac_misc.c.
◆ slaacGenerateLinkLocalAddr()
error_t slaacGenerateLinkLocalAddr | ( | SlaacContext * | context | ) |
Generate a link-local address.
- Parameters
-
[in] context Pointer to the SLAAC context
- Returns
- Error code
Definition at line 429 of file slaac_misc.c.
◆ slaacLinkChangeEvent()
void slaacLinkChangeEvent | ( | SlaacContext * | context | ) |
Callback function for link change event.
- Parameters
-
[in] context Pointer to the SLAAC context
Definition at line 54 of file slaac_misc.c.
◆ slaacParsePrefixInfoOption()
void slaacParsePrefixInfoOption | ( | SlaacContext * | context, |
NdpPrefixInfoOption * | option | ||
) |
Parse Prefix Information Option.
- Parameters
-
[in] context Pointer to the SLAAC context [in] option Pointer to the Prefix Information option
Definition at line 197 of file slaac_misc.c.
◆ slaacParseRouterAdv()
void slaacParseRouterAdv | ( | SlaacContext * | context, |
NdpRouterAdvMessage * | message, | ||
size_t | length | ||
) |
Parse Router Advertisement message.
- Parameters
-
[in] context Pointer to the SLAAC context [in] message Pointer to the Router Advertisement message [in] length Length of the message, in bytes
Definition at line 104 of file slaac_misc.c.