Home / Function/ Ip6SubnetFilterRule() — netty Function Reference

Ip6SubnetFilterRule() — netty Function Reference

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

Function java Buffer Allocators calls 1 called by 1

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

handler/src/main/java/io/netty/handler/ipfilter/IpSubnetFilterRule.java lines 218–227

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

            subnetMask = prefixToSubnetMask(cidrPrefix);
            networkAddress = ipToInt(ipAddress).and(subnetMask);
            this.ruleType = ruleType;
        }

Domain

Subdomains

Called By

Frequently Asked Questions

What does Ip6SubnetFilterRule() do?
Ip6SubnetFilterRule() is a function in the netty codebase, defined in handler/src/main/java/io/netty/handler/ipfilter/IpSubnetFilterRule.java.
Where is Ip6SubnetFilterRule() defined?
Ip6SubnetFilterRule() is defined in handler/src/main/java/io/netty/handler/ipfilter/IpSubnetFilterRule.java at line 218.
What does Ip6SubnetFilterRule() call?
Ip6SubnetFilterRule() calls 1 function(s): prefixToSubnetMask.
What calls Ip6SubnetFilterRule()?
Ip6SubnetFilterRule() 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