directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From erodrig...@apache.org
Subject svn commit: r124707 - incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc
Date Sun, 09 Jan 2005 06:02:22 GMT
Author: erodriguez
Date: Sat Jan  8 22:02:20 2005
New Revision: 124707

URL: http://svn.apache.org/viewcvs?view=rev&rev=124707
Log:
DHCP misc options per RFC 2132.
Added:
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/DefaultFingerServers.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/DefaultIrcServers.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/DefaultWwwServers.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/MobileIpHomeAgents.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NbddServers.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NetbiosNameServers.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NetbiosNodeType.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NetbiosScope.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NisDomain.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NisPlusDomain.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NisPlusServers.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NisServers.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NntpServers.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NtpServers.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/Pop3Servers.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/SmtpServers.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/StdaServers.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/StreetTalkServers.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/VendorSpecificInformation.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/XWindowDisplayManagers.java
   incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/XWindowFontServers.java

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/DefaultFingerServers.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/DefaultFingerServers.java?view=auto&rev=124707
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/DefaultFingerServers.java
Sat Jan  8 22:02:20 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.
+ *
+ */
+
+package org.apache.dhcp.options.misc;
+
+import org.apache.dhcp.options.AddressListOption;
+
+/**
+ * The Finger server option specifies a list of Finger available to the
+ * client.  Servers SHOULD be listed in order of preference.
+ * 
+ * The code for the Finger server option is 73.  The minimum length for
+ * this option is 4 octets, and the length MUST always be a multiple of
+ * 4.
+ */
+public class DefaultFingerServers extends AddressListOption
+{
+	public DefaultFingerServers( byte[] defaultFingerServer )
+	{
+		super( 73, defaultFingerServer );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/DefaultIrcServers.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/DefaultIrcServers.java?view=auto&rev=124707
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/DefaultIrcServers.java
Sat Jan  8 22:02:20 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.
+ *
+ */
+
+package org.apache.dhcp.options.misc;
+
+import org.apache.dhcp.options.AddressListOption;
+
+/**
+ * The IRC server option specifies a list of IRC available to the
+ * client.  Servers SHOULD be listed in order of preference.
+ * 
+ * The code for the IRC server option is 74.  The minimum length for
+ * this option is 4 octets, and the length MUST always be a multiple of
+ * 4.
+ */
+public class DefaultIrcServers extends AddressListOption
+{
+	public DefaultIrcServers( byte[] defaultIrcServer )
+	{
+		super( 74, defaultIrcServer );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/DefaultWwwServers.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/DefaultWwwServers.java?view=auto&rev=124707
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/DefaultWwwServers.java
Sat Jan  8 22:02:20 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.
+ *
+ */
+
+package org.apache.dhcp.options.misc;
+
+import org.apache.dhcp.options.AddressListOption;
+
+/**
+ * The WWW server option specifies a list of WWW available to the
+ * client.  Servers SHOULD be listed in order of preference.
+ * 
+ * The code for the WWW server option is 72.  The minimum length for
+ * this option is 4 octets, and the length MUST always be a multiple of
+ * 4.
+ */
+public class DefaultWwwServers extends AddressListOption
+{
+	public DefaultWwwServers( byte[] defaultWwwServer )
+	{
+		super( 72, defaultWwwServer );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/MobileIpHomeAgents.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/MobileIpHomeAgents.java?view=auto&rev=124707
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/MobileIpHomeAgents.java
Sat Jan  8 22:02:20 2005
@@ -0,0 +1,39 @@
+/*
+ *   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.misc;
+
+import org.apache.dhcp.options.AddressListOption;
+
+/**
+ * This option specifies a list of IP addresses indicating mobile IP
+ * home agents available to the client.  Agents SHOULD be listed in
+ * order of preference.
+ * 
+ * The code for this option is 68.  Its minimum length is 0 (indicating
+ * no home agents are available) and the length MUST be a multiple of 4.
+ * It is expected that the usual length will be four octets, containing
+ * a single home agent's address.
+ */
+public class MobileIpHomeAgents extends AddressListOption
+{
+	public MobileIpHomeAgents( byte[] mobileIpHomeAgent )
+	{
+		super( 68, mobileIpHomeAgent );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NbddServers.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NbddServers.java?view=auto&rev=124707
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NbddServers.java
Sat Jan  8 22:02:20 2005
@@ -0,0 +1,35 @@
+/*
+ *   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.misc;
+
+import org.apache.dhcp.options.AddressListOption;
+
+/**
+ * The NetBIOS datagram distribution server (NBDD) option specifies a
+ * list of RFC 1001/1002 NBDD servers listed in order of preference. The
+ * code for this option is 45.  The minimum length of the option is 4
+ * octets, and the length must always be a multiple of 4.
+ */
+public class NbddServers extends AddressListOption
+{
+	public NbddServers( byte[] netbiosDatagramDistributionServer )
+	{
+		super( 45, netbiosDatagramDistributionServer );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NetbiosNameServers.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NetbiosNameServers.java?view=auto&rev=124707
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NetbiosNameServers.java
Sat Jan  8 22:02:20 2005
@@ -0,0 +1,36 @@
+/*
+ *   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.misc;
+
+import org.apache.dhcp.options.AddressListOption;
+
+/**
+ * The NetBIOS name server (NBNS) option specifies a list of RFC
+ * 1001/1002 NBNS name servers listed in order of preference.
+ * 
+ * The code for this option is 44.  The minimum length of the option is
+ * 4 octets, and the length must always be a multiple of 4.
+ */
+public class NetbiosNameServers extends AddressListOption
+{
+	public NetbiosNameServers( byte[] netbiosNameServer )
+	{
+		super( 44, netbiosNameServer );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NetbiosNodeType.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NetbiosNodeType.java?view=auto&rev=124707
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NetbiosNodeType.java
Sat Jan  8 22:02:20 2005
@@ -0,0 +1,58 @@
+/*
+ *   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.misc;
+
+import java.nio.ByteBuffer;
+
+import org.apache.dhcp.options.DhcpOption;
+
+/**
+ * The NetBIOS node type option allows NetBIOS over TCP/IP clients which
+ * are configurable to be configured as described in RFC 1001/1002.  The
+ * value is specified as a single octet which identifies the client type
+ * as follows:
+ * 
+ *    Value         Node Type
+ *    -----         ---------
+ *    0x1           B-node
+ *    0x2           P-node
+ *    0x4           M-node
+ *    0x8           H-node
+ * 
+ * In the above chart, the notation '0x' indicates a number in base-16
+ * (hexadecimal).
+ * 
+ * The code for this option is 46.  The length of this option is always
+ * 1.
+ */
+public class NetbiosNodeType extends DhcpOption
+{
+	private byte[] netbiosNodeType;
+	
+	public NetbiosNodeType( byte[] netbiosNodeType )
+	{
+		super( 46, 1 );
+		this.netbiosNodeType = netbiosNodeType;
+	}
+	
+	protected void valueToByteBuffer( ByteBuffer out )
+	{
+		out.put( netbiosNodeType );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NetbiosScope.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NetbiosScope.java?view=auto&rev=124707
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NetbiosScope.java
Sat Jan  8 22:02:20 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.
+ *
+ */
+
+package org.apache.dhcp.options.misc;
+
+import java.nio.ByteBuffer;
+
+import org.apache.dhcp.options.DhcpOption;
+
+/**
+ * The NetBIOS scope option specifies the NetBIOS over TCP/IP scope
+ * parameter for the client as specified in RFC 1001/1002.
+ * 
+ * The code for this option is 47.  The minimum length of this option is
+ * 1.
+ */
+public class NetbiosScope extends DhcpOption
+{
+	private byte[] netbiosScope;
+	
+	public NetbiosScope( byte[] netbiosScope )
+	{
+		super( 47, 1 );
+		this.netbiosScope = netbiosScope;
+	}
+	
+	protected void valueToByteBuffer( ByteBuffer out )
+	{
+		out.put( netbiosScope );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NisDomain.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NisDomain.java?view=auto&rev=124707
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NisDomain.java
Sat Jan  8 22:02:20 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.
+ *
+ */
+
+package org.apache.dhcp.options.misc;
+
+import java.nio.ByteBuffer;
+
+import org.apache.dhcp.options.DhcpOption;
+
+/**
+ * This option specifies the name of the client's NIS domain.  The
+ * domain is formatted as a character string consisting of characters
+ * from the NVT ASCII character set.
+ * 
+ * The code for this option is 40.  Its minimum length is 1.
+ */
+public class NisDomain extends DhcpOption
+{
+	private byte[] nisDomain;
+	
+	public NisDomain( byte[] nisDomain )
+	{
+		super( 40, 1 );
+		this.nisDomain = nisDomain;
+	}
+	
+	protected void valueToByteBuffer( ByteBuffer out )
+	{
+		out.put( nisDomain );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NisPlusDomain.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NisPlusDomain.java?view=auto&rev=124707
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NisPlusDomain.java
Sat Jan  8 22:02:20 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.
+ *
+ */
+
+package org.apache.dhcp.options.misc;
+
+import java.nio.ByteBuffer;
+
+import org.apache.dhcp.options.DhcpOption;
+
+/**
+ * This option specifies the name of the client's NIS+ domain.  The
+ * domain is formatted as a character string consisting of characters
+ * from the NVT ASCII character set.
+ * 
+ * The code for this option is 64.  Its minimum length is 1.
+ */
+public class NisPlusDomain extends DhcpOption
+{
+	private byte[] nisPlusDomain;
+	
+	public NisPlusDomain( byte[] nisPlusDomain )
+	{
+		super( 64, 1 );
+		this.nisPlusDomain = nisPlusDomain;
+	}
+	
+	protected void valueToByteBuffer( ByteBuffer out )
+	{
+		out.put( nisPlusDomain );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NisPlusServers.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NisPlusServers.java?view=auto&rev=124707
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NisPlusServers.java
Sat Jan  8 22:02:20 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.
+ *
+ */
+
+package org.apache.dhcp.options.misc;
+
+import org.apache.dhcp.options.AddressListOption;
+
+/**
+ * This option specifies a list of IP addresses indicating NIS+ servers
+ * available to the client.  Servers SHOULD be listed in order of
+ * preference.
+ * 
+ * The code for this option is 65.  Its minimum length is 4, and the
+ * length MUST be a multiple of 4.
+ */
+public class NisPlusServers extends AddressListOption
+{
+	public NisPlusServers( byte[] nisPlusServers )
+	{
+		super( 65, nisPlusServers );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NisServers.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NisServers.java?view=auto&rev=124707
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NisServers.java
Sat Jan  8 22:02:20 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.
+ *
+ */
+
+package org.apache.dhcp.options.misc;
+
+import org.apache.dhcp.options.AddressListOption;
+
+/**
+ * This option specifies a list of IP addresses indicating NIS servers
+ * available to the client.  Servers SHOULD be listed in order of
+ * preference.
+ * 
+ * The code for this option is 41.  Its minimum length is 4, and the
+ * length MUST be a multiple of 4.
+ */
+public class NisServers extends AddressListOption
+{
+	public NisServers( byte[] nisServers )
+	{
+		super( 41, nisServers );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NntpServers.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NntpServers.java?view=auto&rev=124707
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NntpServers.java
Sat Jan  8 22:02:20 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.
+ *
+ */
+
+package org.apache.dhcp.options.misc;
+
+import org.apache.dhcp.options.AddressListOption;
+
+/**
+ * The NNTP server option specifies a list of NNTP available to the
+ * client.  Servers SHOULD be listed in order of preference.
+ * 
+ * The code for the NNTP server option is 71. The minimum length for
+ * this option is 4 octets, and the length MUST always be a multiple of
+ * 4.
+ */
+public class NntpServers extends AddressListOption
+{
+	public NntpServers( byte[] nntpServer )
+	{
+		super( 71, nntpServer );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NtpServers.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NtpServers.java?view=auto&rev=124707
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/NtpServers.java
Sat Jan  8 22:02:20 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.
+ *
+ */
+
+package org.apache.dhcp.options.misc;
+
+import org.apache.dhcp.options.AddressListOption;
+
+/**
+ * This option specifies a list of IP addresses indicating NTP
+ * servers available to the client.  Servers SHOULD be listed in order
+ * of preference.
+ * 
+ * The code for this option is 42.  Its minimum length is 4, and the
+ * length MUST be a multiple of 4.
+ */
+public class NtpServers extends AddressListOption
+{
+	public NtpServers( byte[] ntpServers )
+	{
+		super( 42, ntpServers );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/Pop3Servers.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/Pop3Servers.java?view=auto&rev=124707
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/Pop3Servers.java
Sat Jan  8 22:02:20 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.
+ *
+ */
+
+package org.apache.dhcp.options.misc;
+
+import org.apache.dhcp.options.AddressListOption;
+
+/**
+ * The POP3 server option specifies a list of POP3 available to the
+ * client.  Servers SHOULD be listed in order of preference.
+ * 
+ * The code for the POP3 server option is 70.  The minimum length for
+ * this option is 4 octets, and the length MUST always be a multiple of
+ * 4.
+ */
+public class Pop3Servers extends AddressListOption
+{
+	public Pop3Servers( byte[] pop3Server )
+	{
+		super( 70, pop3Server );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/SmtpServers.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/SmtpServers.java?view=auto&rev=124707
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/SmtpServers.java
Sat Jan  8 22:02:20 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.
+ *
+ */
+
+package org.apache.dhcp.options.misc;
+
+import org.apache.dhcp.options.AddressListOption;
+
+/**
+ * The SMTP server option specifies a list of SMTP servers available to
+ * the client.  Servers SHOULD be listed in order of preference.
+ * 
+ * The code for the SMTP server option is 69.  The minimum length for
+ * this option is 4 octets, and the length MUST always be a multiple of
+ * 4.
+ */
+public class SmtpServers extends AddressListOption
+{
+	public SmtpServers( byte[] smtpServer )
+	{
+		super( 69, smtpServer );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/StdaServers.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/StdaServers.java?view=auto&rev=124707
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/StdaServers.java
Sat Jan  8 22:02:20 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.
+ *
+ */
+
+package org.apache.dhcp.options.misc;
+
+import org.apache.dhcp.options.AddressListOption;
+
+/**
+ * The StreetTalk Directory Assistance (STDA) server option specifies a
+ * list of STDA servers available to the client.  Servers SHOULD be
+ * listed in order of preference.
+ * 
+ * The code for the StreetTalk Directory Assistance server option is 76.
+ * The minimum length for this option is 4 octets, and the length MUST
+ * always be a multiple of 4.
+ */
+public class StdaServers extends AddressListOption
+{
+	public StdaServers( byte[] stdaServer )
+	{
+		super( 76, stdaServer );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/StreetTalkServers.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/StreetTalkServers.java?view=auto&rev=124707
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/StreetTalkServers.java
Sat Jan  8 22:02:20 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.
+ *
+ */
+
+package org.apache.dhcp.options.misc;
+
+import org.apache.dhcp.options.AddressListOption;
+
+/**
+ * The StreetTalk server option specifies a list of StreetTalk servers
+ * available to the client.  Servers SHOULD be listed in order of
+ * preference.
+ * 
+ * The code for the StreetTalk server option is 75.  The minimum length
+ * for this option is 4 octets, and the length MUST always be a multiple
+ * of 4.
+ */
+public class StreetTalkServers extends AddressListOption
+{
+	public StreetTalkServers( byte[] streetTalkServer )
+	{
+		super( 75, streetTalkServer );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/VendorSpecificInformation.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/VendorSpecificInformation.java?view=auto&rev=124707
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/VendorSpecificInformation.java
Sat Jan  8 22:02:20 2005
@@ -0,0 +1,73 @@
+/*
+ *   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.misc;
+
+import java.nio.ByteBuffer;
+
+import org.apache.dhcp.options.DhcpOption;
+
+/**
+ * This option is used by clients and servers to exchange vendor-
+ * specific information.  The information is an opaque object of n
+ * octets, presumably interpreted by vendor-specific code on the clients
+ * and servers.  The definition of this information is vendor specific.
+ * The vendor is indicated in the vendor class identifier option.
+ * Servers not equipped to interpret the vendor-specific information
+ * sent by a client MUST ignore it (although it may be reported).
+ * Clients which do not receive desired vendor-specific information
+ * SHOULD make an attempt to operate without it, although they may do so
+ * (and announce they are doing so) in a degraded mode.
+ * 
+ * If a vendor potentially encodes more than one item of information in
+ * this option, then the vendor SHOULD encode the option using
+ * "Encapsulated vendor-specific options" as described below:
+ * The Encapsulated vendor-specific options field SHOULD be encoded as a
+ * sequence of code/length/value fields of identical syntax to the DHCP
+ * options field with the following exceptions:
+ * 
+ *    1) There SHOULD NOT be a "magic cookie" field in the encapsulated
+ *       vendor-specific extensions field.
+ * 
+ *    2) Codes other than 0 or 255 MAY be redefined by the vendor within
+ *       the encapsulated vendor-specific extensions field, but SHOULD
+ *       conform to the tag-length-value syntax defined in section 2.
+ * 
+ *    3) Code 255 (END), if present, signifies the end of the
+ *       encapsulated vendor extensions, not the end of the vendor
+ *       extensions field. If no code 255 is present, then the end of
+ *       the enclosing vendor-specific information field is taken as the
+ *       end of the encapsulated vendor-specific extensions field.
+ * 
+ * The code for this option is 43 and its minimum length is 1.
+ */
+public class VendorSpecificInformation extends DhcpOption
+{
+	private byte[] vendorSpecificInformation;
+	
+	public VendorSpecificInformation( byte[] vendorSpecificInformation )
+	{
+		super( 43, 1 );
+		this.vendorSpecificInformation = vendorSpecificInformation;
+	}
+	
+	protected void valueToByteBuffer( ByteBuffer out )
+	{
+		out.put( vendorSpecificInformation );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/XWindowDisplayManagers.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/XWindowDisplayManagers.java?view=auto&rev=124707
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/XWindowDisplayManagers.java
Sat Jan  8 22:02:20 2005
@@ -0,0 +1,39 @@
+/*
+ *   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.misc;
+
+import org.apache.dhcp.options.AddressListOption;
+
+/**
+ * This option specifies a list of IP addresses of systems that are
+ * running the X Window System Display Manager and are available to the
+ * client.
+ * 
+ * Addresses SHOULD be listed in order of preference.
+ * 
+ * The code for the this option is 49. The minimum length of this option
+ * is 4, and the length MUST be a multiple of 4.
+ */
+public class XWindowDisplayManagers extends AddressListOption
+{
+	public XWindowDisplayManagers( byte[] xWindowDisplayManager )
+	{
+		super( 49, xWindowDisplayManager );
+	}
+}
+

Added: incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/XWindowFontServers.java
Url: http://svn.apache.org/viewcvs/incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/XWindowFontServers.java?view=auto&rev=124707
==============================================================================
--- (empty file)
+++ incubator/directory/dhcp/trunk/core/src/java/org/apache/dhcp/options/misc/XWindowFontServers.java
Sat Jan  8 22:02:20 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.
+ *
+ */
+
+package org.apache.dhcp.options.misc;
+
+import org.apache.dhcp.options.AddressListOption;
+
+/**
+ * This option specifies a list of X Window System Font servers
+ * available to the client. Servers SHOULD be listed in order of
+ * preference.
+ * 
+ * The code for this option is 48.  The minimum length of this option is
+ * 4 octets, and the length MUST be a multiple of 4.
+ */
+public class XWindowFontServers extends AddressListOption
+{
+	public XWindowFontServers( byte[] xWindowFontServer )
+	{
+		super( 48, xWindowFontServer );
+	}
+}
+

Mime
View raw message