Skip to content

Commit

Permalink
Review fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pawsten committed Sep 28, 2023
1 parent ae4f0fd commit 251c963
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libebpfdiscovery/src/IpAddressChecker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ static void logErrorFromErrno(std::string_view prefix) {
std::cout << prefix << ": " << strerror(errno) << "\n";
}

static int sendIpAddrRequest(int fd, sockaddr_nl* sa, int domain) {
static int sendIpAddrRequest(int fd, sockaddr_nl* dst, int domain) {
std::array<char, BUFFLEN> buf{};

nlmsghdr* nl;
Expand All @@ -44,7 +44,7 @@ static int sendIpAddrRequest(int fd, sockaddr_nl* sa, int domain) {
ifa->ifa_family = domain; // ipv4 or ipv6

iovec iov = {nl, nl->nlmsg_len};
msghdr msg = {sa, sizeof(*sa), &iov, 1, NULL, 0, 0};
msghdr msg = {dst, sizeof(*dst), &iov, 1, NULL, 0, 0};

return sendmsg(fd, &msg, 0);
}
Expand Down

0 comments on commit 251c963

Please sign in to comment.