add tcp active -> closing test case

This commit is contained in:
luwenpeng
2024-01-23 18:23:56 +08:00
parent 0df12ed331
commit 62b61fcc8d
7 changed files with 630 additions and 376 deletions

View File

@@ -129,6 +129,16 @@ static inline const uint8_t *tcp_hdr_get_opt_ptr(const struct tcphdr *hdr)
return ((const uint8_t *)hdr) + sizeof(struct tcphdr);
}
static inline void tcp_hdr_set_flags(struct tcphdr *hdr, uint8_t flags)
{
hdr->th_flags = flags;
}
static inline void tcp_hdr_set_flag_rst(struct tcphdr *hdr)
{
hdr->th_flags |= TH_RST;
}
#ifdef __cpluscplus
}
#endif