diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c3dfc3c..a660bc8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: diff --git a/knetstat.c b/knetstat.c index eef10cc..8000e66 100644 --- a/knetstat.c +++ b/knetstat.c @@ -31,6 +31,10 @@ #include +#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