slaac_misc.h File Reference

Helper functions for SLAAC. More...

#include "core/net.h"
#include "ipv6/slaac.h"

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.

Author
Oryx Embedded SARL (www.oryx-embedded.com)
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]contextPointer 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]contextPointer 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]contextPointer 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]contextPointer to the SLAAC context
[in]optionPointer 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]contextPointer to the SLAAC context
[in]messagePointer to the Router Advertisement message
[in]lengthLength of the message, in bytes

Definition at line 104 of file slaac_misc.c.