Home
last modified time | relevance | path

Searched refs:source_prefixlen (Results 1 – 5 of 5) sorted by relevance

/systemd-251/src/shared/
Dfirewall-util-iptables.c37 unsigned source_prefixlen, in entry_fill_basics() argument
63 in4_addr_prefixlen_to_netmask(&entry->ip.smsk, source_prefixlen); in entry_fill_basics()
86 unsigned source_prefixlen) { in fw_iptables_add_masquerade() argument
102 if (!source || source_prefixlen == 0) in fw_iptables_add_masquerade()
117 …r = entry_fill_basics(entry, protocol, NULL, source, source_prefixlen, out_interface, destination,… in fw_iptables_add_masquerade()
177 unsigned source_prefixlen = 0; in fw_iptables_add_local_dnat() local
222 …r = entry_fill_basics(entry, protocol, in_interface, source, source_prefixlen, NULL, destination, … in fw_iptables_add_local_dnat()
Dfirewall-util.c75 unsigned source_prefixlen) { in fw_add_masquerade() argument
90 return fw_iptables_add_masquerade(add, af, source, source_prefixlen); in fw_add_masquerade()
93 return fw_nftables_add_masquerade(*ctx, add, af, source, source_prefixlen); in fw_add_masquerade()
Dfirewall-util-private.h36 unsigned source_prefixlen);
55 unsigned source_prefixlen);
Dfirewall-util-nft.c856 unsigned int source_prefixlen) { in fw_nftables_add_masquerade_internal() argument
862 if (!source || source_prefixlen == 0) in fw_nftables_add_masquerade_internal()
865 if (af == AF_INET6 && source_prefixlen < 8) in fw_nftables_add_masquerade_internal()
880 r = nft_message_add_setelem_iprange(transaction[tsize], source, source_prefixlen); in fw_nftables_add_masquerade_internal()
882 r = nft_message_add_setelem_ip6range(transaction[tsize], source, source_prefixlen); in fw_nftables_add_masquerade_internal()
906 unsigned int source_prefixlen) { in fw_nftables_add_masquerade() argument
913 r = fw_nftables_add_masquerade_internal(ctx, add, af, source, source_prefixlen); in fw_nftables_add_masquerade()
938 return fw_nftables_add_masquerade_internal(ctx, add, af, source, source_prefixlen); in fw_nftables_add_masquerade()
Dfirewall-util.h21 unsigned source_prefixlen);