add tcp active -> closing test case
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user