Home / Function/ Ip4SubnetFilterRule() — netty Function Reference

Ip4SubnetFilterRule() — netty Function Reference

Architecture documentation for the Ip4SubnetFilterRule() function in IpSubnetFilterRule.java from the netty codebase.

Function java Buffer Allocators calls 1 called by 1

Entity Profile

Dependency Diagram

graph TD
  c4185464_2099_2a9e_b108_9e389b3838a1["Ip4SubnetFilterRule()"]
  dff893ee_a16f_1b3d_a2b1_b004425749de["Ip4SubnetFilterRule"]
  c4185464_2099_2a9e_b108_9e389b3838a1 -->|defined in| dff893ee_a16f_1b3d_a2b1_b004425749de
  021189c4_31cf_f5ee_f75f_612646c6334d["IpFilterRule()"]
  021189c4_31cf_f5ee_f75f_612646c6334d -->|calls| c4185464_2099_2a9e_b108_9e389b3838a1
  6ba924f7_e4be_2e1b_ecde_3c4b4a42862d["prefixToSubnetMask()"]
  c4185464_2099_2a9e_b108_9e389b3838a1 -->|calls| 6ba924f7_e4be_2e1b_ecde_3c4b4a42862d
  style c4185464_2099_2a9e_b108_9e389b3838a1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ipfilter/IpSubnetFilterRule.java lines 169–178

        private Ip4SubnetFilterRule(Inet4Address ipAddress, int cidrPrefix, IpFilterRuleType ruleType) {
            if (cidrPrefix < 0 || cidrPrefix > 32) {
                throw new IllegalArgumentException(String.format("IPv4 requires the subnet prefix to be in range of "
                        + "[0,32]. The prefix was: %d", cidrPrefix));
            }

            subnetMask = prefixToSubnetMask(cidrPrefix);
            networkAddress = NetUtil.ipv4AddressToInt(ipAddress) & subnetMask;
            this.ruleType = ruleType;
        }

Domain

Subdomains

Called By

Frequently Asked Questions

What does Ip4SubnetFilterRule() do?
Ip4SubnetFilterRule() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/ipfilter/IpSubnetFilterRule.java.
Where is Ip4SubnetFilterRule() defined?
Ip4SubnetFilterRule() is defined in handler/src/main/java/io/netty/handler/ipfilter/IpSubnetFilterRule.java at line 169.
What does Ip4SubnetFilterRule() call?
Ip4SubnetFilterRule() calls 1 function(s): prefixToSubnetMask.
What calls Ip4SubnetFilterRule()?
Ip4SubnetFilterRule() is called by 1 function(s): IpFilterRule.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free