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
action.h@195:bd5b123143ca, 2021-04-18 (annotated)
- Committer:
- andrewboyson
- Date:
- Sun Apr 18 19:04:48 2021 +0000
- Revision:
- 195:bd5b123143ca
- Parent:
- 105:ef2dd21d808c
Added a user module to allow user defined UDPs port to be used - in this case for a WIZ module.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
andrewboyson | 195:bd5b123143ca | 1 | #include <stdbool.h> |
andrewboyson | 195:bd5b123143ca | 2 | |
andrewboyson | 37:793b39683406 | 3 | extern int ActionMakeFromDestAndTrace(int dest, bool trace); |
andrewboyson | 37:793b39683406 | 4 | extern int ActionGetDestPart (int action); |
andrewboyson | 37:793b39683406 | 5 | extern bool ActionGetTracePart (int action); |
andrewboyson | 37:793b39683406 | 6 | |
andrewboyson | 37:793b39683406 | 7 | #define DO_NOTHING 0 |
andrewboyson | 37:793b39683406 | 8 | #define UNICAST 1 |
andrewboyson | 37:793b39683406 | 9 | #define UNICAST_DNS 2 |
andrewboyson | 37:793b39683406 | 10 | #define UNICAST_DHCP 3 |
andrewboyson | 37:793b39683406 | 11 | #define UNICAST_NTP 4 |
andrewboyson | 57:e0fb648acf48 | 12 | #define UNICAST_TFTP 5 |
andrewboyson | 195:bd5b123143ca | 13 | #define UNICAST_USER 6 |
andrewboyson | 195:bd5b123143ca | 14 | #define MULTICAST_NODE 7 |
andrewboyson | 195:bd5b123143ca | 15 | #define MULTICAST_ROUTER 8 |
andrewboyson | 195:bd5b123143ca | 16 | #define MULTICAST_MDNS 9 |
andrewboyson | 195:bd5b123143ca | 17 | #define MULTICAST_LLMNR 10 |
andrewboyson | 195:bd5b123143ca | 18 | #define MULTICAST_NTP 11 |
andrewboyson | 195:bd5b123143ca | 19 | #define SOLICITED_NODE 12 |
andrewboyson | 195:bd5b123143ca | 20 | #define BROADCAST 13 |
andrewboyson | 37:793b39683406 | 21 | |
andrewboyson | 37:793b39683406 | 22 | /* |
andrewboyson | 37:793b39683406 | 23 | If DO_NOTHING then no other flags may be set. |
andrewboyson | 37:793b39683406 | 24 | This allows action to be checked for DO_NOTHING without stripping the flags. |
andrewboyson | 37:793b39683406 | 25 | Flags must be stripped before using the destination part. |
andrewboyson | 37:793b39683406 | 26 | */ |