tftp-utils.c (ca2d3691c3430908847f44f1b2198b5c5298fac5) tftp-utils.c (fdf929ff91d432d17c4d7d0aa0f9995fffe6fa8e)
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (C) 2008 Edwin Groothuis. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 37 unchanged lines hidden (view full) ---

46/*
47 * Default values, can be changed later via the TFTP Options
48 */
49int timeoutpacket = TIMEOUT;
50int timeoutnetwork = MAX_TIMEOUTS * TIMEOUT;
51int maxtimeouts = MAX_TIMEOUTS;
52uint16_t segsize = SEGSIZE;
53uint16_t pktsize = SEGSIZE + 4;
1/*-
2 * SPDX-License-Identifier: BSD-2-Clause-FreeBSD
3 *
4 * Copyright (C) 2008 Edwin Groothuis. All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions
8 * are met:

--- 37 unchanged lines hidden (view full) ---

46/*
47 * Default values, can be changed later via the TFTP Options
48 */
49int timeoutpacket = TIMEOUT;
50int timeoutnetwork = MAX_TIMEOUTS * TIMEOUT;
51int maxtimeouts = MAX_TIMEOUTS;
52uint16_t segsize = SEGSIZE;
53uint16_t pktsize = SEGSIZE + 4;
54uint16_t windowsize = WINDOWSIZE;
54
55int acting_as_client;
56
57
58/*
59 * Set timeout values for packet reception. The idea is that you
60 * get 'maxtimeouts' of 5 seconds between 'timeoutpacket' (i.e. the
61 * first timeout) to 'timeoutnetwork' (i.e. the last timeout)

--- 263 unchanged lines hidden ---
55
56int acting_as_client;
57
58
59/*
60 * Set timeout values for packet reception. The idea is that you
61 * get 'maxtimeouts' of 5 seconds between 'timeoutpacket' (i.e. the
62 * first timeout) to 'timeoutnetwork' (i.e. the last timeout)

--- 263 unchanged lines hidden ---