
config PKG_USING_NETUTILS
    bool "netutils: Networking utilities for RT-Thread"
    default n

if PKG_USING_NETUTILS

    config PKG_NETUTILS_PATH
        string
        default "/packages/iot/netutils"

    config PKG_NETUTILS_PING
        bool "Enable Ping utility"
        select RT_LWIP_ICMP
        select RT_LWIP_RAW
        default n

    config PKG_NETUTILS_TFTP
        bool "Enable TFTP(Trivial File Transfer Protocol) server"
        default n
    if PKG_NETUTILS_TFTP
        config NETUTILS_TFTP_PORT
            int "TFTP server port"
            range 0 65535
            default 69
    endif

    config PKG_NETUTILS_IPERF
        bool "Enable iperf-liked network performance tool"
        default n

    config PKG_NETUTILS_NETIO
        bool "Enable NetIO network throughput performance tool"
        default n

    config PKG_NETUTILS_NTP
        bool "Enable NTP(Network Time Protocol) client"
        default n
    if PKG_NETUTILS_NTP
        config NETUTILS_NTP_TIMEZONE
            int "Timezone for calculate local time"
            range -12 12
            default 8

        config NETUTILS_NTP_HOSTNAME
            string "NTP server name"
            default "cn.pool.ntp.org"
    endif

    config PKG_NETUTILS_TELNET
        bool "Enable Telnet server"
        default n

    choice
        prompt "Version"
        help
            Select the netutils version

        config PKG_USING_NETUTILS_LATEST_VERSION
            bool "latest"

        config PKG_USING_NETUTILS_V100
            bool "v1.0.0"
    endchoice

    config PKG_NETUTILS_VER
    string
    default "v1.0.0" if PKG_USING_NETUTILS_V100
    default "latest" if PKG_USING_NETUTILS_LATEST_VERSION

endif
