The code handles both IPv4 and IPv6, but those functions are used only in IPv4-only code paths, where it does not limit anything.