Skip to content

Commit

Permalink
Merge pull request #149 from Lochnair/master
Browse files Browse the repository at this point in the history
compat: before kernel 4.5 IP6_ECN_set_ce only took one parameter
  • Loading branch information
dtaht authored Sep 28, 2022
2 parents d9e1398 + 85a9196 commit 53ff94d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cobalt_compat.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,10 @@ static inline unsigned int __tcp_hdrlen(const struct tcphdr *th)
}
#endif

#if KERNEL_VERSION(4, 5, 0) > LINUX_VERSION_CODE
#define IP6_ECN_set_ce(_a, _b) IP6_ECN_set_ce(_b)
#endif

#if KERNEL_VERSION(4, 6, 0) > LINUX_VERSION_CODE
static inline int skb_try_make_writable(struct sk_buff *skb,
unsigned int write_len)
Expand Down

0 comments on commit 53ff94d

Please sign in to comment.