Searched refs:asSockaddr (Results 1 – 2 of 2) sorted by relevance
51 inline const sockaddr* asSockaddr(const sockaddr_nl* nladdr) { in asSockaddr() function64 if (::bind(s.get(), asSockaddr(&bind_addr), sizeof(bind_addr)) != 0) { in netlinkSocket()71 if (::connect(s.get(), asSockaddr(&kernel_addr), sizeof(kernel_addr)) != 0) { in netlinkSocket()
79 inline const sockaddr* asSockaddr(const sockaddr_nl* nladdr) { in asSockaddr() function92 if (::bind(s.get(), asSockaddr(&bind_addr), sizeof(bind_addr)) < 0) { in conntrackSocket()99 if (connect(s.get(), asSockaddr(&kernel_addr), sizeof(kernel_addr)) != 0) { in conntrackSocket()