Skip to content

Commit

Permalink
Merge branch 'main' into feat/implement-discoverysrv-logging
Browse files Browse the repository at this point in the history
  • Loading branch information
hparzych authored Oct 10, 2023
2 parents 90f4fd7 + c708d5a commit 3450489
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions libebpfdiscoveryshared/headers/ebpfdiscoveryshared/Types.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ __attribute__((always_inline)) inline static void discoverySessionFlagsSetIPv6(D
struct DiscoverySessionMeta {
__u8 sourceIPData[16];
DiscoverySessionFlags flags;
__u32 pid;
};

struct DiscoverySession {
Expand Down
1 change: 1 addition & 0 deletions libebpfdiscoveryskel/src/Handlers.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ __attribute__((always_inline)) inline static void handleRead(
}

sessionPtr->id = allSessionStatePtr->sessionCounter;
sessionPtr->meta.pid = event.dataKey.pid;
allSessionStatePtr->sessionCounter++;
sessionFillIP((struct DiscoveryTrackedSessionKey*)&event.dataKey, sessionPtr);
} else {
Expand Down

0 comments on commit 3450489

Please sign in to comment.