directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r124720 - /incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/io/DhcpOptionsDecoder.java
Date Sun, 09 Jan 2005 07:55:12 GMT
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:

Mime
View raw message