Exemple #1
0
void dns_tcp_init(void)
{
    static struct proto_ops const ops = {
        .parse      = dns_tcp_parse,
        .parser_new = uniq_parser_new,
        .parser_del = uniq_parser_del,
    };
    uniq_proto_ctor(&uniq_proto_dns_tcp, &ops, "DNS/TCP");
    port_muxer_ctor(&tcp_port_muxer, &tcp_port_muxers, 53, 53, proto_dns_tcp);
}
Exemple #2
0
void netbios_init(void)
{
    log_category_proto_netbios_init();

    static struct proto_ops const ops = {
        .parse      = netbios_parse,
        .parser_new = uniq_parser_new,
        .parser_del = uniq_parser_del,
    };
    uniq_proto_ctor(&uniq_proto_netbios, &ops, "Netbios");
}
Exemple #3
0
void rtp_init(void)
{
    log_category_proto_rtp_init();

    static struct proto_ops const ops = {
        .parse      = rtp_parse,
        .parser_new = uniq_parser_new,
        .parser_del = uniq_parser_del,
    };
    uniq_proto_ctor(&uniq_proto_rtp, &ops, "RTP");
}
Exemple #4
0
void rtp_init(void)
{
    log_category_proto_rtp_init();

    static struct proto_ops const ops = {
        .parse       = rtp_parse,
        .parser_new  = uniq_parser_new,
        .parser_del  = uniq_parser_del,
        .info_2_str  = rtp_info_2_str,
        .info_addr   = rtp_info_addr
    };
    uniq_proto_ctor(&uniq_proto_rtp, &ops, "RTP", PROTO_CODE_RTP);
}
Exemple #5
0
void cifs_init(void)
{
    log_category_proto_cifs_init();

    static struct proto_ops const ops = {
        .parse      = cifs_parse,
        .parser_new  = uniq_parser_new,
        .parser_del = uniq_parser_del,
        .info_2_str = cifs_info_2_str,
        .info_addr  = cifs_info_addr,
    };
    uniq_proto_ctor(&uniq_proto_cifs, &ops, "CIFS", PROTO_CODE_CIFS);
}
Exemple #6
0
void dns_tcp_init(void)
{
    static struct proto_ops const ops = {
        .parse      = dns_tcp_parse,
        .parser_new = uniq_parser_new,
        .parser_del = uniq_parser_del,
    };
    uniq_proto_ctor(&uniq_proto_dns_tcp, &ops, "DNS/TCP", PROTO_CODE_DNSoTCP);
    port_muxer_ctor(&dns_tcp_port_muxer, &tcp_port_muxers, DNS_PORT, DNS_PORT, proto_dns_tcp);
    port_muxer_ctor(&mdns_tcp_port_muxer, &tcp_port_muxers, MDNS_PORT, MDNS_PORT, proto_dns_tcp);
    port_muxer_ctor(&nbns_tcp_port_muxer, &tcp_port_muxers, NBNS_PORT, NBNS_PORT, proto_dns_tcp);
    port_muxer_ctor(&llmnr_tcp_port_muxer, &tcp_port_muxers, LLMNR_PORT, LLMNR_PORT, proto_dns_tcp);
}
Exemple #7
0
void icmp_init(void)
{
    log_category_proto_icmp_init();

    static struct proto_ops const ops = {
        .parse      = icmp_parse,
        .parser_new = uniq_parser_new,
        .parser_del = uniq_parser_del,
    };
    uniq_proto_ctor(&uniq_proto_icmp, &ops, "ICMP");
    ip_subproto_ctor(&icmp_ip_subproto, IPPROTO_ICMP, proto_icmp);
    ip6_subproto_ctor(&icmp_ip6_subproto, IPPROTO_ICMP, proto_icmp);
}
Exemple #8
0
void dhcp_init(void)
{
    log_category_proto_dhcp_init();

    static struct proto_ops const ops = {
        .parse       = dhcp_parse,
        .parser_new  = uniq_parser_new,
        .parser_del  = uniq_parser_del,
        .info_2_str  = dhcp_info_2_str,
        .info_addr   = dhcp_info_addr
    };
    uniq_proto_ctor(&uniq_proto_dhcp, &ops, "DHCP", PROTO_CODE_DHCP);
    port_muxer_ctor(&dhcp_port_muxer, &udp_port_muxers, BOOTPS_PORT, BOOTPS_PORT, proto_dhcp);
}
Exemple #9
0
void fcoe_init(void)
{
    log_category_proto_fcoe_init();

    static struct proto_ops const ops = {
        .parse       = fcoe_parse,
        .parser_new  = uniq_parser_new,
        .parser_del  = uniq_parser_del,
        .info_2_str  = fcoe_info_2_str,
        .info_addr   = fcoe_info_addr
    };
    uniq_proto_ctor(&uniq_proto_fcoe, &ops, "FCoE", PROTO_CODE_FCOE);
    eth_subproto_ctor(&fcoe_eth_subproto, ETH_PROTO_FCOE, proto_fcoe);
}
Exemple #10
0
void icmpv6_init(void)
{
    log_category_proto_icmpv6_init();

    static struct proto_ops const ops = {
        .parse       = icmpv6_parse,
        .parser_new  = uniq_parser_new,
        .parser_del  = uniq_parser_del,
        .info_2_str  = icmpv6_info_2_str,
        .info_addr   = icmpv6_info_addr
    };
    uniq_proto_ctor(&uniq_proto_icmpv6, &ops, "ICMPv6", PROTO_CODE_ICMP /* since we share the same info struct */);
    ip6_subproto_ctor(&icmpv6_ip6_subproto, IPPROTO_ICMPV6, proto_icmpv6);
}
Exemple #11
0
void rpc_init(void)
{
    log_category_proto_rpc_init();
    static struct proto_ops const ops = {
        .parse      = rpc_parse,
        .parser_new = uniq_parser_new,
        .parser_del = uniq_parser_del,
        .info_2_str = rpc_info_2_str,
        .info_addr  = rpc_info_addr,
    };
    uniq_proto_ctor(&uniq_proto_rpc, &ops, "RPC", PROTO_CODE_RPC);
    port_muxer_ctor(&nfs_tcp_port_muxer, &tcp_port_muxers, 2049, 2049, proto_rpc);
    port_muxer_ctor(&nfs_udp_port_muxer, &udp_port_muxers, 2049, 2049, proto_rpc);
    port_muxer_ctor(&sun_rpc_tcp_port_muxer, &tcp_port_muxers, 111, 111, proto_rpc);
    port_muxer_ctor(&sun_rpc_udp_port_muxer, &udp_port_muxers, 111, 111, proto_rpc);
}