Lines Matching +full:apt +full:- +full:get

16 In this example, the :zephyr:code-sample:`sockets-echo-server` sample application from
25 On the Linux Host, find the Zephyr `net-tools`_ project, which can either be
26 found in a Zephyr standard installation under the ``tools/net-tools`` directory
29 .. code-block:: console
31 sudo apt install -y socat libpcap-dev
32 git clone https://github.com/zephyrproject-rtos/net-tools
33 cd net-tools
38 If you get an error about AX_CHECK_COMPILE_FLAG, install package
39 ``autoconf-archive`` package on Debian/Ubuntu.
48 * Terminals #2, #3, and #4 are terminal windows with net-tools being the current
49 directory (``cd net-tools``)
51 Step 1 - Create helper socket
59 .. code-block:: console
61 ./loop-socat.sh
63 Step 2 - Start TAP device routing daemon
69 .. code-block:: console
71 sudo ./loop-slip-tap.sh
76 Step 3 - Start app in QEMU
83 .. zephyr-app-commands::
84 :zephyr-app: samples/net/sockets/echo_server
85 :host-os: unix
93 Step 4 - Run apps on host
101 .. code-block:: console
108 .. code-block:: console
110 echo foobar | nc -6 -u 2001:db8::1 4242
113 .. code-block:: console
115 echo foobar | nc -u 192.0.2.1 4242
121 .. code-block:: console
123 echo foobar | nc -6 -q2 2001:db8::1 4242
132 Step 5 - Stop supporting daemons
140 laptop to normal Wi-Fi use.
143 (you need to stop both ``loop-slip-tap.sh`` and ``loop-socat.sh``).
171 .. code-block:: console
173 iptables -t nat -A POSTROUTING -j MASQUERADE -s 192.0.2.1/24
174 iptables -I FORWARD 1 -i zeth -j ACCEPT
175 iptables -I FORWARD 1 -o zeth -m state --state RELATED,ESTABLISHED -j ACCEPT
181 .. code-block:: console
183 sysctl -w net.ipv4.ip_forward=1
185 Some applications may also require a DNS server. A number of Zephyr-provided
190 on Debian-based systems:
192 .. code-block:: console
204 Unlike the VM-to-Host setup described above, VM-to-VM setup is
212 .. zephyr-app-commands::
213 :zephyr-app: samples/net/sockets/echo_server
214 :host-os: unix
217 :build-args: server
225 .. zephyr-app-commands::
226 :zephyr-app: samples/net/sockets/echo_client
227 :host-os: unix
230 :build-args: client
244 ``loop-xxx.sh`` scripts) for as many instances as you want. Use the
250 .. code-block:: console
252 socat PTY,link=/tmp/slip.devMAIN UNIX-LISTEN:/tmp/slip.sockMAIN &
253 sudo $ZEPHYR_BASE/../tools/net-tools/tunslip6 -t tapMAIN -T -s /tmp/slip.devMAIN 2001:db8::1/64 &
255 make -Cbuild run QEMU_INSTANCE=MAIN
260 .. code-block:: console
262 socat PTY,link=/tmp/slip.devOTHER UNIX-LISTEN:/tmp/slip.sockOTHER &
263 …sudo $ZEPHYR_BASE/../tools/net-tools/tunslip6 -t tapOTHER -T -s /tmp/slip.devOTHER 2001:db8::1/64 &
264 make -Cbuild run QEMU_INSTANCE=OTHER
266 .. _`net-tools`: https://github.com/zephyrproject-rtos/net-tools