A stack which works with or without an Mbed os library. Provides IPv4 or IPv6 with a full 1500 byte buffer.

Dependents:   oldheating gps motorhome heating

Committer:
andrewboyson
Date:
Thu Dec 14 20:55:40 2017 +0000
Revision:
59:e0e556c8bd46
Parent:
57:e0fb648acf48
Child:
61:aad055f1b0d1
Added buffer length to help avoid over runs

Who changed what in which revision?

UserRevisionLine numberNew contents of line
andrewboyson 15:6ca6778168b1 1 #pragma once
andrewboyson 15:6ca6778168b1 2 #include "mbed.h"
andrewboyson 2:849103b5a16d 3
andrewboyson 42:222a4f45f916 4 extern bool NetPreferIp4Polled;
andrewboyson 37:793b39683406 5
andrewboyson 43:bc028d5a6424 6 extern bool NetTraceStack;
andrewboyson 43:bc028d5a6424 7 extern bool NetTraceNewLine;
andrewboyson 43:bc028d5a6424 8 extern bool NetTraceVerbose;
andrewboyson 57:e0fb648acf48 9 extern char NetTraceHost[];
andrewboyson 57:e0fb648acf48 10 extern bool NetTraceHostGetMatched();
andrewboyson 57:e0fb648acf48 11 extern void NetTraceHostResetMatched();
andrewboyson 57:e0fb648acf48 12 extern void NetTraceHostCheckIp6(char* ip);
andrewboyson 57:e0fb648acf48 13 extern void NetTraceHostCheckMac(char* mac);
andrewboyson 37:793b39683406 14
andrewboyson 0:faa09bd4e6bf 15 extern int16_t NetToHost16(int16_t n);
andrewboyson 0:faa09bd4e6bf 16 extern int32_t NetToHost32(int32_t n);
andrewboyson 0:faa09bd4e6bf 17 extern int64_t NetToHost64(int64_t n);
andrewboyson 0:faa09bd4e6bf 18 extern uint16_t NetCheckSum(int count, void* pData);
andrewboyson 2:849103b5a16d 19 extern uint16_t NetCheckSumTwo(int count1, void* pData1, int count2, void* pData2);
andrewboyson 2:849103b5a16d 20
andrewboyson 59:e0e556c8bd46 21 extern int NetInit(const char* name4, const char* name6);
andrewboyson 7:b794780e33b4 22 extern int NetMain();
andrewboyson 7:b794780e33b4 23
andrewboyson 59:e0e556c8bd46 24 extern const char* NetName4;
andrewboyson 59:e0e556c8bd46 25 extern const char* NetName6;