Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

restart DHCPv6 transaction on receival of RA who contains a new prefix #75

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alinnastac
Copy link
Contributor

When upstream DHCPv6 server does not provide IA_NA or IA_PD options, odhcp6c enters in stateless mode, which will not be exited from until SIGUSR2 signal is received.

This change enforce DHCPv6 transaction restart on receival of a RA that:
a) advertise the presence of DHCPv6 server in the network, either
by containing M or O flags
b) has a PI (prefix information) option that contains a new prefix
thus allowing the switch to DHCPv6 stateful mode when RA PI options suggest that upstream DHCPv6 server now manages a new prefix.

Transaction restart is useful even when DHCPv6 client is already in stateful mode, so DHCPv6 server will be able to refresh client's IA_NA and IA_PD options before renewal timeout is triggered, hence avoiding usage of potentially deprecated addresses.

When upstream DHCPv6 server does not provide IA_NA or IA_PD options,
odhcp6c enters in stateless mode, which will not be exited from until
SIGUSR2 signal is received.

This change enforce DHCPv6 transaction restart on receival of a RA that:
  a) advertise the presence of DHCPv6 server in the network, either
     by containing M or O flags
  b) has a PI (prefix information) option that contains a new prefix
thus allowing the switch to DHCPv6 stateful mode when RA PI options
suggest that upstream DHCPv6 server now manages a new prefix.

Transaction restart is useful even when DHCPv6 client is already in
stateful mode, so DHCPv6 server will be able to refresh client's IA_NA
and IA_PD options before renewal timeout is triggered, hence avoiding
usage of potentially deprecated addresses.

Signed-off-by: Alin Nastac <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant