Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add utility to determine if ip is local external #8

Merged
merged 27 commits into from
Oct 5, 2023
Merged
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
3d2dfed
Added Utility to termine whether ipv4 is external local
pawsten Sep 18, 2023
9022757
Review fixes
pawsten Sep 19, 2023
91a0fac
CMakeLists cleanup
pawsten Sep 21, 2023
46c8893
Added gsl to conanfile
pawsten Sep 21, 2023
3214d30
Cleanup
pawsten Sep 21, 2023
b375869
Added recognizing ipv4 link local addresses
pawsten Sep 21, 2023
2a6619c
Review cleanup, changed naming
pawsten Sep 21, 2023
7bdb67d
Merge branch 'main' into Add-utility-to-determine-if-ip-is-local-exte…
hparzych Sep 21, 2023
c299514
Naming changed
pawsten Sep 22, 2023
fbe0d55
Merge branch 'Add-utility-to-determine-if-ip-is-local-external' of ht…
pawsten Sep 22, 2023
49c5dcc
Function split
pawsten Sep 22, 2023
fcdab86
Conanfile gsl changed name originated from conan.io, File rename
pawsten Sep 25, 2023
605f528
GSL package name fix
pawsten Sep 25, 2023
e6e7354
Cleanup
pawsten Sep 25, 2023
8cb216c
Cleanup
pawsten Sep 25, 2023
82308b4
Review fix
pawsten Sep 25, 2023
6517126
Warning fix
pawsten Sep 25, 2023
745292a
Merge branch 'main' into Add-utility-to-determine-if-ip-is-local-exte…
hparzych Sep 26, 2023
ed32e3a
Review fixes
pawsten Sep 27, 2023
ae4f0fd
Merge branch 'Add-utility-to-determine-if-ip-is-local-external' of ht…
pawsten Sep 28, 2023
6a1b063
Review fix
pawsten Sep 28, 2023
898c2aa
Added UT for netlink layer
pawsten Oct 3, 2023
791fe2f
c-style cast removed
pawsten Oct 3, 2023
be6dee2
Build fix
pawsten Oct 3, 2023
b43731b
File NetlinkCalls added
pawsten Oct 4, 2023
aa968b8
Merge branch 'main' into Add-utility-to-determine-if-ip-is-local-exte…
pawsten Oct 5, 2023
cc94656
Review fixes
pawsten Oct 5, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Warning fix
  • Loading branch information
pawsten committed Sep 25, 2023
commit 6517126343e5a3f017bfa1ebc0a1130afc2f892d
4 changes: 2 additions & 2 deletions libebpfdiscovery/src/IpAddressChecker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <array>
#include <cstring>
#include <errno.h>
#include <gsl/gsl_util>
#include <gsl/util>
#include <iostream>
#include <linux/rtnetlink.h>
#include <net/if.h>
Expand Down Expand Up @@ -64,7 +64,7 @@ static int sendBridgesRequest(int fd, sockaddr_nl* sa, int domain) {
struct {
struct nlmsghdr n;
struct ifinfomsg i;
char _[1024]; // required
char _[1024]; // space for rtattr array
} r{};

const char* dev_type = "bridge";
Expand Down