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 3a4e64e commit 5f014b3
Showing 1 changed file with 4 additions and 0 deletions.
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 5f014b3

Please sign in to comment.