parent
6ee38533ed
commit
dddca17acd
|
@ -220,7 +220,7 @@ static void vxlan_pkg_head_init(PVXLAN_PEER pvxLan) {
|
|||
pkg->qinq_head.in_type = lwip_htons(QINQ_802_1_AD);
|
||||
}
|
||||
|
||||
int vxlan_peer_add(unsigned int vni, const char* pIp, const char* pMac) {
|
||||
int vxlan_peer_add(unsigned int vni, const char *pIp, const char *pMac) {
|
||||
PVXLAN_PEER vxlan_peer;
|
||||
|
||||
if (!VERIFY_STRING(pIp) || !VERIFY_STRING(pMac)) {
|
||||
|
@ -260,6 +260,8 @@ int vxlan_peer_add(unsigned int vni, const char* pIp, const char* pMac) {
|
|||
uv_rwlock_wrlock(&g_vxLanLinks.lock_peer);
|
||||
HASH_ADD_INT(g_pAllvxLanPeers, vni, vxlan_peer);
|
||||
uv_rwlock_wrunlock(&g_vxLanLinks.lock_peer);
|
||||
|
||||
dzlog_debug("Add vxLan[vni = %d]: vSwitch: %s, %s\n", vni, pIp, pMac);
|
||||
}
|
||||
|
||||
return ERR_SUCCESS;
|
||||
|
|
Loading…
Reference in New Issue