Skip to content

Commit

Permalink
Merge pull request #969 from leogoing/fix-del-lip
Browse files Browse the repository at this point in the history
tools/ipvsadm: fix could not remove lip
  • Loading branch information
ywc689 authored Jun 19, 2024
2 parents d23db64 + e5d466e commit db2176b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/keepalived/keepalived/check/libipvs.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ int dpvs_del_laddr(dpvs_service_compat_t *svc, dpvs_laddr_table_t *laddr)
dpvs_fill_ipaddr_conf(0, 0, laddr, &param);
dpvs_setsockopt(SOCKOPT_SET_IFADDR_DEL, &param, sizeof(struct inet_addr_param));

return dpvs_setsockopt(SOCKOPT_SET_LADDR_DEL, laddr, sizeof(laddr));
return dpvs_setsockopt(SOCKOPT_SET_LADDR_DEL, laddr, sizeof(dpvs_laddr_table_t));
}

/*for black list*/
Expand Down

0 comments on commit db2176b

Please sign in to comment.