}
#endif
+#ifdef SO_BINDTODEVICE
if (param->local_device) {
if (setsockopt(stream_socket, SOL_SOCKET,
SO_BINDTODEVICE, param->local_device, strlen(param->local_device))) {
return -1;
}
}
+#endif
return 0;
}
}
#endif
+#ifdef SO_BINDTODEVICE
if (param->local_device) {
if (setsockopt(send_socket, SOL_SOCKET,
SO_BINDTODEVICE, param->local_device, strlen(param->local_device))) {
return -1;
}
}
+#endif
/*
Bind src port when not using raw socket to pass in ICMP id, kernel
}
#endif
+#ifdef SO_BINDTODEVICE
if (param->local_device) {
if (setsockopt(send_socket,
SOL_SOCKET, SO_BINDTODEVICE, param->local_device,
return -1;
}
}
+#endif
return 0;
}