package ru.kirillius.pf.sdn.api.Networking;

import ru.kirillius.pf.sdn.api.dto.IPQueryInfo;

import java.net.Inet4Address;
import java.util.List;

/**
 * Abstraction for retrieving prefixes announced by a specific autonomous system.
 */
public interface AutonomousSystemResolverApi {
    /**
     * Returns IPv4 subnets originated by the provided autonomous system number.
     */
    List<IPv4Subnet> getPrefixes(int as);

    IPQueryInfo queryAddress(Inet4Address address);

}
