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:
Steve Karg
2023-09-14 11:09:11 -05:00
committed by GitHub
parent 0cfe83d60b
commit 75286cffe4
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -24,7 +24,8 @@ Added [feature#14] EventTimeStamp decoding from ReadPropertyMultiple app
### 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
+3 -1
View File
@@ -863,7 +863,9 @@ static int createSocket(struct sockaddr_in *sin)
status = setsockopt(sock_fd, SOL_SOCKET, SO_BINDTODEVICE,
BIP_Interface_Name, strlen(BIP_Interface_Name));
if (status < 0) {
perror("SO_BINDTODEVICE: ");
if (BIP_Debug) {
perror("SO_BINDTODEVICE: ");
}
}
/* bind the socket to the local port number and IP address */
status =