Skip to content

gk: allow single stack (i.e. either IPv4 or IPv6)#449

Merged
AltraMayor merged 1 commit intomasterfrom
single_ip
Dec 20, 2020
Merged

gk: allow single stack (i.e. either IPv4 or IPv6)#449
AltraMayor merged 1 commit intomasterfrom
single_ip

Conversation

@AltraMayor
Copy link
Owner

Pull request #447 introduced a bug that leads to a segmentation
fault during the initialization when only IPv4 or only IPv6 is
set up but the parameter gk_conf->max_num_ipv4_rules or
gk_conf->max_num_ipv6_rules of the disable stack is not zero.
See init_fib_tbl() in gk/fib.c for details.

This patch fixes the bug and adds warning messages and an assert
to the code.

Pull request #447 introduced a bug that leads to a segmentation
fault during the initialization when only IPv4 or only IPv6 is
set up but the parameter gk_conf->max_num_ipv4_rules or
gk_conf->max_num_ipv6_rules of the disable stack is not zero.
See init_fib_tbl() in gk/fib.c for details.

This patch fixes the bug and adds warning messages and an assert
to the code.
@AltraMayor AltraMayor added the bug label Dec 17, 2020
@AltraMayor AltraMayor added this to the First deployment milestone Dec 17, 2020
@mengxiang0811
Copy link
Collaborator

Patch gk: allow single stack (i.e. either IPv4 or IPv6) is ready for merge.

@AltraMayor AltraMayor merged commit 9fc059f into master Dec 20, 2020
@AltraMayor AltraMayor deleted the single_ip branch December 21, 2020 17:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants