Example #1
0
void
ip_vs_tcpudp_debug_packet(int af, struct ip_vs_protocol *pp,
                          const struct sk_buff *skb,
                          int offset,
                          const char *msg)
{
#ifdef CONFIG_IP_VS_IPV6
    if (af == AF_INET6)
        ip_vs_tcpudp_debug_packet_v6(pp, skb, offset, msg);
    else
#endif
        ip_vs_tcpudp_debug_packet_v4(pp, skb, offset, msg);
}
Example #2
0
void
ip_vs_tcpudp_debug_packet(struct ip_vs_protocol *pp,
			  const struct sk_buff *skb,
			  int offset,
			  const char *msg)
{
#ifdef CONFIG_IP_VS_IPV6
	if (skb->protocol == htons(ETH_P_IPV6))
		ip_vs_tcpudp_debug_packet_v6(pp, skb, offset, msg);
	else
#endif
		ip_vs_tcpudp_debug_packet_v4(pp, skb, offset, msg);
}