Central Heating controller using the real time clock, PHY module for internet, 1-wire interface for temperature sensors, a system log and a configuration file
Dependencies: net 1-wire lpc1768 crypto clock web fram log
/media/uploads/andrewboyson/heating.sch
/media/uploads/andrewboyson/heating.brd
/media/uploads/andrewboyson/eagle.epf
settings/settings.c@11:fa01ea25b62d, 2018-12-02 (annotated)
- Committer:
- andrewboyson
- Date:
- Sun Dec 02 19:17:40 2018 +0000
- Revision:
- 11:fa01ea25b62d
- Parent:
- 8:8b5e0bb28da0
- Child:
- 13:2ca12dd42e91
Updated clock library
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 0:3c04f4b47041 | 1 | #include <stdbool.h> |
andrewboyson | 8:8b5e0bb28da0 | 2 | #include <stdlib.h> |
andrewboyson | 0:3c04f4b47041 | 3 | |
andrewboyson | 11:fa01ea25b62d | 4 | #include "clkstate.h" |
andrewboyson | 8:8b5e0bb28da0 | 5 | #include "fram.h" |
andrewboyson | 8:8b5e0bb28da0 | 6 | #include "log.h" |
andrewboyson | 8:8b5e0bb28da0 | 7 | #include "net.h" |
andrewboyson | 8:8b5e0bb28da0 | 8 | #include "link.h" |
andrewboyson | 8:8b5e0bb28da0 | 9 | #include "dnsname.h" |
andrewboyson | 8:8b5e0bb28da0 | 10 | #include "dnsquery.h" |
andrewboyson | 8:8b5e0bb28da0 | 11 | #include "dnsreply.h" |
andrewboyson | 8:8b5e0bb28da0 | 12 | #include "dnsserver.h" |
andrewboyson | 8:8b5e0bb28da0 | 13 | #include "ntp.h" |
andrewboyson | 8:8b5e0bb28da0 | 14 | #include "dhcp.h" |
andrewboyson | 8:8b5e0bb28da0 | 15 | #include "ns.h" |
andrewboyson | 8:8b5e0bb28da0 | 16 | #include "nr4.h" |
andrewboyson | 8:8b5e0bb28da0 | 17 | #include "nr6.h" |
andrewboyson | 8:8b5e0bb28da0 | 18 | #include "ntp-client.h" |
andrewboyson | 11:fa01ea25b62d | 19 | #include "clksync.h" |
andrewboyson | 8:8b5e0bb28da0 | 20 | #include "1-wire.h" |
andrewboyson | 8:8b5e0bb28da0 | 21 | #include "echo4.h" |
andrewboyson | 8:8b5e0bb28da0 | 22 | #include "echo6.h" |
andrewboyson | 8:8b5e0bb28da0 | 23 | #include "dest6.h" |
andrewboyson | 8:8b5e0bb28da0 | 24 | #include "ra.h" |
andrewboyson | 8:8b5e0bb28da0 | 25 | #include "rs.h" |
andrewboyson | 8:8b5e0bb28da0 | 26 | #include "ar4.h" |
andrewboyson | 8:8b5e0bb28da0 | 27 | #include "ar6.h" |
andrewboyson | 8:8b5e0bb28da0 | 28 | #include "arp.h" |
andrewboyson | 8:8b5e0bb28da0 | 29 | #include "ip4.h" |
andrewboyson | 8:8b5e0bb28da0 | 30 | #include "ip6.h" |
andrewboyson | 8:8b5e0bb28da0 | 31 | #include "udp.h" |
andrewboyson | 8:8b5e0bb28da0 | 32 | #include "tcp.h" |
andrewboyson | 8:8b5e0bb28da0 | 33 | #include "http.h" |
andrewboyson | 8:8b5e0bb28da0 | 34 | #include "tftp.h" |
andrewboyson | 8:8b5e0bb28da0 | 35 | #include "dns.h" |
andrewboyson | 0:3c04f4b47041 | 36 | |
andrewboyson | 0:3c04f4b47041 | 37 | static int iClockSlewDivisor ; |
andrewboyson | 0:3c04f4b47041 | 38 | static int iClockSlewMaxMs ; |
andrewboyson | 0:3c04f4b47041 | 39 | static int iClockPpbDivisor ; |
andrewboyson | 0:3c04f4b47041 | 40 | static int iClockPpbChangeMax ; |
andrewboyson | 0:3c04f4b47041 | 41 | static int iClockSyncedLimitNs ; |
andrewboyson | 0:3c04f4b47041 | 42 | static int iClockSyncedLimitPpb ; |
andrewboyson | 0:3c04f4b47041 | 43 | static int iClockSyncedHysterisNs ; |
andrewboyson | 0:3c04f4b47041 | 44 | static int iClockSyncedHysterisPpb; |
andrewboyson | 0:3c04f4b47041 | 45 | static int iClockMaxOffsetSecs ; |
andrewboyson | 8:8b5e0bb28da0 | 46 | static int iSync; |
andrewboyson | 8:8b5e0bb28da0 | 47 | |
andrewboyson | 8:8b5e0bb28da0 | 48 | static int iOneWire; |
andrewboyson | 8:8b5e0bb28da0 | 49 | |
andrewboyson | 8:8b5e0bb28da0 | 50 | static int iDnsSendRequestsViaIp4 ; |
andrewboyson | 8:8b5e0bb28da0 | 51 | static int iNtpSendRequestsViaIp4 ; |
andrewboyson | 8:8b5e0bb28da0 | 52 | static int iTftpSendRequestsViaIp4; |
andrewboyson | 0:3c04f4b47041 | 53 | |
andrewboyson | 8:8b5e0bb28da0 | 54 | static int iNetHost; |
andrewboyson | 8:8b5e0bb28da0 | 55 | static int iLogUart; |
andrewboyson | 8:8b5e0bb28da0 | 56 | static int iNetStack; |
andrewboyson | 8:8b5e0bb28da0 | 57 | static int iNetNewLine; |
andrewboyson | 8:8b5e0bb28da0 | 58 | static int iNetVerbose; |
andrewboyson | 8:8b5e0bb28da0 | 59 | static int iLink; |
andrewboyson | 8:8b5e0bb28da0 | 60 | static int iDnsName; |
andrewboyson | 8:8b5e0bb28da0 | 61 | static int iDnsQuery; |
andrewboyson | 8:8b5e0bb28da0 | 62 | static int iDnsReply; |
andrewboyson | 8:8b5e0bb28da0 | 63 | static int iDnsServer; |
andrewboyson | 8:8b5e0bb28da0 | 64 | static int iNtp; |
andrewboyson | 8:8b5e0bb28da0 | 65 | static int iDhcp; |
andrewboyson | 8:8b5e0bb28da0 | 66 | static int iNsRecvSol; |
andrewboyson | 8:8b5e0bb28da0 | 67 | static int iNsRecvAdv; |
andrewboyson | 8:8b5e0bb28da0 | 68 | static int iNsSendSol; |
andrewboyson | 8:8b5e0bb28da0 | 69 | static int iNr4; |
andrewboyson | 8:8b5e0bb28da0 | 70 | static int iNr6; |
andrewboyson | 8:8b5e0bb28da0 | 71 | static int iNtpClient; |
andrewboyson | 8:8b5e0bb28da0 | 72 | static int iEcho4; |
andrewboyson | 8:8b5e0bb28da0 | 73 | static int iEcho6; |
andrewboyson | 8:8b5e0bb28da0 | 74 | static int iDest6; |
andrewboyson | 8:8b5e0bb28da0 | 75 | static int iRa; |
andrewboyson | 8:8b5e0bb28da0 | 76 | static int iRs; |
andrewboyson | 8:8b5e0bb28da0 | 77 | static int iAr4; |
andrewboyson | 8:8b5e0bb28da0 | 78 | static int iAr6; |
andrewboyson | 8:8b5e0bb28da0 | 79 | static int iArp; |
andrewboyson | 8:8b5e0bb28da0 | 80 | static int iIp4; |
andrewboyson | 8:8b5e0bb28da0 | 81 | static int iIp6; |
andrewboyson | 8:8b5e0bb28da0 | 82 | static int iUdp; |
andrewboyson | 8:8b5e0bb28da0 | 83 | static int iTcp; |
andrewboyson | 8:8b5e0bb28da0 | 84 | static int iHttp; |
andrewboyson | 8:8b5e0bb28da0 | 85 | static int iTftp; |
andrewboyson | 8:8b5e0bb28da0 | 86 | |
andrewboyson | 8:8b5e0bb28da0 | 87 | //Clock settings |
andrewboyson | 0:3c04f4b47041 | 88 | void SetClockSlewDivisor (int value) { ClockSlewDivisor = value; FramWrite(iClockSlewDivisor, 4, &ClockSlewDivisor ); } |
andrewboyson | 0:3c04f4b47041 | 89 | void SetClockSlewMaxMs (int value) { ClockSlewMaxMs = value; FramWrite(iClockSlewMaxMs, 4, &ClockSlewMaxMs ); } |
andrewboyson | 0:3c04f4b47041 | 90 | void SetClockPpbDivisor (int value) { ClockPpbDivisor = value; FramWrite(iClockPpbDivisor, 4, &ClockPpbDivisor ); } |
andrewboyson | 0:3c04f4b47041 | 91 | void SetClockPpbChangeMax (int value) { ClockPpbChangeMax = value; FramWrite(iClockPpbChangeMax, 4, &ClockPpbChangeMax ); } |
andrewboyson | 0:3c04f4b47041 | 92 | void SetClockSyncedLimitNs (int value) { ClockSyncedLimitNs = value; FramWrite(iClockSyncedLimitNs, 4, &ClockSyncedLimitNs ); } |
andrewboyson | 0:3c04f4b47041 | 93 | void SetClockSyncedLimitPpb (int value) { ClockSyncedLimitPpb = value; FramWrite(iClockSyncedLimitPpb, 4, &ClockSyncedLimitPpb ); } |
andrewboyson | 0:3c04f4b47041 | 94 | void SetClockSyncedHysterisNs (int value) { ClockSyncedHysterisNs = value; FramWrite(iClockSyncedHysterisNs, 4, &ClockSyncedHysterisNs ); } |
andrewboyson | 0:3c04f4b47041 | 95 | void SetClockSyncedHysterisPpb(int value) { ClockSyncedHysterisPpb = value; FramWrite(iClockSyncedHysterisPpb, 4, &ClockSyncedHysterisPpb); } |
andrewboyson | 0:3c04f4b47041 | 96 | void SetClockMaxOffsetSecs (int value) { ClockMaxOffsetSecs = value; FramWrite(iClockMaxOffsetSecs, 4, &ClockMaxOffsetSecs ); } |
andrewboyson | 8:8b5e0bb28da0 | 97 | void ChgTraceSync () { SyncTrace = !SyncTrace ; FramWrite(iSync, 1, &SyncTrace ); } |
andrewboyson | 8:8b5e0bb28da0 | 98 | |
andrewboyson | 8:8b5e0bb28da0 | 99 | //Heating settings |
andrewboyson | 8:8b5e0bb28da0 | 100 | void ChgTraceOneWire () { OneWireTrace = !OneWireTrace ; FramWrite(iOneWire, 1, &OneWireTrace ); } |
andrewboyson | 8:8b5e0bb28da0 | 101 | |
andrewboyson | 8:8b5e0bb28da0 | 102 | //Net settings |
andrewboyson | 8:8b5e0bb28da0 | 103 | void ChgDnsSendRequestsViaIp4 () { DnsSendRequestsViaIp4 = !DnsSendRequestsViaIp4; FramWrite( iDnsSendRequestsViaIp4, 1, &DnsSendRequestsViaIp4); } |
andrewboyson | 8:8b5e0bb28da0 | 104 | void ChgNtpSendRequestsViaIp4 () { NtpSendRequestsViaIp4 = !NtpSendRequestsViaIp4; FramWrite( iNtpSendRequestsViaIp4, 1, &NtpSendRequestsViaIp4); } |
andrewboyson | 8:8b5e0bb28da0 | 105 | void ChgTftpSendRequestsViaIp4 () { TftpSendRequestsViaIp4 = !TftpSendRequestsViaIp4; FramWrite(iTftpSendRequestsViaIp4, 1, &TftpSendRequestsViaIp4); } |
andrewboyson | 8:8b5e0bb28da0 | 106 | |
andrewboyson | 8:8b5e0bb28da0 | 107 | void SetTraceNetHost (char* text) |
andrewboyson | 8:8b5e0bb28da0 | 108 | { |
andrewboyson | 8:8b5e0bb28da0 | 109 | int value = strtol(text, NULL, 16); |
andrewboyson | 8:8b5e0bb28da0 | 110 | NetTraceHost[1] = value & 0xFF; |
andrewboyson | 8:8b5e0bb28da0 | 111 | NetTraceHost[0] = (value >> 8) & 0xFF; |
andrewboyson | 8:8b5e0bb28da0 | 112 | FramWrite(iNetHost, 2, NetTraceHost); |
andrewboyson | 8:8b5e0bb28da0 | 113 | } |
andrewboyson | 8:8b5e0bb28da0 | 114 | void ChgLogUart () { LogUart = !LogUart; FramWrite(iLogUart, 1, &LogUart ); } |
andrewboyson | 8:8b5e0bb28da0 | 115 | void ChgTraceNetStack () { NetTraceStack = !NetTraceStack; FramWrite(iNetStack, 1, &NetTraceStack ); } |
andrewboyson | 8:8b5e0bb28da0 | 116 | void ChgTraceNetNewLine() { NetTraceNewLine = !NetTraceNewLine; FramWrite(iNetNewLine, 1, &NetTraceNewLine); } |
andrewboyson | 8:8b5e0bb28da0 | 117 | void ChgTraceNetVerbose() { NetTraceVerbose = !NetTraceVerbose; FramWrite(iNetVerbose, 1, &NetTraceVerbose); } |
andrewboyson | 8:8b5e0bb28da0 | 118 | void ChgTraceLink () { LinkTrace = !LinkTrace; FramWrite(iLink, 1, &LinkTrace ); } |
andrewboyson | 8:8b5e0bb28da0 | 119 | void ChgTraceDnsName () { DnsNameTrace = !DnsNameTrace; FramWrite(iDnsName, 1, &DnsNameTrace ); } |
andrewboyson | 8:8b5e0bb28da0 | 120 | void ChgTraceDnsQuery () { DnsQueryTrace = !DnsQueryTrace; FramWrite(iDnsQuery, 1, &DnsQueryTrace ); } |
andrewboyson | 8:8b5e0bb28da0 | 121 | void ChgTraceDnsReply () { DnsReplyTrace = !DnsReplyTrace; FramWrite(iDnsReply, 1, &DnsReplyTrace ); } |
andrewboyson | 8:8b5e0bb28da0 | 122 | void ChgTraceDnsServer () { DnsServerTrace = !DnsServerTrace; FramWrite(iDnsServer, 1, &DnsServerTrace ); } |
andrewboyson | 8:8b5e0bb28da0 | 123 | void ChgTraceNtp () { NtpTrace = !NtpTrace; FramWrite(iNtp, 1, &NtpTrace ); } |
andrewboyson | 8:8b5e0bb28da0 | 124 | void ChgTraceDhcp () { DhcpTrace = !DhcpTrace; FramWrite(iDhcp, 1, &DhcpTrace ); } |
andrewboyson | 8:8b5e0bb28da0 | 125 | void ChgTraceNsRecvSol () { NsTraceRecvSol = !NsTraceRecvSol; FramWrite(iNsRecvSol, 1, &NsTraceRecvSol); } |
andrewboyson | 8:8b5e0bb28da0 | 126 | void ChgTraceNsRecvAdv () { NsTraceRecvAdv = !NsTraceRecvAdv; FramWrite(iNsRecvAdv, 1, &NsTraceRecvAdv); } |
andrewboyson | 8:8b5e0bb28da0 | 127 | void ChgTraceNsSendSol () { NsTraceSendSol = !NsTraceSendSol; FramWrite(iNsSendSol, 1, &NsTraceSendSol); } |
andrewboyson | 8:8b5e0bb28da0 | 128 | void ChgTraceNr4 () { Nr4Trace = !Nr4Trace ; FramWrite(iNr4, 1, &Nr4Trace ); } |
andrewboyson | 8:8b5e0bb28da0 | 129 | void ChgTraceNr6 () { Nr6Trace = !Nr6Trace ; FramWrite(iNr6, 1, &Nr6Trace ); } |
andrewboyson | 8:8b5e0bb28da0 | 130 | void ChgTraceNtpClient () { NtpClientTrace = !NtpClientTrace ; FramWrite(iNtpClient, 1, &NtpClientTrace ); } |
andrewboyson | 8:8b5e0bb28da0 | 131 | void ChgTraceEcho4 () { Echo4Trace = !Echo4Trace ; FramWrite(iEcho4, 1, &Echo4Trace ); } |
andrewboyson | 8:8b5e0bb28da0 | 132 | void ChgTraceEcho6 () { Echo6Trace = !Echo6Trace ; FramWrite(iEcho6, 1, &Echo6Trace ); } |
andrewboyson | 8:8b5e0bb28da0 | 133 | void ChgTraceDest6 () { Dest6Trace = !Dest6Trace ; FramWrite(iDest6, 1, &Dest6Trace ); } |
andrewboyson | 8:8b5e0bb28da0 | 134 | void ChgTraceRa () { RaTrace = !RaTrace ; FramWrite(iRa, 1, &RaTrace ); } |
andrewboyson | 8:8b5e0bb28da0 | 135 | void ChgTraceRs () { RsTrace = !RsTrace ; FramWrite(iRs, 1, &RsTrace ); } |
andrewboyson | 8:8b5e0bb28da0 | 136 | void ChgTraceAr4 () { Ar4Trace = !Ar4Trace ; FramWrite(iAr4, 1, &Ar4Trace ); } |
andrewboyson | 8:8b5e0bb28da0 | 137 | void ChgTraceAr6 () { Ar6Trace = !Ar6Trace ; FramWrite(iAr6, 1, &Ar6Trace ); } |
andrewboyson | 8:8b5e0bb28da0 | 138 | void ChgTraceArp () { ArpTrace = !ArpTrace ; FramWrite(iArp, 1, &ArpTrace ); } |
andrewboyson | 8:8b5e0bb28da0 | 139 | void ChgTraceIp4 () { Ip4Trace = !Ip4Trace ; FramWrite(iIp4, 1, &Ip4Trace ); } |
andrewboyson | 8:8b5e0bb28da0 | 140 | void ChgTraceIp6 () { Ip6Trace = !Ip6Trace ; FramWrite(iIp6, 1, &Ip6Trace ); } |
andrewboyson | 8:8b5e0bb28da0 | 141 | void ChgTraceUdp () { UdpTrace = !UdpTrace ; FramWrite(iUdp, 1, &UdpTrace ); } |
andrewboyson | 8:8b5e0bb28da0 | 142 | void ChgTraceTcp () { TcpTrace = !TcpTrace ; FramWrite(iTcp, 1, &TcpTrace ); } |
andrewboyson | 8:8b5e0bb28da0 | 143 | void ChgTraceHttp () { HttpTrace = !HttpTrace ; FramWrite(iHttp, 1, &HttpTrace ); } |
andrewboyson | 8:8b5e0bb28da0 | 144 | void ChgTraceTftp () { TftpTrace = !TftpTrace ; FramWrite(iTftp, 1, &TftpTrace ); } |
andrewboyson | 0:3c04f4b47041 | 145 | |
andrewboyson | 0:3c04f4b47041 | 146 | int SettingsInit() |
andrewboyson | 0:3c04f4b47041 | 147 | { |
andrewboyson | 0:3c04f4b47041 | 148 | int address; |
andrewboyson | 0:3c04f4b47041 | 149 | int32_t def4; |
andrewboyson | 0:3c04f4b47041 | 150 | char b; |
andrewboyson | 0:3c04f4b47041 | 151 | |
andrewboyson | 8:8b5e0bb28da0 | 152 | def4 = 10; address = FramLoad( 4, &ClockSlewDivisor, &def4); if (address < 0) return -1; iClockSlewDivisor = address; |
andrewboyson | 8:8b5e0bb28da0 | 153 | def4 = 20; address = FramLoad( 4, &ClockSlewMaxMs, &def4); if (address < 0) return -1; iClockSlewMaxMs = address; |
andrewboyson | 8:8b5e0bb28da0 | 154 | def4 = 1000; address = FramLoad( 4, &ClockPpbDivisor, &def4); if (address < 0) return -1; iClockPpbDivisor = address; |
andrewboyson | 8:8b5e0bb28da0 | 155 | def4 = 10000000; address = FramLoad( 4, &ClockPpbChangeMax, &def4); if (address < 0) return -1; iClockPpbChangeMax = address; |
andrewboyson | 8:8b5e0bb28da0 | 156 | def4 = 100000; address = FramLoad( 4, &ClockSyncedLimitNs, &def4); if (address < 0) return -1; iClockSyncedLimitNs = address; |
andrewboyson | 8:8b5e0bb28da0 | 157 | def4 = 100000; address = FramLoad( 4, &ClockSyncedLimitPpb, &def4); if (address < 0) return -1; iClockSyncedLimitPpb = address; |
andrewboyson | 8:8b5e0bb28da0 | 158 | def4 = 10000; address = FramLoad( 4, &ClockSyncedHysterisNs, &def4); if (address < 0) return -1; iClockSyncedHysterisNs = address; |
andrewboyson | 8:8b5e0bb28da0 | 159 | def4 = 1000; address = FramLoad( 4, &ClockSyncedHysterisPpb, &def4); if (address < 0) return -1; iClockSyncedHysterisPpb = address; |
andrewboyson | 8:8b5e0bb28da0 | 160 | def4 = 3; address = FramLoad( 4, &ClockMaxOffsetSecs, &def4); if (address < 0) return -1; iClockMaxOffsetSecs = address; |
andrewboyson | 8:8b5e0bb28da0 | 161 | address = FramLoad( 1, &b, NULL); SyncTrace = b; if (address < 0) return -1; iSync = address; |
andrewboyson | 8:8b5e0bb28da0 | 162 | |
andrewboyson | 8:8b5e0bb28da0 | 163 | address = FramLoad( 1, &b, NULL); OneWireTrace = b; if (address < 0) return -1; iOneWire = address; |
andrewboyson | 0:3c04f4b47041 | 164 | |
andrewboyson | 8:8b5e0bb28da0 | 165 | address = FramLoad( 1, &b, NULL); DnsSendRequestsViaIp4 = b; if (address < 0) return -1; iDnsSendRequestsViaIp4 = address; |
andrewboyson | 8:8b5e0bb28da0 | 166 | address = FramLoad( 1, &b, NULL); NtpSendRequestsViaIp4 = b; if (address < 0) return -1; iNtpSendRequestsViaIp4 = address; |
andrewboyson | 8:8b5e0bb28da0 | 167 | address = FramLoad( 1, &b, NULL); TftpSendRequestsViaIp4 = b; if (address < 0) return -1; iTftpSendRequestsViaIp4 = address; |
andrewboyson | 8:8b5e0bb28da0 | 168 | address = FramLoad( 1, &b, NULL); LogUart = b; if (address < 0) return -1; iLogUart = address; |
andrewboyson | 8:8b5e0bb28da0 | 169 | address = FramLoad( 2, NetTraceHost, NULL); if (address < 0) return -1; iNetHost = address; |
andrewboyson | 8:8b5e0bb28da0 | 170 | address = FramLoad( 1, &b, NULL); NetTraceStack = b; if (address < 0) return -1; iNetStack = address; |
andrewboyson | 8:8b5e0bb28da0 | 171 | address = FramLoad( 1, &b, NULL); NetTraceNewLine = b; if (address < 0) return -1; iNetNewLine = address; |
andrewboyson | 8:8b5e0bb28da0 | 172 | address = FramLoad( 1, &b, NULL); NetTraceVerbose = b; if (address < 0) return -1; iNetVerbose = address; |
andrewboyson | 8:8b5e0bb28da0 | 173 | address = FramLoad( 1, &b, NULL); LinkTrace = b; if (address < 0) return -1; iLink = address; |
andrewboyson | 8:8b5e0bb28da0 | 174 | address = FramLoad( 1, &b, NULL); DnsNameTrace = b; if (address < 0) return -1; iDnsName = address; |
andrewboyson | 8:8b5e0bb28da0 | 175 | address = FramLoad( 1, &b, NULL); DnsQueryTrace = b; if (address < 0) return -1; iDnsQuery = address; |
andrewboyson | 8:8b5e0bb28da0 | 176 | address = FramLoad( 1, &b, NULL); DnsReplyTrace = b; if (address < 0) return -1; iDnsReply = address; |
andrewboyson | 8:8b5e0bb28da0 | 177 | address = FramLoad( 1, &b, NULL); DnsServerTrace = b; if (address < 0) return -1; iDnsServer = address; |
andrewboyson | 8:8b5e0bb28da0 | 178 | address = FramLoad( 1, &b, NULL); NtpTrace = b; if (address < 0) return -1; iNtp = address; |
andrewboyson | 8:8b5e0bb28da0 | 179 | address = FramLoad( 1, &b, NULL); DhcpTrace = b; if (address < 0) return -1; iDhcp = address; |
andrewboyson | 8:8b5e0bb28da0 | 180 | address = FramLoad( 1, &b, NULL); NsTraceRecvSol = b; if (address < 0) return -1; iNsRecvSol = address; |
andrewboyson | 8:8b5e0bb28da0 | 181 | address = FramLoad( 1, &b, NULL); NsTraceRecvAdv = b; if (address < 0) return -1; iNsRecvAdv = address; |
andrewboyson | 8:8b5e0bb28da0 | 182 | address = FramLoad( 1, &b, NULL); NsTraceSendSol = b; if (address < 0) return -1; iNsSendSol = address; |
andrewboyson | 8:8b5e0bb28da0 | 183 | address = FramLoad( 1, &b, NULL); Nr4Trace = b; if (address < 0) return -1; iNr4 = address; |
andrewboyson | 8:8b5e0bb28da0 | 184 | address = FramLoad( 1, &b, NULL); Nr6Trace = b; if (address < 0) return -1; iNr6 = address; |
andrewboyson | 8:8b5e0bb28da0 | 185 | address = FramLoad( 1, &b, NULL); NtpClientTrace = b; if (address < 0) return -1; iNtpClient = address; |
andrewboyson | 8:8b5e0bb28da0 | 186 | address = FramLoad( 1, &b, NULL); Echo4Trace = b; if (address < 0) return -1; iEcho4 = address; |
andrewboyson | 8:8b5e0bb28da0 | 187 | address = FramLoad( 1, &b, NULL); Echo6Trace = b; if (address < 0) return -1; iEcho6 = address; |
andrewboyson | 8:8b5e0bb28da0 | 188 | address = FramLoad( 1, &b, NULL); Dest6Trace = b; if (address < 0) return -1; iDest6 = address; |
andrewboyson | 8:8b5e0bb28da0 | 189 | address = FramLoad( 1, &b, NULL); RaTrace = b; if (address < 0) return -1; iRa = address; |
andrewboyson | 8:8b5e0bb28da0 | 190 | address = FramLoad( 1, &b, NULL); RsTrace = b; if (address < 0) return -1; iRs = address; |
andrewboyson | 8:8b5e0bb28da0 | 191 | address = FramLoad( 1, &b, NULL); Ar4Trace = b; if (address < 0) return -1; iAr4 = address; |
andrewboyson | 8:8b5e0bb28da0 | 192 | address = FramLoad( 1, &b, NULL); Ar6Trace = b; if (address < 0) return -1; iAr6 = address; |
andrewboyson | 8:8b5e0bb28da0 | 193 | address = FramLoad( 1, &b, NULL); ArpTrace = b; if (address < 0) return -1; iArp = address; |
andrewboyson | 8:8b5e0bb28da0 | 194 | address = FramLoad( 1, &b, NULL); Ip4Trace = b; if (address < 0) return -1; iIp4 = address; |
andrewboyson | 8:8b5e0bb28da0 | 195 | address = FramLoad( 1, &b, NULL); Ip6Trace = b; if (address < 0) return -1; iIp6 = address; |
andrewboyson | 8:8b5e0bb28da0 | 196 | address = FramLoad( 1, &b, NULL); UdpTrace = b; if (address < 0) return -1; iUdp = address; |
andrewboyson | 8:8b5e0bb28da0 | 197 | address = FramLoad( 1, &b, NULL); TcpTrace = b; if (address < 0) return -1; iTcp = address; |
andrewboyson | 8:8b5e0bb28da0 | 198 | address = FramLoad( 1, &b, NULL); HttpTrace = b; if (address < 0) return -1; iHttp = address; |
andrewboyson | 8:8b5e0bb28da0 | 199 | address = FramLoad( 1, &b, NULL); TftpTrace = b; if (address < 0) return -1; iTftp = address; |
andrewboyson | 8:8b5e0bb28da0 | 200 | |
andrewboyson | 0:3c04f4b47041 | 201 | return 0; |
andrewboyson | 0:3c04f4b47041 | 202 | } |