فهرست منبع

core: reqorked check for incompatible modes of bind_ipv6_link_local

(cherry picked from commit f7045d1c08d37e91ee7e96e415c06b218aee98fd)
Daniel-Constantin Mierla 1 سال پیش
والد
کامیت
9537180808
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      src/core/cfg.y

+ 2 - 1
src/core/cfg.y

@@ -987,7 +987,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");
 		}
 	}