Lines Matching refs:af

854                 int af,  in fw_nftables_add_masquerade_internal()  argument
865 if (af == AF_INET6 && source_prefixlen < 8) in fw_nftables_add_masquerade_internal()
873 …r = sd_nfnl_nft_message_new_setelems_begin(ctx->nfnl, &transaction[tsize], af, NFT_SYSTEMD_TABLE_N… in fw_nftables_add_masquerade_internal()
875 …r = sd_nfnl_nft_message_del_setelems_begin(ctx->nfnl, &transaction[tsize], af, NFT_SYSTEMD_TABLE_N… in fw_nftables_add_masquerade_internal()
879 if (af == AF_INET) in fw_nftables_add_masquerade_internal()
904 int af, in fw_nftables_add_masquerade() argument
910 if (!socket_ipv6_is_supported() && af == AF_INET6) in fw_nftables_add_masquerade()
913 r = fw_nftables_add_masquerade_internal(ctx, add, af, source, source_prefixlen); in fw_nftables_add_masquerade()
934 r = fw_nftables_init_family(ctx->nfnl, af); in fw_nftables_add_masquerade()
938 return fw_nftables_add_masquerade_internal(ctx, add, af, source, source_prefixlen); in fw_nftables_add_masquerade()
946 int af, in fw_nftables_add_local_dnat_internal() argument
961 if (!ipv6_supported && af == AF_INET6) in fw_nftables_add_local_dnat_internal()
979 if (af == AF_INET) { in fw_nftables_add_local_dnat_internal()
983 assert(af == AF_INET6); in fw_nftables_add_local_dnat_internal()
994 if (add && previous_remote && !in_addr_equal(af, previous_remote, remote)) { in fw_nftables_add_local_dnat_internal()
995 if (af == AF_INET) in fw_nftables_add_local_dnat_internal()
1000 …r = nft_del_element(ctx->nfnl, &transaction[tsize], af, NFT_SYSTEMD_DNAT_MAP_NAME, key, sizeof(key… in fw_nftables_add_local_dnat_internal()
1007 if (af == AF_INET) in fw_nftables_add_local_dnat_internal()
1014 …r = nft_add_element(ctx->nfnl, &transaction[tsize], af, NFT_SYSTEMD_DNAT_MAP_NAME, key, sizeof(key… in fw_nftables_add_local_dnat_internal()
1016 …r = nft_del_element(ctx->nfnl, &transaction[tsize], af, NFT_SYSTEMD_DNAT_MAP_NAME, key, sizeof(key… in fw_nftables_add_local_dnat_internal()
1031 if (r == -EOVERFLOW && af == AF_INET6) { in fw_nftables_add_local_dnat_internal()
1050 int af, in fw_nftables_add_local_dnat() argument
1059 if (!socket_ipv6_is_supported() && af == AF_INET6) in fw_nftables_add_local_dnat()
1062 …r = fw_nftables_add_local_dnat_internal(ctx, add, af, protocol, local_port, remote, remote_port, p… in fw_nftables_add_local_dnat()
1067 r = fw_nftables_init_family(ctx->nfnl, af); in fw_nftables_add_local_dnat()
1072 …return fw_nftables_add_local_dnat_internal(ctx, add, af, protocol, local_port, remote, remote_port… in fw_nftables_add_local_dnat()