aboutsummaryrefslogtreecommitdiffstats
path: root/libtransport/src/hicn/transport/core/raw_socket_interface.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libtransport/src/hicn/transport/core/raw_socket_interface.cc')
-rw-r--r--libtransport/src/hicn/transport/core/raw_socket_interface.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/libtransport/src/hicn/transport/core/raw_socket_interface.cc b/libtransport/src/hicn/transport/core/raw_socket_interface.cc
index ef365fce7..bb4e083e1 100644
--- a/libtransport/src/hicn/transport/core/raw_socket_interface.cc
+++ b/libtransport/src/hicn/transport/core/raw_socket_interface.cc
@@ -43,9 +43,8 @@ void RawSocketInterface::connect(bool is_consumer) {
// Get interface ip address
struct sockaddr_in6 address = {0};
utils::retrieveInterfaceAddress(output_interface_, &address);
- inet6_address_.family = address.sin6_family;
- std::memcpy(inet6_address_.address.buffer, &address.sin6_addr,
+ std::memcpy(&inet6_address_.v6.as_u8, &address.sin6_addr,
sizeof(address.sin6_addr));
connector_.connect(output_interface_, remote_mac_address_);
}