Skip to content

Commit

Permalink
core: reqorked check for incompatible modes of bind_ipv6_link_local
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Sep 18, 2024
1 parent ba6ab04 commit f7045d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/cfg.y
Original file line number Diff line number Diff line change
Expand Up @@ -1001,7 +1001,8 @@ assign_stm:
| IPV6_HEX_STYLE error { yyerror("string value expected"); }
| BIND_IPV6_LINK_LOCAL EQUAL NUMBER {
sr_bind_ipv6_link_local = $3;
if(!(sr_bind_ipv6_link_local && (KSR_IPV6_LINK_LOCAL_BIND|KSR_IPV6_LINK_LOCAL_SKIP))) {
if((sr_bind_ipv6_link_local & KSR_IPV6_LINK_LOCAL_BIND)
&& (sr_bind_ipv6_link_local & KSR_IPV6_LINK_LOCAL_SKIP)) {
yyerror("incompatible modes set");
}
}
Expand Down

0 comments on commit f7045d1

Please sign in to comment.