List Info

Thread: Dhcp option names versus numebers




Dhcp option names versus numebers
user name
2006-03-07 11:32:13
   *** From dhcp-server -- To unsubscribe, see the end of
this message. ***

Hi

Does anyone have a good list of opiton names versus what the
names are in the isc server.
For example option 60 -> vendor-class-identifier etc...

Best Regs

-- Staffan

------------------------------------------------------------
-----------
List Archives : http://www.isc.org/ops/
lists/
Unsubscribe   : http://www.
isc.org/sw/dhcp/dhcp-lists.php    
-or-          : mailto:dhcp-server-requestisc.org?Subject=unsubscribe  
------------------------------------------------------------
-----------

Dhcp option names versus numebers
user name
2006-03-07 13:57:25
   *** From dhcp-server -- To unsubscribe, see the end of
this message. ***

Staffan.Ungsgardteliasonera.com wrote:
>    *** From dhcp-server -- To unsubscribe, see the end
of this message. ***
>
> Hi
>
> Does anyone have a good list of opiton names versus
what the names are in the isc server.
> For example option 60 -> vendor-class-identifier
etc...
>
> Best Regs
>
> -- Staffan

Hi Staffan,
may the source be with you, have a look in includes/dhcp.h,
it contains
(for 3.0.1) :

#define DHO_PAD                         0
#define DHO_SUBNET_MASK                 1
#define DHO_TIME_OFFSET                 2
#define DHO_ROUTERS                     3
#define DHO_TIME_SERVERS                4
#define DHO_NAME_SERVERS                5
#define DHO_DOMAIN_NAME_SERVERS         6
#define DHO_LOG_SERVERS                 7
#define DHO_COOKIE_SERVERS              8
#define DHO_LPR_SERVERS                 9
#define DHO_IMPRESS_SERVERS             10
#define DHO_RESOURCE_LOCATION_SERVERS   11
#define DHO_HOST_NAME                   12
#define DHO_BOOT_SIZE                   13
#define DHO_MERIT_DUMP                  14
#define DHO_DOMAIN_NAME                 15
#define DHO_SWAP_SERVER                 16
#define DHO_ROOT_PATH                   17
#define DHO_EXTENSIONS_PATH             18
#define DHO_IP_FORWARDING               19
#define DHO_NON_LOCAL_SOURCE_ROUTING    20
#define DHO_POLICY_FILTER               21
#define DHO_MAX_DGRAM_REASSEMBLY        22
#define DHO_DEFAULT_IP_TTL              23
#define DHO_PATH_MTU_AGING_TIMEOUT      24
#define DHO_PATH_MTU_PLATEAU_TABLE      25
#define DHO_INTERFACE_MTU               26
#define DHO_ALL_SUBNETS_LOCAL           27
#define DHO_BROADCAST_ADDRESS           28
#define DHO_PERFORM_MASK_DISCOVERY      29
#define DHO_MASK_SUPPLIER               30
#define DHO_ROUTER_DISCOVERY            31
#define DHO_ROUTER_SOLICITATION_ADDRESS 32
#define DHO_STATIC_ROUTES               33
#define DHO_TRAILER_ENCAPSULATION       34
#define DHO_ARP_CACHE_TIMEOUT           35
#define DHO_IEEE802_3_ENCAPSULATION     36
#define DHO_DEFAULT_TCP_TTL             37
#define DHO_TCP_KEEPALIVE_INTERVAL      38
#define DHO_TCP_KEEPALIVE_GARBAGE       39
#define DHO_NIS_DOMAIN                  40
#define DHO_NIS_SERVERS                 41
#define DHO_NTP_SERVERS                 42
#define DHO_VENDOR_ENCAPSULATED_OPTIONS 43
#define DHO_NETBIOS_NAME_SERVERS        44
#define DHO_NETBIOS_DD_SERVER           45
#define DHO_NETBIOS_NODE_TYPE           46
#define DHO_NETBIOS_SCOPE               47
#define DHO_FONT_SERVERS                48
#define DHO_X_DISPLAY_MANAGER           49
#define DHO_DHCP_REQUESTED_ADDRESS      50
#define DHO_DHCP_LEASE_TIME             51
#define DHO_DHCP_OPTION_OVERLOAD        52
#define DHO_DHCP_MESSAGE_TYPE           53
#define DHO_DHCP_SERVER_IDENTIFIER      54
#define DHO_DHCP_PARAMETER_REQUEST_LIST 55
#define DHO_DHCP_MESSAGE                56
#define DHO_DHCP_MAX_MESSAGE_SIZE       57
#define DHO_DHCP_RENEWAL_TIME           58
#define DHO_DHCP_REBINDING_TIME         59
#define DHO_VENDOR_CLASS_IDENTIFIER     60
#define DHO_DHCP_CLIENT_IDENTIFIER      61
#define DHO_NWIP_DOMAIN_NAME            62
#define DHO_NWIP_SUBOPTIONS             63
#define DHO_USER_CLASS                  77
#define DHO_FQDN                        81
#define DHO_DHCP_AGENT_OPTIONS          82
#define DHO_SUBNET_SELECTION            118 /* RFC3011! */
/* The DHO_AUTHENTICATE option is not a standard yet, so
I've
   allocated an option out of the "local" option
space for it on a
   temporary basis.  Once an option code number is assigned,
I will
   immediately and shamelessly break this, so don't count
on it
   continuing to work. */
