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:32:47 UTC

svn commit: r124715 - incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor

Author: erodriguez
Date: Sat Jan  8 23:32:46 2005
New Revision: 124715

URL: http://svn.apache.org/viewcvs?view=rev&rev=124715
Log:
RFC 1497 vendor extensions.
Added:
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/BootFileSize.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/CookieServers.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/DomainName.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/DomainNameServers.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/EndOption.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/ExtensionsPath.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/HostName.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/ImpressServers.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/LogServers.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/LprServers.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/MeritDumpFile.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/NameServers.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/PadOption.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/ResourceLocationServers.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/RootPath.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/Routers.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/SubnetMask.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/SwapServer.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/TimeOffset.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/TimeServers.java

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/BootFileSize.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/BootFileSize.java?view=auto&rev=124715
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/BootFileSize.java	Sat Jan  8 23:32:46 2005
@@ -0,0 +1,46 @@
+/*
+ *   Copyright 2005 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+
+/**
+ * This option specifies the length in 512-octet blocks of the default
+ * boot image for the client.  The file length is specified as an
+ * unsigned 16-bit integer.
+ * 
+ * The code for this option is 13, and its length is 2.
+ */
+package org.apache.dhcp.options.vendor;
+
+import java.nio.ByteBuffer;
+
+import org.apache.dhcp.options.DhcpOption;
+
+public class BootFileSize extends DhcpOption
+{
+	private byte[] bootFileSize;
+	
+	public BootFileSize( byte[] bootFileSize )
+	{
+		super( 13, 2 );
+		this.bootFileSize = bootFileSize;
+	}
+	
+	protected void valueToByteBuffer( ByteBuffer out )
+	{
+		out.put( bootFileSize );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/CookieServers.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/CookieServers.java?view=auto&rev=124715
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/CookieServers.java	Sat Jan  8 23:32:46 2005
@@ -0,0 +1,37 @@
+/*
+ *   Copyright 2005 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+
+/**
+ * The cookie server option specifies a list of RFC 865 cookie
+ * servers available to the client.  Servers SHOULD be listed in order
+ * of preference.
+ * 
+ * The code for the log server option is 8.  The minimum length for this
+ * option is 4 octets, and the length MUST always be a multiple of 4.
+ */
+package org.apache.dhcp.options.vendor;
+
+import org.apache.dhcp.options.AddressListOption;
+
+public class CookieServers extends AddressListOption
+{
+	public CookieServers( byte[] cookieServers )
+	{
+		super( 8, cookieServers );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/DomainName.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/DomainName.java?view=auto&rev=124715
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/DomainName.java	Sat Jan  8 23:32:46 2005
@@ -0,0 +1,45 @@
+/*
+ *   Copyright 2005 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+
+/**
+ * This option specifies the domain name that client should use when
+ * resolving hostnames via the Domain Name System.
+ * 
+ * The code for this option is 15.  Its minimum length is 1.
+ */
+package org.apache.dhcp.options.vendor;
+
+import java.nio.ByteBuffer;
+
+import org.apache.dhcp.options.DhcpOption;
+
+public class DomainName extends DhcpOption
+{
+	private byte[] domainName;
+	
+	public DomainName( byte[] domainName )
+	{
+		super( 15, 1 );
+		this.domainName = domainName;
+	}
+	
+	protected void valueToByteBuffer( ByteBuffer out )
+	{
+		out.put( domainName );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/DomainNameServers.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/DomainNameServers.java?view=auto&rev=124715
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/DomainNameServers.java	Sat Jan  8 23:32:46 2005
@@ -0,0 +1,38 @@
+/*
+ *   Copyright 2005 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+
+/**
+ * The domain name server option specifies a list of Domain Name System
+ * (STD 13, RFC 1035 [8]) name servers available to the client.  Servers
+ * SHOULD be listed in order of preference.
+ * 
+ * The code for the domain name server option is 6.  The minimum length
+ * for this option is 4 octets, and the length MUST always be a multiple
+ * of 4.
+ */
+package org.apache.dhcp.options.vendor;
+
+import org.apache.dhcp.options.AddressListOption;
+
+public class DomainNameServers extends AddressListOption
+{
+	public DomainNameServers( byte[] domainNameServers )
+	{
+		super( 6, domainNameServers );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/EndOption.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/EndOption.java?view=auto&rev=124715
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/EndOption.java	Sat Jan  8 23:32:46 2005
@@ -0,0 +1,44 @@
+/*
+ *   Copyright 2005 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+
+/**
+ * The end option marks the end of valid information in the vendor
+ * field.  Subsequent octets should be filled with pad options.
+ * 
+ * The code for the end option is 255, and its length is 1 octet.
+ */
+package org.apache.dhcp.options.vendor;
+
+import java.nio.ByteBuffer;
+
+import org.apache.dhcp.options.DhcpOption;
+
+public class EndOption extends DhcpOption
+{
+	public EndOption()
+	{
+		super( 255, 1 );
+	}
+	
+	protected void valueToByteBuffer( ByteBuffer out )
+	{
+		/**
+		 * This option has no value
+		 */
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/ExtensionsPath.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/ExtensionsPath.java?view=auto&rev=124715
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/ExtensionsPath.java	Sat Jan  8 23:32:46 2005
@@ -0,0 +1,52 @@
+/*
+ *   Copyright 2005 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+
+/**
+ * A string to specify a file, retrievable via TFTP, which contains
+ * information which can be interpreted in the same way as the 64-octet
+ * vendor-extension field within the BOOTP response, with the following
+ * exceptions:
+ * 
+ *        - the length of the file is unconstrained;
+ *        - all references to Tag 18 (i.e., instances of the
+ *          BOOTP Extensions Path field) within the file are
+ *          ignored.
+ * 
+ * The code for this option is 18.  Its minimum length is 1.
+ */
+package org.apache.dhcp.options.vendor;
+
+import java.nio.ByteBuffer;
+
+import org.apache.dhcp.options.DhcpOption;
+
+public class ExtensionsPath extends DhcpOption
+{
+	private byte[] extensionsPath;
+	
+	public ExtensionsPath( byte[] extensionsPath )
+	{
+		super( 18, 1 );
+		this.extensionsPath = extensionsPath;
+	}
+	
+	protected void valueToByteBuffer( ByteBuffer out )
+	{
+		out.put( extensionsPath );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/HostName.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/HostName.java?view=auto&rev=124715
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/HostName.java	Sat Jan  8 23:32:46 2005
@@ -0,0 +1,47 @@
+/*
+ *   Copyright 2005 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+
+/**
+ * This option specifies the name of the client.  The name may or may
+ * not be qualified with the local domain name (see section 3.17 for the
+ * preferred way to retrieve the domain name).  See RFC 1035 for
+ * character set restrictions.
+ * 
+ * The code for this option is 12, and its minimum length is 1.
+ */
+package org.apache.dhcp.options.vendor;
+
+import java.nio.ByteBuffer;
+
+import org.apache.dhcp.options.DhcpOption;
+
+public class HostName extends DhcpOption
+{
+	private byte[] hostName;
+	
+	public HostName( byte[] hostName )
+	{
+		super( 12, 1 );
+		this.hostName = hostName;
+	}
+	
+	protected void valueToByteBuffer( ByteBuffer out )
+	{
+		out.put( hostName );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/ImpressServers.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/ImpressServers.java?view=auto&rev=124715
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/ImpressServers.java	Sat Jan  8 23:32:46 2005
@@ -0,0 +1,38 @@
+/*
+ *   Copyright 2005 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+
+/**
+ * The Impress server option specifies a list of Imagen Impress servers
+ * available to the client.  Servers SHOULD be listed in order of
+ * preference.
+ * 
+ * The code for the Impress server option is 10.  The minimum length for
+ * this option is 4 octets, and the length MUST always be a multiple of
+ * 4.
+ */
+package org.apache.dhcp.options.vendor;
+
+import org.apache.dhcp.options.AddressListOption;
+
+public class ImpressServers extends AddressListOption
+{
+	public ImpressServers( byte[] impressServers )
+	{
+		super( 10, impressServers );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/LogServers.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/LogServers.java?view=auto&rev=124715
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/LogServers.java	Sat Jan  8 23:32:46 2005
@@ -0,0 +1,37 @@
+/*
+ *   Copyright 2005 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+
+/**
+ * The log server option specifies a list of MIT-LCS UDP log servers
+ * available to the client.  Servers SHOULD be listed in order of
+ * preference.
+ * 
+ * The code for the log server option is 7.  The minimum length for this
+ * option is 4 octets, and the length MUST always be a multiple of 4.
+ */
+package org.apache.dhcp.options.vendor;
+
+import org.apache.dhcp.options.AddressListOption;
+
+public class LogServers extends AddressListOption
+{
+	public LogServers( byte[] logServers )
+	{
+		super( 7, logServers );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/LprServers.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/LprServers.java?view=auto&rev=124715
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/LprServers.java	Sat Jan  8 23:32:46 2005
@@ -0,0 +1,37 @@
+/*
+ *   Copyright 2005 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+
+/**
+ * The LPR server option specifies a list of RFC 1179 line printer
+ * servers available to the client.  Servers SHOULD be listed in order
+ * of preference.
+ * 
+ * The code for the LPR server option is 9.  The minimum length for this
+ * option is 4 octets, and the length MUST always be a multiple of 4.
+ */
+package org.apache.dhcp.options.vendor;
+
+import org.apache.dhcp.options.AddressListOption;
+
+public class LprServers extends AddressListOption
+{
+	public LprServers( byte[] lprServers )
+	{
+		super( 9, lprServers );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/MeritDumpFile.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/MeritDumpFile.java?view=auto&rev=124715
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/MeritDumpFile.java	Sat Jan  8 23:32:46 2005
@@ -0,0 +1,47 @@
+/*
+ *   Copyright 2005 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+
+/**
+ * This option specifies the path-name of a file to which the client's
+ * core image should be dumped in the event the client crashes.  The
+ * path is formatted as a character string consisting of characters from
+ * the NVT ASCII character set.
+ * 
+ * The code for this option is 14.  Its minimum length is 1.
+ */
+package org.apache.dhcp.options.vendor;
+
+import java.nio.ByteBuffer;
+
+import org.apache.dhcp.options.DhcpOption;
+
+public class MeritDumpFile extends DhcpOption
+{
+	private byte[] meritDumpFile;
+	
+	public MeritDumpFile( byte[] meritDumpFile )
+	{
+		super( 14, 1 );
+		this.meritDumpFile = meritDumpFile;
+	}
+	
+	protected void valueToByteBuffer( ByteBuffer out )
+	{
+		out.put( meritDumpFile );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/NameServers.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/NameServers.java?view=auto&rev=124715
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/NameServers.java	Sat Jan  8 23:32:46 2005
@@ -0,0 +1,38 @@
+/*
+ *   Copyright 2005 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+
+/**
+ * The name server option specifies a list of IEN 116 name servers
+ * available to the client.  Servers SHOULD be listed in order of
+ * preference.
+ * 
+ * The code for the name server option is 5.  The minimum length for
+ * this option is 4 octets, and the length MUST always be a multiple of
+ * 4.
+ */
+package org.apache.dhcp.options.vendor;
+
+import org.apache.dhcp.options.AddressListOption;
+
+public class NameServers extends AddressListOption
+{
+	public NameServers( byte[] nameServers )
+	{
+		super( 5, nameServers );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/PadOption.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/PadOption.java?view=auto&rev=124715
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/PadOption.java	Sat Jan  8 23:32:46 2005
@@ -0,0 +1,44 @@
+/*
+ *   Copyright 2005 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+
+package org.apache.dhcp.options.vendor;
+
+import java.nio.ByteBuffer;
+
+import org.apache.dhcp.options.DhcpOption;
+
+/**
+ * The pad option can be used to cause subsequent fields to align on
+ * word boundaries.
+ * 
+ * The code for the pad option is 0, and its length is 1 octet.
+ */
+public class PadOption extends DhcpOption
+{
+	public PadOption()
+	{
+		super( 0, 1 );
+	}
+	
+	protected void valueToByteBuffer( ByteBuffer out )
+	{
+		/**
+		 * This option has no value
+		 */
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/ResourceLocationServers.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/ResourceLocationServers.java?view=auto&rev=124715
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/ResourceLocationServers.java	Sat Jan  8 23:32:46 2005
@@ -0,0 +1,37 @@
+/*
+ *   Copyright 2005 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+
+/**
+ * This option specifies a list of RFC 887 Resource Location
+ * servers available to the client.  Servers SHOULD be listed in order
+ * of preference.
+ * 
+ * The code for this option is 11.  The minimum length for this option
+ * is 4 octets, and the length MUST always be a multiple of 4.
+ */
+package org.apache.dhcp.options.vendor;
+
+import org.apache.dhcp.options.AddressListOption;
+
+public class ResourceLocationServers extends AddressListOption
+{
+	public ResourceLocationServers( byte[] resourceLocationServers )
+	{
+		super( 11, resourceLocationServers );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/RootPath.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/RootPath.java?view=auto&rev=124715
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/RootPath.java	Sat Jan  8 23:32:46 2005
@@ -0,0 +1,46 @@
+/*
+ *   Copyright 2005 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+
+/**
+ * This option specifies the path-name that contains the client's root
+ * disk.  The path is formatted as a character string consisting of
+ * characters from the NVT ASCII character set.
+ * 
+ * The code for this option is 17.  Its minimum length is 1.
+ */
+package org.apache.dhcp.options.vendor;
+
+import java.nio.ByteBuffer;
+
+import org.apache.dhcp.options.DhcpOption;
+
+public class RootPath extends DhcpOption
+{
+	private byte[] rootPath;
+	
+	public RootPath( byte[] rootPath )
+	{
+		super( 17, 1 );
+		this.rootPath = rootPath;
+	}
+	
+	protected void valueToByteBuffer( ByteBuffer out )
+	{
+		out.put( rootPath );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/Routers.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/Routers.java?view=auto&rev=124715
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/Routers.java	Sat Jan  8 23:32:46 2005
@@ -0,0 +1,37 @@
+/*
+ *   Copyright 2005 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+
+/**
+ * The router option specifies a list of IP addresses for routers on the
+ * client's subnet.  Routers SHOULD be listed in order of preference.
+ * 
+ * The code for the router option is 3.  The minimum length for the
+ * router option is 4 octets, and the length MUST always be a multiple
+ * of 4.
+ */
+package org.apache.dhcp.options.vendor;
+
+import org.apache.dhcp.options.AddressListOption;
+
+public class Routers extends AddressListOption
+{
+	public Routers( byte[] routers )
+	{
+		super( 3, routers );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/SubnetMask.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/SubnetMask.java?view=auto&rev=124715
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/SubnetMask.java	Sat Jan  8 23:32:46 2005
@@ -0,0 +1,38 @@
+/*
+ *   Copyright 2005 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+
+/**
+ * The subnet mask option specifies the client's subnet mask as per RFC
+ * 950.
+ * 
+ * If both the subnet mask and the router option are specified in a DHCP
+ * reply, the subnet mask option MUST be first.
+ * 
+ * The code for the subnet mask option is 1, and its length is 4 octets.
+ */
+package org.apache.dhcp.options.vendor;
+
+import org.apache.dhcp.options.AddressOption;
+
+public class SubnetMask extends AddressOption
+{
+	public SubnetMask( byte[] subnetMask )
+	{
+		super( 1, subnetMask );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/SwapServer.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/SwapServer.java?view=auto&rev=124715
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/SwapServer.java	Sat Jan  8 23:32:46 2005
@@ -0,0 +1,34 @@
+/*
+ *   Copyright 2005 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+
+/**
+ * This specifies the IP address of the client's swap server.
+ * 
+ * The code for this option is 16 and its length is 4.
+ */
+package org.apache.dhcp.options.vendor;
+
+import org.apache.dhcp.options.AddressOption;
+
+public class SwapServer extends AddressOption
+{
+	public SwapServer( byte[] swapServer )
+	{
+		super( 16, swapServer );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/TimeOffset.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/TimeOffset.java?view=auto&rev=124715
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/TimeOffset.java	Sat Jan  8 23:32:46 2005
@@ -0,0 +1,48 @@
+/*
+ *   Copyright 2005 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+
+/**
+ * The time offset field specifies the offset of the client's subnet in
+ * seconds from Coordinated Universal Time (UTC).  The offset is
+ * expressed as a two's complement 32-bit integer.  A positive offset
+ * indicates a location east of the zero meridian and a negative offset
+ * indicates a location west of the zero meridian.
+ * 
+ * The code for the time offset option is 2, and its length is 4 octets.
+ */
+package org.apache.dhcp.options.vendor;
+
+import java.nio.ByteBuffer;
+
+import org.apache.dhcp.options.DhcpOption;
+
+public class TimeOffset extends DhcpOption
+{
+	private byte[] timeOffset;
+	
+	public TimeOffset( byte[] timeOffset )
+	{
+		super( 2, 4 );
+		this.timeOffset = timeOffset;
+	}
+	
+	protected void valueToByteBuffer( ByteBuffer out )
+	{
+		out.put( timeOffset );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/TimeServers.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/TimeServers.java?view=auto&rev=124715
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/vendor/TimeServers.java	Sat Jan  8 23:32:46 2005
@@ -0,0 +1,38 @@
+/*
+ *   Copyright 2005 The Apache Software Foundation
+ *
+ *   Licensed under the Apache License, Version 2.0 (the "License");
+ *   you may not use this file except in compliance with the License.
+ *   You may obtain a copy of the License at
+ *
+ *       http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *   Unless required by applicable law or agreed to in writing, software
+ *   distributed under the License is distributed on an "AS IS" BASIS,
+ *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ *   See the License for the specific language governing permissions and
+ *   limitations under the License.
+ *
+ */
+
+/**
+ * The time server option specifies a list of RFC 868 time servers
+ * available to the client.  Servers SHOULD be listed in order of
+ * preference.
+ * 
+ * The code for the time server option is 4.  The minimum length for
+ * this option is 4 octets, and the length MUST always be a multiple of
+ * 4.
+ */
+package org.apache.dhcp.options.vendor;
+
+import org.apache.dhcp.options.AddressListOption;
+
+public class TimeServers extends AddressListOption
+{
+	public TimeServers( byte[] timeServers )
+	{
+		super( 4, timeServers );
+	}
+}
+