public class InetRadix extends Object
Only supports IPv4.
See also http://www.cs.columbia.edu/~ji/F02/ir04/routing.pdf
Modifier and Type | Method and Description |
---|---|
void |
add(String cidr)
Add IPv4 CIDR subnet to tree
|
boolean |
contains(String ip)
Determine if tree contains a subnet that would contain IP
|
public boolean contains(String ip)
ip
- IP addresspublic void add(String cidr)
cidr
- CIDR subnet specificationCopyright © 2022. All rights reserved.