コード例 #1
0
ファイル: os_net.c プロジェクト: jrossi/ossec-hids-old-unused
/* OS_Bindportudp v 0.1
 * Bind a UDP port, using the OS_Bindport
 */
int OS_Bindportudp(unsigned int _port, char *_ip)
{
    return(OS_Bindport(_port, IPPROTO_UDP, _ip));
}
コード例 #2
0
ファイル: os_net.c プロジェクト: jrossi/ossec-hids-old-unused
/* OS_Bindporttcp v 0.1
 * Bind a TCP port, using the OS_Bindport
 */
int OS_Bindporttcp(unsigned int _port, char *_ip)
{
    return(OS_Bindport(_port, IPPROTO_TCP, _ip));
}
コード例 #3
0
ファイル: os_net.c プロジェクト: AiGangJingYe/ossec-hids
/* Bind a UDP port, using the OS_Bindport */
int OS_Bindportudp(char *_port, const char *_ip)
{
    return (OS_Bindport(_port, IPPROTO_UDP, _ip));
}
コード例 #4
0
ファイル: os_net.c プロジェクト: ColdSmoke627/ossec-wazuh
/* Bind a UDP port, using the OS_Bindport */
int OS_Bindportudp(u_int16_t _port, const char *_ip, int ipv6)
{
    return (OS_Bindport(_port, IPPROTO_UDP, _ip, ipv6));
}
コード例 #5
0
ファイル: os_net.c プロジェクト: AiGangJingYe/ossec-hids
/* Bind a TCP port, using the OS_Bindport */
int OS_Bindporttcp(char *_port, const char *_ip)
{
    return (OS_Bindport(_port, IPPROTO_TCP, _ip));
}