
menu "DHCP server & client"
config UDHCP
		 bool "DHCP server & client"
		 default y

config UDHCP_ENHANCE_OPTION_SIZE
       bool "CFG_UDHCP_ENHANCE_OPTION_SIZE"
       depends on UDHCP
       default n
       help 
       In Russia , dhcpd offer both option 121 and 249 (each contains 15 rules).
	And the total dhcp OFFER packet size is 601 Bytes, which will cause our udhcpc can not handle the packet
	thus we increase to 408 Bytes to let udhcpc can hanlde these kinds of packet
       If Answer Y
        set dhcp option length to 408 (Russia Env)
       If Answer N
        set dhcp option length to 308
config UDHCP_ENHANCE_OPTION_SIZE_VALUE
	string "CFG_UDHCP_ENHANCE_OPTION_SIZE_VALUE"
	depends on UDHCP_ENHANCE_OPTION_SIZE
	default 408
	help 
	In Russia , dhcpd offer both option 121 and 249 (each contains 15 rules).
		And the total dhcp OFFER packet size is 601 Bytes, which will cause our udhcpc can not handle the packet
		thus we increase to 408 Bytes to let udhcpc can hanlde these kinds of packet
	If Answer default
		set dhcp option length to 408 (Russia Env)
	If Answer other
		set dhcp option length to customer define
choice
		 prompt "Enhance DHCP Server or Clinet"
		 default UDHCP_ENHANCE_OPTION_SIZE_DHCPC
		 depends on UDHCP_ENHANCE_OPTION_SIZE

		config UDHCP_ENHANCE_OPTION_SIZE_DHCPC
		bool "DHCPC OPTION SIZE is 408 Bytes"
		help
			Device is DHCP Client and accept 601 Bytes DHCP OFFER packet from WAN

		config UDHCP_ENHANCE_OPTION_SIZE_DHCPD
		bool "DHCPD OPTION SIZE is 408 Bytes"
		help
			Device is DHCP Server and send 601 Bytes DHCP OFFER packet to LAN

		config UDHCP_ENHANCE_OPTION_SIZE_BOTH
		bool "DHCPD and DHCPC OPTION SIZE are 408 Bytes"
		help
			Device is DHCP Client and accept 601 Bytes DHCP OFFER packet from WAN 
			and Device is DHCP Server and send 601 Bytes DHCP OFFER packet to LAN
endchoice		 

config UDHCPD_NETBIOS
       bool "CFG_DHCPD_NETBIOS"
       depends on UDHCP
       default n
       help
       Answer Y for netbios support of udhcpd.

config UDHCPD_ALWAYS_BROADCAST
       bool "CFG_DHCPD_ALWAYS_BROADCAST"
       depends on UDHCP
       default n
       help
       Answer Y for always broadcast support of udhcpd.

config UDHCPD_REVOKE
       bool "CFG_DHCPD_REVOKE"
       depends on UDHCP
       default n
       help
       Answer Y for revoke support of udhcpd. Clean up client IP cache in dhcpd.

config UDHCPD_CHECK_RESERV_BY_GUI
       bool "CFG_DHCPD_CHECK_RESERV_BY_GUI"
       depends on UDHCP
       default n
       help
       If Answer Y 
       	Check dhcpd reservation table IP setting by GUI.
       If Answer N,
       	When device's IP change, then force to clean dhcpd reservation table automatically.

config UDHCPC_UNICAST
       bool "CFG_DHCPC_UNICAST"
       depends on UDHCP
       default n
       help
       Answer Y for unicast support of udhcpc.

config UDHCPC_STATIC_ROUTE
	bool "CFG_UDHCPC_STATIC_ROUTE"
	depends on UDHCP
	default n
	help
		This enables support for dhcp static route (option 33)
		in dhcp client (RFC 2132), to let udhcpc request server with
		option 33, and handdle following response, answer Y for
		static route of udhcpc.

config RFC_UDHCPC_CLASSLESS_STATIC_ROUTE
	bool "DHCP Option 121"
	depends on UDHCP
	default n
	help
		This enables support for dhcp classes static route (option 121)
		in dhcp client (RFC 3442), to let udhcpc request server with
		option 121, and handdle following response, answer Y for
		classes static route of udhcpc.

config MS_UDHCPC_CLASSLESS_STATIC_ROUTE
	bool "DHCP Option 249"
	depends on UDHCP
	default n
	help
		This enables support for dhcp classes static route (option 249)
		in dhcp client (same as option 121, Microsoft proprietary),
		to let udhcpc request server with option 249, 
		and handdle following response, answer Y for
		classes static route of udhcpc.

config CLASSLESS_STATIC_ROUTE_SHOW_UI
    bool "CFG_CLASSLESS_STATIC_ROUTE_SHOW_UI"
	depends on RFC_UDHCPC_CLASSLESS_STATIC_ROUTE || MS_UDHCPC_CLASSLESS_STATIC_ROUTE
	default y
	help 
		support DHCP Routing Info on GUI

config AUTO_MODE_SELECT
	bool "CONFIG_AUTO_MODE_SELECT"
	depends on UDHCP
	default n
	help
		This enables support for router auto mode select function in dhcp client.
		Device can switch to Router or AP

config IGNORE_IP_CONTRAST
    bool "IGNORE_IP_CONTRAST"
    default n
    depends on UDHCP
    help
    This is one of the udhcpc recall rc condition when it get IP.
    Note: If you enabled this option, no matter dhcpc's new IP equal old IP, do rc restart (filter). 
    Otherwise, the static_routing rules would not add to routing table.

config TR_ACS_DISCOVERY
    bool "Support OD-069 ACS Discovery"
    default n
    depends on UDHCP
    help
    Tis is one of the udhcpc option 60, 43 feature for ACS URL Discovery

# end DHCP optional
endmenu
