TSG-17749 tsg-service-chaining-engine更改VXLAN Frame源端口的计算方式
This commit is contained in:
@@ -10,6 +10,8 @@ extern "C"
|
||||
#include <string.h>
|
||||
#include <arpa/inet.h>
|
||||
|
||||
#include "uthash.h"
|
||||
|
||||
enum address_type
|
||||
{
|
||||
ADDR_TYPE_IPV4,
|
||||
@@ -349,6 +351,13 @@ inline char *four_tuple_tostring(const struct four_tuple *tuple)
|
||||
return str_ret;
|
||||
}
|
||||
|
||||
inline uint64_t four_tuple_hash(const struct four_tuple *tuple)
|
||||
{
|
||||
uint64_t hash_value = 0;
|
||||
HASH_VALUE(tuple, sizeof(struct four_tuple), hash_value);
|
||||
return hash_value;
|
||||
}
|
||||
|
||||
#ifdef __cpluscplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user