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 a559336
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
- 5.4.104
- 5.10.22
- 5.11.6
- 5.14.0
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,14,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 a559336

Please sign in to comment.