equal
deleted
inserted
replaced
1242 */ |
1242 */ |
1243 static int getMacAddress |
1243 static int getMacAddress |
1244 (JNIEnv *env, const char *ifname, const struct in_addr *addr, |
1244 (JNIEnv *env, const char *ifname, const struct in_addr *addr, |
1245 unsigned char *buf) |
1245 unsigned char *buf) |
1246 { |
1246 { |
1247 static struct ifreq ifr; |
1247 struct ifreq ifr; |
1248 int i, sock; |
1248 int i, sock; |
1249 |
1249 |
1250 if ((sock = openSocketWithFallback(env, ifname)) < 0) { |
1250 if ((sock = openSocketWithFallback(env, ifname)) < 0) { |
1251 return -1; |
1251 return -1; |
1252 } |
1252 } |