Skip to content

Commit

Permalink
tap_user: Fix clang warn from unused static func
Browse files Browse the repository at this point in the history
  • Loading branch information
LekKit authored Apr 21, 2023
1 parent 6e84d08 commit 845db62
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/devices/tap_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,12 +122,14 @@ static bool eth_send(tap_dev_t* tap, const void* buffer, size_t size)
return tap->net.feed_rx(tap->net.net_dev, buffer, size);
}

#if 0
static inline uint16_t ip_checksum_combine(uint16_t csum1, uint16_t csum2)
{
uint32_t sum = ((~csum1) & 0xFFFF) + ((~csum2) & 0xFFFF);
sum = (sum >> 16) + (sum & 0xFFFF);
return ~sum;
}
#endif

static uint16_t ip_checksum(const void* data, size_t size, uint16_t initial)
{
Expand Down

0 comments on commit 845db62

Please sign in to comment.