Lines Matching refs:cfg_family
97 static int cfg_family = PF_INET6; variable
174 alen = cfg_family == PF_INET6 ? 32 : 8; in checksum()
323 if (cfg_family == PF_INET) in build_packet()
349 fd = socket(cfg_family, ipproto, protocol); in open_inet()
353 if (cfg_family == PF_INET6) { in open_inet()
422 if (cfg_family == PF_INET6) { in send_packet()
471 fd = socket(cfg_family, SOCK_DGRAM, 0); in recv_prepare_udp()
479 if (cfg_family == PF_INET6) { in recv_prepare_udp()
519 if (cfg_family == AF_INET) in recv_prepare_packet_filter()
533 if (cfg_family == PF_INET) in recv_prepare_packet_bind()
740 if (cfg_family == PF_INET6) in recv_packet()
777 cfg_family = PF_INET; in parse_args()
780 cfg_family = PF_INET6; in parse_args()
868 if (cfg_family == PF_INET6) { in parse_args()
872 if (inet_pton(cfg_family, daddr, &cfg_daddr6.sin6_addr) != 1) in parse_args()
874 if (inet_pton(cfg_family, saddr, &cfg_saddr6.sin6_addr) != 1) in parse_args()
880 if (inet_pton(cfg_family, daddr, &cfg_daddr4.sin_addr) != 1) in parse_args()
882 if (inet_pton(cfg_family, saddr, &cfg_saddr4.sin_addr) != 1) in parse_args()