MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / addressLength

Method addressLength

src/main/java/core/org/xbill/DNS/Address.java:383–390  ·  view source on GitHub ↗

Returns the length of an address in a particular family. @param family The address family, either IPv4 or IPv6. @return The length of addresses in that family.

(int family)

Source from the content-addressed store, hash-verified

381 * @return The length of addresses in that family.
382 */
383public static int
384addressLength(int family) {
385 if (family == IPv4)
386 return 4;
387 if (family == IPv6)
388 return 16;
389 throw new IllegalArgumentException("unknown address family");
390}
391
392/**
393 * Truncates an address to the specified number of bits. For example,

Callers 4

rrFromWireMethod · 0.95
checkMaskLengthMethod · 0.95
optionFromWireMethod · 0.95
truncateMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected