internal static StaticRouteOption Read(System.IO.Stream stream) { IPAddress[] addresses = IPRangeOption.Read(stream); IPAddress[] destinations = new IPAddress[addresses.Length / 2]; IPAddress[] routers = new IPAddress[addresses.Length / 2]; for (int i = 0; i < addresses.Length; i++) { if (i % 2 == 0) { destinations[i / 2] = addresses[i]; } else { routers[(i - 1) / 2] = addresses[i]; } } return(new StaticRouteOption(destinations, routers)); }
internal static RouterOption Read(System.IO.Stream stream) { return(new RouterOption(IPRangeOption.Read(stream))); }
internal static NetbiosOverTcpIpNameServerOption Read(System.IO.Stream stream) { return(new NetbiosOverTcpIpNameServerOption(IPRangeOption.Read(stream))); }
internal static ImpressServerOption Read(System.IO.Stream stream) { return(new ImpressServerOption(IPRangeOption.Read(stream))); }
internal static XWindowSystemFontServerOption Read(System.IO.Stream stream) { return(new XWindowSystemFontServerOption(IPRangeOption.Read(stream))); }
internal static NetworkTimeProtocolServersOption Read(System.IO.Stream stream) { return(new NetworkTimeProtocolServersOption(IPRangeOption.Read(stream))); }
internal static CookieServerOption Read(System.IO.Stream stream) { return(new CookieServerOption(IPRangeOption.Read(stream))); }
internal static NetworkInformationServersOption Read(System.IO.Stream stream) { return(new NetworkInformationServersOption(IPRangeOption.Read(stream))); }
internal static NetbiosOverTcpIpDatagramDistributionServerOption Read(System.IO.Stream stream) { return(new NetbiosOverTcpIpDatagramDistributionServerOption(IPRangeOption.Read(stream))); }
internal static ResourceLocationServerOption Read(System.IO.Stream stream) { return(new ResourceLocationServerOption(IPRangeOption.Read(stream))); }
internal static DomainNameServerOption Read(System.IO.Stream stream) { return(new DomainNameServerOption(IPRangeOption.Read(stream))); }
internal static PolicyFilterOption Read(System.IO.Stream stream) { return(new PolicyFilterOption(IPRangeOption.Read(stream))); }
internal static XWindowSystemDisplayManagerOption Read(System.IO.Stream stream) { return(new XWindowSystemDisplayManagerOption(IPRangeOption.Read(stream))); }