Lines Matching refs:family
473 static inline int ping_supported(int family, int type, int code)
475 return (family == AF_INET && type == ICMP_ECHO && code == 0) ||
476 (family == AF_INET6 && type == ICMPV6_ECHO_REQUEST && code == 0);
486 int family;
497 family = AF_INET;
502 family = AF_INET6;
512 if (!ping_supported(family, icmph->type, icmph->code))
578 if ((family == AF_INET && !inet_sock->recverr) ||
579 (family == AF_INET6 && !inet6_sk(sk)->recverr)) {
583 if (family == AF_INET) {
587 } else if (family == AF_INET6) {
631 if (pfh->family == AF_INET6) {
655 int ping_common_sendmsg(int family, struct msghdr *msg, size_t len,
677 if (family == AF_INET) {
681 } else if (family == AF_INET6) {
689 if (!ping_supported(family, type, code))
826 pfh.family = AF_INET;
858 int family = sk->sk_family;
889 if (family == AF_INET) {
904 } else if (family == AF_INET6) {
1030 sk->sk_family == state->family)
1063 void *ping_seq_start(struct seq_file *seq, loff_t *pos, sa_family_t family)
1067 state->family = family;
1161 .family = AF_INET,