Skip to content

Commit

Permalink
keepalived: fix dpvs crash problem in issue iqiyi#911
Browse files Browse the repository at this point in the history
Signed-off-by: ywc689 <ywc689@163.com>
  • Loading branch information
ywc689 committed Oct 18, 2023
1 parent 80f4458 commit 1297bfd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions include/conf/dest.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,6 @@ typedef struct dp_vs_dest_compat {

/* statistics */
struct dp_vs_stats stats;
#ifdef _HAVE_IPVS_TUN_TYPE_
int tun_type;
int tun_port;
#ifdef _HAVE_IPVS_TUN_CSUM_
int tun_flags;
#endif
#endif
} dpvs_dest_compat_t;

typedef struct dp_vs_dest_table {
Expand Down
7 changes: 0 additions & 7 deletions tools/keepalived/keepalived/check/ipvswrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -840,13 +840,6 @@ ipvs_set_drule(int cmd, dpvs_dest_compat_t *drule, real_server_t * rs)
drule->fwdmode = rs->forwarding_method;
drule->max_conn = rs->u_threshold;
drule->min_conn = rs->l_threshold;
#ifdef _HAVE_IPVS_TUN_TYPE_
drule->tun_type = rs->tun_type;
drule->tun_port = rs->tun_port;
#ifdef _HAVE_IPVS_TUN_CSUM_
drule->tun_flags = rs->tun_flags;
#endif
#endif
}

/*check whitelist addr*/
Expand Down

0 comments on commit 1297bfd

Please sign in to comment.