1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-25 06:23:53 +01:00

gnrc_tftp: set port on server init

This commit is contained in:
Martine S. Lenders 2019-07-03 16:49:43 +02:00
parent 3d33400b04
commit 1c946a1af4

View File

@ -412,6 +412,7 @@ int gnrc_tftp_server(tftp_data_cb_t data_cb, tftp_start_cb_t start_cb, tftp_stop
/* context will be initialized when a connection is established */
tftp_context_t ctxt = {
.dst_port = GNRC_TFTP_DEFAULT_DST_PORT,
.src_port = GNRC_TFTP_DEFAULT_DST_PORT,
.data_cb = data_cb,
.start_cb = start_cb,