jdk/src/java.base/unix/native/libnet/NetworkInterface.c
changeset 45703 fc1eb80b198b
parent 44927 d554736d963e
equal deleted inserted replaced
45702:e7cbd383f71b 45703:fc1eb80b198b
  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     }