|
|
|
@ -2259,6 +2259,7 @@ TmEcode AFPSetBPFFilter(AFPThreadVars *ptv)
|
|
|
|
* \param mapfd file descriptor of the protocol bypass table
|
|
|
|
* \param mapfd file descriptor of the protocol bypass table
|
|
|
|
* \param key data to use as key in the table
|
|
|
|
* \param key data to use as key in the table
|
|
|
|
* \param inittime time of creation of the entry (in monotonic clock)
|
|
|
|
* \param inittime time of creation of the entry (in monotonic clock)
|
|
|
|
|
|
|
|
* \return 0 in case of error, 1 if success
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static int AFPInsertHalfFlow(int mapd, void *key, uint64_t inittime)
|
|
|
|
static int AFPInsertHalfFlow(int mapd, void *key, uint64_t inittime)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
@ -2292,6 +2293,9 @@ static int AFPInsertHalfFlow(int mapd, void *key, uint64_t inittime)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Bypass function for AF_PACKET capture
|
|
|
|
|
|
|
|
*/
|
|
|
|
static int AFPBypassCallback(Packet *p)
|
|
|
|
static int AFPBypassCallback(Packet *p)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
#ifdef HAVE_PACKET_EBPF
|
|
|
|
#ifdef HAVE_PACKET_EBPF
|
|
|
|
|