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

net.h

Committer:
andrewboyson
Date:
2017-05-05
Revision:
14:e75a59c1123d
Parent:
13:9cd54f7db57a
Child:
15:6ca6778168b1

File content as of revision 14:e75a59c1123d:


extern  int16_t NetToHost16(int16_t n);
extern  int32_t NetToHost32(int32_t n);
extern  int64_t NetToHost64(int64_t n);
extern uint16_t NetCheckSum(int count, void* pData);
extern uint16_t NetCheckSumTwo(int count1, void* pData1, int count2, void* pData2);

extern int NetInit(char* name);
extern int NetMain();

extern char* NetName;


#define DO_NOTHING       0
#define   UNICAST        1
#define   UNICAST_DNS    2
#define   UNICAST_DHCP   3
#define MULTICAST_NODE   4
#define MULTICAST_ROUTER 5
#define MULTICAST_MDNS   6
#define MULTICAST_LLMNR  7
#define SOLICITED_NODE   8
#define BROADCAST        9