Skip to content

Commit

Permalink
Fix build failures on newer linux kernels
Browse files Browse the repository at this point in the history
  • Loading branch information
monkburger authored and veithen committed Oct 28, 2023
1 parent 39c4818 commit 7d161a2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ jobs:
- 5.4.104
- 5.10.22
- 5.11.6
- 5.16
- 5.17
name: "Linux ${{ matrix.kernel }}"
runs-on: ubuntu-22.04
steps:
Expand Down
4 changes: 4 additions & 0 deletions knetstat.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@

#include <net/net_namespace.h>

#if LINUX_VERSION_CODE >= KERNEL_VERSION(5,17,0)
#define PDE_DATA(i) pde_data(i)
#endif

#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,13,0)
#define tcp_time_stamp tcp_time_stamp_raw()
#endif
Expand Down

0 comments on commit 7d161a2

Please sign in to comment.