コード例 #1
0
ファイル: ipvswrapper.c プロジェクト: Addision/LVS
static int
ipvs_talk(int cmd)
{
	int result;
	if (result = ipvs_command(cmd, urule))
		if ((cmd == IP_VS_SO_SET_EDITDEST) &&
		    (errno == ENOENT))
			result = ipvs_command(IP_VS_SO_SET_ADDDEST, urule);
	if (result)
		log_message(LOG_INFO, "IPVS : %s", ipvs_strerror(errno));
	return IPVS_SUCCESS;
}
コード例 #2
0
ファイル: ipvswrapper.c プロジェクト: millken/zhuxianB30
static int
ipvs_talk(int cmd)
{
    if (ipvs_command(cmd, urule))
        log_message(LOG_INFO, "IPVS : %s", ipvs_strerror(errno));
    return IPVS_SUCCESS;
}