Unspecified gateway address("::") is not permitted
when setting routing table.
So, if this value is passed, it must be handled appropriately.
Change-Id: If04df42fc0d6233bfca79e62efb80c8a1024e7c4
Signed-off-by: Jaehyun Kim <jeik01.kim@samsung.com>
return -1;
}
- if (gateway != NULL) {
+ if (gateway != NULL && g_strcmp0(gateway, "::") != 0) {
rt.rtmsg_flags |= RTF_GATEWAY;
if (inet_pton(AF_INET6, gateway, &rt.rtmsg_gateway) < 0) {
DBG("inet_pton failed : %s",