summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMasaya Hoshina <masaya.x.hoshina@sonymobile.com>2015-06-10 22:17:49 +0900
committerElliott Hughes <enh@google.com>2015-08-20 11:04:03 -0700
commit96d6901de7452ed1f0f11e264e44519f81d72aa2 (patch)
treee89f52eff0132db28750abe7ceb922aae90a1f3b
parent6ea37346ad20ac623312051b293bf5656e8072f6 (diff)
downloadplatform_external_android-clat-96d6901de7452ed1f0f11e264e44519f81d72aa2.tar.gz
platform_external_android-clat-96d6901de7452ed1f0f11e264e44519f81d72aa2.tar.bz2
platform_external_android-clat-96d6901de7452ed1f0f11e264e44519f81d72aa2.zip
Fix default_pdp_interface pointer reference
The default_pdp_interface was an array until 1352a3a26c4d7c32b38b7fadb837799a23014aa6 but is now a pointer and should be used directly here. Change-Id: I153802bddb2412f1b1d9e7a61081a5c6d34ee2cb
-rw-r--r--clatd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/clatd.c b/clatd.c
index faeb679..d57ea59 100644
--- a/clatd.c
+++ b/clatd.c
@@ -75,7 +75,7 @@ int configure_packet_socket(int sock) {
struct sockaddr_ll sll = {
.sll_family = AF_PACKET,
.sll_protocol = htons(ETH_P_IPV6),
- .sll_ifindex = if_nametoindex((char *) &Global_Clatd_Config.default_pdp_interface),
+ .sll_ifindex = if_nametoindex(Global_Clatd_Config.default_pdp_interface),
.sll_pkttype = PACKET_OTHERHOST, // The 464xlat IPv6 address is not assigned to the kernel.
};
if (bind(sock, (struct sockaddr *) &sll, sizeof(sll))) {