Sergey Pastor / 1

Dependents:   Nucleo

Embed: (wiki syntax)

« Back to documentation index

dhcpv6_relay.c File Reference

dhcpv6_relay.c File Reference

DHCPv6 relay agent (Dynamic Host Configuration Protocol for IPv6) More...

Go to the source code of this file.

Functions

error_t dhcpv6RelayStart (Dhcpv6RelayContext *context, const Dhcpv6RelaySettings *settings)
 Start DHCPv6 relay agent.
error_t dhcpv6RelayStop (Dhcpv6RelayContext *context)
 Stop DHCPv6 relay agent.
error_t dhcpv6RelayJoinMulticastGroup (Dhcpv6RelayContext *context)
 Join All_DHCP_Relay_Agents_and_Servers multicast group.
error_t dhcpv6RelayLeaveMulticastGroup (Dhcpv6RelayContext *context)
 Leave All_DHCP_Relay_Agents_and_Servers multicast group.
void dhcpv6RelayTask (void *param)
 DHCPv6 relay agent task.
error_t dhcpv6ForwardClientMessage (Dhcpv6RelayContext *context, uint_t index)
 Forward client message.
error_t dhcpv6ForwardRelayReplyMessage (Dhcpv6RelayContext *context)
 Forward Relay-Reply message.

Detailed Description

DHCPv6 relay agent (Dynamic Host Configuration Protocol for IPv6)

License

Copyright (C) 2010-2017 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.

Description

DHCPv6 Relay-Agents are deployed to forward DHCPv6 messages between clients and servers when they are not on the same IPv6 link and are often implemented alongside a routing function in a common node. Refer to RFC 3315

Author:
Oryx Embedded SARL (www.oryx-embedded.com)
Version:
1.7.6

Definition in file dhcpv6_relay.c.


Function Documentation

error_t dhcpv6ForwardClientMessage ( Dhcpv6RelayContext context,
uint_t  index 
)

Forward client message.

Parameters:
[in]contextPointer to the DHCPv6 relay agent context
[in]indexIndex identifying the interface on which the message was received
Returns:
Error code

Definition at line 428 of file dhcpv6_relay.c.

error_t dhcpv6ForwardRelayReplyMessage ( Dhcpv6RelayContext context )

Forward Relay-Reply message.

Parameters:
[in]contextPointer to the DHCPv6 relay agent context
Returns:
Error code

Definition at line 557 of file dhcpv6_relay.c.

error_t dhcpv6RelayJoinMulticastGroup ( Dhcpv6RelayContext context )

Join All_DHCP_Relay_Agents_and_Servers multicast group.

Parameters:
[in]contextPointer to the DHCPv6 relay agent context

Definition at line 294 of file dhcpv6_relay.c.

error_t dhcpv6RelayLeaveMulticastGroup ( Dhcpv6RelayContext context )

Leave All_DHCP_Relay_Agents_and_Servers multicast group.

Parameters:
[in]contextPointer to the DHCPv6 relay agent context

Definition at line 336 of file dhcpv6_relay.c.

error_t dhcpv6RelayStart ( Dhcpv6RelayContext context,
const Dhcpv6RelaySettings settings 
)

Start DHCPv6 relay agent.

Parameters:
[in]contextPointer to the DHCPv6 relay agent context
[in]settingsDHCPv6 relay agent specific settings
Returns:
Error code

Definition at line 56 of file dhcpv6_relay.c.

error_t dhcpv6RelayStop ( Dhcpv6RelayContext context )

Stop DHCPv6 relay agent.

Parameters:
[in]contextPointer to the DHCPv6 relay agent context
Returns:
Error code

Definition at line 245 of file dhcpv6_relay.c.

void dhcpv6RelayTask ( void *  param )

DHCPv6 relay agent task.

Parameters:
[in]paramPointer to the DHCPv6 relay agent context

Definition at line 359 of file dhcpv6_relay.c.