Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: oldheating gps motorhome heating
base/net-trace/web-trace-ajax.c
- Committer:
- andrewboyson
- Date:
- 2020-04-02
- Revision:
- 136:be1d42268b5d
- Parent:
- 130:9a5b8fe308f1
- Child:
- 142:b472ba95b018
File content as of revision 136:be1d42268b5d:
#include <stdint.h>
#include "http.h"
#include "log.h"
#include "net.h"
#include "link.h"
#include "dns.h"
#include "dnsname.h"
#include "dnsquery.h"
#include "dnsreply.h"
#include "dnsserver.h"
#include "ntp.h"
#include "dhcp.h"
#include "ns.h"
#include "nr4.h"
#include "nr6.h"
#include "echo4.h"
#include "echo6.h"
#include "dest6.h"
#include "ra.h"
#include "rs.h"
#include "ar4.h"
#include "ar6.h"
#include "arp.h"
#include "ip4.h"
#include "ip6.h"
#include "udp.h"
#include "tcp.h"
#include "web.h"
#include "tftp.h"
#include "ntpclient.h"
void WebTraceAjax()
{
HttpOk("text/plain; charset=UTF-8", "no-cache", NULL, NULL);
char nibble;
nibble = 0; //0
if ( DnsSendRequestsViaIp4) nibble |= 2;
if ( NtpClientQuerySendRequestsViaIp4) nibble |= 4;
if (TftpSendRequestsViaIp4) nibble |= 8;
HttpAddNibbleAsHex(nibble);
HttpAddByteAsHex(NetTraceHost[0]); //1, 2
HttpAddByteAsHex(NetTraceHost[1]); //3, 4
nibble = 0; //5
if (NetTraceStack ) nibble |= 1;
if (NetTraceNewLine ) nibble |= 2;
if (NetTraceVerbose ) nibble |= 4;
if (LinkTrace ) nibble |= 8;
HttpAddNibbleAsHex(nibble);
nibble = 0; //6
if (DnsNameTrace ) nibble |= 1;
if (DnsQueryTrace ) nibble |= 2;
if (DnsReplyTrace ) nibble |= 4;
if (DnsServerTrace ) nibble |= 8;
HttpAddNibbleAsHex(nibble);
nibble = 0; //7
if (NtpTrace ) nibble |= 1;
if (DhcpTrace ) nibble |= 2;
if (NsTraceRecvSol ) nibble |= 4;
if (NsTraceRecvAdv ) nibble |= 8;
HttpAddNibbleAsHex(nibble);
nibble = 0; //8
if (NsTraceSendSol ) nibble |= 1;
if (Nr4Trace ) nibble |= 2;
if (Nr6Trace ) nibble |= 4;
if (NtpClientTrace ) nibble |= 8;
HttpAddNibbleAsHex(nibble);
nibble = 0; //9
if (Echo4Trace ) nibble |= 4;
if (Echo6Trace ) nibble |= 8;
HttpAddNibbleAsHex(nibble);
nibble = 0; //10
if (Dest6Trace ) nibble |= 1;
if (RaTrace ) nibble |= 2;
if (RsTrace ) nibble |= 4;
if (Ar4Trace ) nibble |= 8;
HttpAddNibbleAsHex(nibble);
nibble = 0; //11
if (Ar6Trace ) nibble |= 1;
if (ArpTrace ) nibble |= 2;
if (Ip4Trace ) nibble |= 4;
if (Ip6Trace ) nibble |= 8;
HttpAddNibbleAsHex(nibble);
nibble = 0; //12
if (UdpTrace ) nibble |= 1;
if (TcpTrace ) nibble |= 2;
if (WebTrace ) nibble |= 4;
if (TftpTrace ) nibble |= 8;
HttpAddNibbleAsHex(nibble);
}