TSG-16531 PacketAdapter适配容器环境,使用mrzcpd收包,通过RAW Socket注RST包
This commit is contained in:
19
common/include/packet_inject.h
Normal file
19
common/include/packet_inject.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#ifndef _PACKET_INJECT_H
|
||||
#define _PACKET_INJECT_H
|
||||
|
||||
#ifdef __cpluscplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
#include <netinet/ip.h>
|
||||
#include <netinet/ip6.h>
|
||||
|
||||
int packet_inject_ipv4(struct in_addr *ip_dst, const char *data, int len);
|
||||
int packet_inject_ipv6(struct in6_addr *ip6_dst, const char *data, int len);
|
||||
|
||||
#ifdef __cpluscplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user