Skip to content

Commit

Permalink
Set gateway properties for being accessible in DataCallResponse
Browse files Browse the repository at this point in the history
Some devices need gateway properties to be set inorder to setup route correctly

Change-Id: I45dce29de916f07eb79fad77dec914787c78e7ce
  • Loading branch information
shantur authored and Gerrit Code Review committed Oct 26, 2015
1 parent c55ca2d commit 3a86ae7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libnetutils/ifc_utils.c
Expand Up @@ -698,6 +698,8 @@ ifc_configure(const char *ifname,
property_set(dns_prop_name, dns1 ? ipaddr_to_string(dns1) : "");
snprintf(dns_prop_name, sizeof(dns_prop_name), "net.%s.dns2", ifname);
property_set(dns_prop_name, dns2 ? ipaddr_to_string(dns2) : "");
snprintf(dns_prop_name, sizeof(dns_prop_name), "net.%s.gw", ifname);
property_set(dns_prop_name, gateway ? ipaddr_to_string(gateway) : "");

return 0;
}

0 comments on commit 3a86ae7

Please sign in to comment.