Bugfix/linux bip so bindtodevice error (#498)
* disable extraneous SO_BINDTODEVICE warning in Linux BIP --------- Co-authored-by: Steve Karg <steve.karg@legrand.us>
This commit is contained in:
+2
-1
@@ -24,7 +24,8 @@ Added [feature#14] EventTimeStamp decoding from ReadPropertyMultiple app
|
|||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
Fixed datetime decode of invalid application tag. (#495)
|
- Fixed datetime decode of invalid application tag. (#495)
|
||||||
|
- Fixed extraneous SO_BINDTODEVICE error message in Linux BIP
|
||||||
|
|
||||||
## [1.2.0] - 2023-09-11
|
## [1.2.0] - 2023-09-11
|
||||||
|
|
||||||
|
|||||||
@@ -863,7 +863,9 @@ static int createSocket(struct sockaddr_in *sin)
|
|||||||
status = setsockopt(sock_fd, SOL_SOCKET, SO_BINDTODEVICE,
|
status = setsockopt(sock_fd, SOL_SOCKET, SO_BINDTODEVICE,
|
||||||
BIP_Interface_Name, strlen(BIP_Interface_Name));
|
BIP_Interface_Name, strlen(BIP_Interface_Name));
|
||||||
if (status < 0) {
|
if (status < 0) {
|
||||||
perror("SO_BINDTODEVICE: ");
|
if (BIP_Debug) {
|
||||||
|
perror("SO_BINDTODEVICE: ");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/* bind the socket to the local port number and IP address */
|
/* bind the socket to the local port number and IP address */
|
||||||
status =
|
status =
|
||||||
|
|||||||
Reference in New Issue
Block a user