mirror of
https://passt.top/passt
synced 2025-06-14 03:25:34 +02:00
tcp: Don't export tcp_update_csum()
tcp_update_csum() is exposed in tcp_internal.h, but is only used in tcp.c. Remove the unneded prototype and make it static. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
12d5b36b2f
commit
27395e67c2
2 changed files with 2 additions and 3 deletions
3
tcp.c
3
tcp.c
|
@ -787,7 +787,8 @@ static void tcp_sock_set_nodelay(int s)
|
|||
* @th: TCP header (updated)
|
||||
* @payload: TCP payload
|
||||
*/
|
||||
void tcp_update_csum(uint32_t psum, struct tcphdr *th, struct iov_tail *payload)
|
||||
static void tcp_update_csum(uint32_t psum, struct tcphdr *th,
|
||||
struct iov_tail *payload)
|
||||
{
|
||||
th->check = 0;
|
||||
psum = csum_unfolded(th, sizeof(*th), psum);
|
||||
|
|
|
@ -166,8 +166,6 @@ void tcp_rst_do(const struct ctx *c, struct tcp_tap_conn *conn);
|
|||
|
||||
struct tcp_info_linux;
|
||||
|
||||
void tcp_update_csum(uint32_t psum, struct tcphdr *th,
|
||||
struct iov_tail *payload);
|
||||
void tcp_fill_headers(const struct tcp_tap_conn *conn,
|
||||
struct tap_hdr *taph,
|
||||
struct iphdr *ip4h, struct ipv6hdr *ip6h,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue