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); }
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"); }
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"); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }
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); }