Skip to content

Commit

Permalink
Try an inline declaration to fix Ubuntu 20.04 problems?
Browse files Browse the repository at this point in the history
  • Loading branch information
fruffy committed May 1, 2024
1 parent 333a083 commit 88cac13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testdata/extern_modules/extern-checksum-ebpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* @param iphdr Structure representing IP header. The IP header is generated by the P4 compiler and defined in test.h.
* @return True if checksum is correct.
*/
u8 verify_ipv4_checksum(const struct IPv4_h iphdr)
inline u8 verify_ipv4_checksum(const struct IPv4_h iphdr)
{
u8 correct = 0;
u32 checksum = bpf_htons(((u16) iphdr.version << 12) | ((u16) iphdr.ihl << 8) | (u16) iphdr.diffserv);
Expand Down

0 comments on commit 88cac13

Please sign in to comment.