1# Private config options for txtime sample app 2 3# Copyright (c) 2020 Intel Corporation 4# SPDX-License-Identifier: Apache-2.0 5 6mainmenu "Networking TXTIME sample application" 7 8config NET_SAMPLE_PEER 9 string "Peer IP address we are sending packets to" 10 help 11 The value depends on your network setup. This could be 12 a multicast address if needed. If port is not specified, 13 then 4242 is used. Currently the port value is only used 14 when selecting UDP socket type. 15 Syntax of the IP address string: 16 192.0.2.1:80 17 192.0.2.42 18 [2001:db8::1]:8080 19 [2001:db8::2] 20 2001:db::42 21 22choice 23 prompt "Socket type to use" 24 help 25 Can be used to select whether the application will use UDP 26 socket to send data, or if it uses AF_PACKET (raw) socket. 27 28config NET_SAMPLE_UDP_SOCKET 29 bool "UDP socket" 30 help 31 Use UDP socket. 32 33config NET_SAMPLE_PACKET_SOCKET 34 bool "Packet socket" 35 select NET_SOCKETS_PACKET 36 help 37 Use AF_PACKET socket. Note that currently the application sends 38 dummy data that is not a valid Ethernet frame. We want to measure 39 how long it takes to send data so the actual data content is not 40 important for this sample application. 41 42endchoice 43 44config NET_SAMPLE_PACKET_INTERVAL 45 int "How long to wait between sent packets (in milliseconds)" 46 default 1000 47 range 1 10000 48 help 49 The application will send network packets between this 50 interval. The value is in milliseconds. 51 52config NET_SAMPLE_PACKET_TXTIME 53 int "What is the TXTIME (in microseconds)" 54 default 1000 55 range 1 10000 56 help 57 This tells what is the expected sending time of the network 58 packet by the network device driver. The value is in microseconds. 59 This value should be smaller than the interval time 60 (NET_SAMPLE_PACKET_INTERVAL). This value is added to current 61 time from PTP clock, to set the expected transmit time. Note that 62 the actual TXTIME given to Ethernet driver, is set in nanoseconds, 63 but for purpose of this sample application, we set the time in 64 microseconds in this config option. 65 66config NET_SAMPLE_IFACE2_MY_IPV6_ADDR 67 string "My IPv6 address for second interface" 68 help 69 The value depends on your network setup. 70 71config NET_SAMPLE_IFACE2_MY_IPV4_ADDR 72 string "My IPv4 address for second interface" 73 help 74 The value depends on your network setup. 75 76config NET_SAMPLE_IFACE2_VLAN_TAG 77 int "VLAN tag for second interface" 78 default 100 79 range 0 4094 80 depends on NET_VLAN 81 help 82 Set VLAN (virtual LAN) tag (id) that is used in the sample 83 application. 84 85config NET_SAMPLE_IFACE3_MY_IPV6_ADDR 86 string "My IPv6 address for third interface" 87 help 88 The value depends on your network setup. 89 90config NET_SAMPLE_IFACE3_MY_IPV4_ADDR 91 string "My IPv4 address for third interface" 92 help 93 The value depends on your network setup. 94 95config NET_SAMPLE_IFACE3_VLAN_TAG 96 int "VLAN tag for third interface" 97 default 200 98 range 0 4094 99 depends on NET_VLAN 100 help 101 Set VLAN (virtual LAN) tag (id) that is used in the sample 102 application. 103 104source "Kconfig.zephyr" 105