mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
Tools: hv: Gather address family information
Now, gather address family information for the specified interface. Signed-off-by: K. Y. Srinivasan <[email protected]> Reviewed-by: Haiyang Zhang <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
af733015c9
commit
0d5b6b197f
1 changed files with 11 additions and 0 deletions
|
|
@ -589,6 +589,17 @@ kvp_get_ip_address(int family, char *if_name, int op,
|
|||
continue;
|
||||
}
|
||||
|
||||
if (op == KVP_OP_GET_IP_INFO) {
|
||||
/*
|
||||
* Gather info other than the IP address.
|
||||
* IP address info will be gathered later.
|
||||
*/
|
||||
if (curp->ifa_addr->sa_family == AF_INET)
|
||||
ip_buffer->addr_family |= ADDR_FAMILY_IPV4;
|
||||
else
|
||||
ip_buffer->addr_family |= ADDR_FAMILY_IPV6;
|
||||
}
|
||||
|
||||
error = kvp_process_ip_address(curp->ifa_addr,
|
||||
curp->ifa_addr->sa_family,
|
||||
buffer,
|
||||
|
|
|
|||
Loading…
Reference in a new issue