Andrew Boyson / net

Dependents:   oldheating gps motorhome heating

Committer:
andrewboyson
Date:
Sat Nov 17 15:49:03 2018 +0000
Revision:
83:08c983006a6e
Parent:
61:aad055f1b0d1
Added "send requests via IPv4" toggles for DNS, NTP and TFTP.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 61:aad055f1b0d1 1 #include <stdint.h>
andrewboyson 61:aad055f1b0d1 2 #include <stdbool.h>
andrewboyson 61:aad055f1b0d1 3
andrewboyson 57:e0fb648acf48 4 extern bool TftpTrace;
andrewboyson 57:e0fb648acf48 5
andrewboyson 61:aad055f1b0d1 6 extern void TftpMain(void);
andrewboyson 57:e0fb648acf48 7
andrewboyson 57:e0fb648acf48 8 extern char TftpServerName[];
andrewboyson 57:e0fb648acf48 9 extern char TftpFileName[];
andrewboyson 57:e0fb648acf48 10 extern int TftpWriteStatus;
andrewboyson 57:e0fb648acf48 11
andrewboyson 57:e0fb648acf48 12 #define TFTP_WRITE_STATUS_NONE 0
andrewboyson 57:e0fb648acf48 13 #define TFTP_WRITE_STATUS_REQUEST 1
andrewboyson 57:e0fb648acf48 14 #define TFTP_WRITE_STATUS_IN_PROGRESS 2
andrewboyson 57:e0fb648acf48 15
andrewboyson 83:08c983006a6e 16 extern bool TftpSendRequestsViaIp4;
andrewboyson 57:e0fb648acf48 17 extern uint32_t TftpServerIp4;
andrewboyson 57:e0fb648acf48 18 extern char TftpServerIp6[];
andrewboyson 57:e0fb648acf48 19
andrewboyson 57:e0fb648acf48 20 extern int (*TftpGetNextByteFunction)();
andrewboyson 57:e0fb648acf48 21
andrewboyson 59:e0e556c8bd46 22 extern int TftpHandlePacketReceived(void (*traceback)(void), int sizeRx, void* pPacketRx, int* pSizeTx, void* pPacketTx);
andrewboyson 57:e0fb648acf48 23 extern int TftpPollForPacketToSend(int type, void* pPacket, int* pSize);
andrewboyson 57:e0fb648acf48 24
andrewboyson 57:e0fb648acf48 25 #define TFTP_SERVER_PORT 69
andrewboyson 57:e0fb648acf48 26 #define TFTP_CLIENT_PORT 60690