#define DHO_AUTHENTICATE                210

#define DHO_END                         255

regards

Aurélien

------------------
Direction des systèmes d'information
Université Réne Descartes Paris 5 
01.40.46.17.09


------------------------------------------------------------
-----------
List Archives : http://www.isc.org/ops/
lists/
Unsubscribe   : http://www.
isc.org/sw/dhcp/dhcp-lists.php    
-or-          : mailto:dhcp-server-requestisc.org?Subject=unsubscribe  
------------------------------------------------------------
-----------

Dhcp option names versus numebers
user name
2006-03-07 16:24:11
   *** From dhcp-server -- To unsubscribe, see the end of
this message. ***

On Tue, Mar 07, 2006 at 02:57:25PM +0100, Aurelien Minet
wrote:
> may the source be with you, have a look in
includes/dhcp.h, it contains
> (for 3.0.1) :
> 
> #define DHO_PAD                         0
> #define DHO_SUBNET_MASK                 1

Well, these aren't always direct translations, I think.

The best way is common/table.c:

struct option dhcp_options [256] = {
        { "pad", "",                
                   &dhcp_universe, 0 },
        { "subnet-mask", "I",       
                   &dhcp_universe, 1 },
        { "time-offset", "l",       
                   &dhcp_universe, 2 },
        { "routers", "IA",          
                   &dhcp_universe, 3 },
        { "time-servers", "IA",     
                   &dhcp_universe, 4 },
        { "ien116-name-servers",
"IA",                  &dhcp_universe, 5 },

...so on and so forth.


In theory, dhcp-options is supposed to be up to date in
describing
every option documented in table.c.

In practice it could probably use an audit.

-- 
David W. Hankins		"If you don't do it right the first
time,
Software Engineer			you'll just have to do it again."
Internet Systems Consortium, Inc.		-- Jack T. Hankins

------------------------------------------------------------
-----------
List Archives : http://www.isc.org/ops/
lists/
Unsubscribe   : http://www.
isc.org/sw/dhcp/dhcp-lists.php    
-or-          : mailto:dhcp-server-requestisc.org?Subject=unsubscribe  
------------------------------------------------------------
-----------

Dhcp option names versus numebers
user name
2006-03-07 18:05:01
   *** From dhcp-server -- To unsubscribe, see the end of
this message. ***

On Tue, Mar 07, 2006 at 08:24:11AM -0800, David W. Hankins
wrote:
> In theory, dhcp-options is supposed to be up to date in
describing
> every option documented in table.c.
> 
> In practice it could probably use an audit.

Checking for existence of options in the dhcp-options.5 vs.
table.c:

+agent.circuit-id
+agent.remote-id
-authenticate
-relay-agent-information

The first two are documented in dhcp-options.5, but are not
in 
table.c.  The others are in table.c, but not documented in 
dhcp-options.5.

------------------------------------------------------------
-----------
List Archives : http://www.isc.org/ops/
lists/
Unsubscribe   : http://www.
isc.org/sw/dhcp/dhcp-lists.php    
-or-          : mailto:dhcp-server-requestisc.org?Subject=unsubscribe  
------------------------------------------------------------
-----------

Dhcp option names versus numebers
user name
2006-03-07 18:44:04
   *** From dhcp-server -- To unsubscribe, see the end of
this message. ***

On Tue, Mar 07, 2006 at 01:05:01PM -0500, Chuck Anderson
wrote:
> Checking for existence of options in the dhcp-options.5
vs. table.c:

Rock on.

> +agent.circuit-id
> +agent.remote-id

These are actually documented in server/stables.c in the
encapsulation
space definition:

        { "circuit-id", "X",        
                   &agent_universe, 1 },
        { "remote-id", "X",         
                   &agent_universe, 2 },
        { "agent-id", "I",          
                   &agent_universe, 3 },
        { "DOCSIS-device-class",
"L",                   &agent_universe, 4 },

Note that the second two are now listed by IANA:

    3   Sub-option 3 is reserved and should      [Droms]
        not be assigned at this time;
        proprietary and incompatible usages
        of this sub-option value have been
        seen limited deployment.
    4   DOCSIS Device Class Suboption          [RFC3256]

So I should probably document the DOCSIS option in the
manpage.

> -authenticate

That one should probably stay out of the manpage until it's
actually
supported properly.

> -relay-agent-information

This is related, the anticipated use is the agent.* options
rather
than this option directly.


Cool.

Rather surprising there weren't more differences.

-- 
David W. Hankins		"If you don't do it right the first
time,
Software Engineer			you'll just have to do it again."
Internet Systems Consortium, Inc.		-- Jack T. Hankins

------------------------------------------------------------
-----------
List Archives : http://www.isc.org/ops/
lists/
Unsubscribe   : http://www.
isc.org/sw/dhcp/dhcp-lists.php    
-or-          : mailto:dhcp-server-requestisc.org?Subject=unsubscribe  
------------------------------------------------------------
-----------

[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )