You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by er...@apache.org on 2005/01/09 08:55:12 UTC

svn commit: r124720 - /incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/io/DhcpOptionsDecoder.java

Author: erodriguez
Date: Sat Jan  8 23:55:11 2005
New Revision: 124720

URL: http://svn.apache.org/viewcvs?view=rev&rev=124720
Log:
Minor updates to options decoder.
Modified:
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/io/DhcpOptionsDecoder.java

Modified: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/io/DhcpOptionsDecoder.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/io/DhcpOptionsDecoder.java?view=diff&rev=124720&p1=incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/io/DhcpOptionsDecoder.java&r1=124719&p2=incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/io/DhcpOptionsDecoder.java&r2=124720
==============================================================================
--- incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/io/DhcpOptionsDecoder.java	(original)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/io/DhcpOptionsDecoder.java	Sat Jan  8 23:55:11 2005
@@ -29,7 +29,7 @@
 import org.apache.dhcp.options.dhcp.RequestedIpAddress;
 import org.apache.dhcp.options.dhcp.ServerIdentifier;
 import org.apache.dhcp.options.vendor.DomainName;
-import org.apache.dhcp.options.vendor.DomainNameServer;
+import org.apache.dhcp.options.vendor.DomainNameServers;
 import org.apache.dhcp.options.vendor.EndOption;
 import org.apache.dhcp.options.vendor.PadOption;
 import org.apache.dhcp.options.vendor.SubnetMask;
@@ -57,7 +57,7 @@
 		
 		OptionsField options = new OptionsField();
 
-		while ( message.get( message.position() ) != (byte) 255)
+		while ( message.get( message.position() ) != (byte) 255 )
 		{
 			code = message.get();
 			length = message.get();
@@ -84,7 +84,7 @@
 			case 3:
 				return new TimeOffset( value );
 			case 6:
-				return new DomainNameServer( value );
+				return new DomainNameServers( value );
 			case 15:
 				return new DomainName( value );
 			case 50: