|
NDN-DPDK
High-Speed Named Data Networking Forwarder
|
Files | |
| api.h | |
| delay.c | |
| empty.c | |
| fastroute.c | |
| multicast.c | |
| reject.c | |
| roundrobin.c | |
| sequential.c | |
| weighted.c | |
This directory contains forwarding strategies, implemented using the strategy API defined in api.h.
To implement a strategy named foo:
1. Add foo.c, and include api.h. 2. Implement the SgMain function as declared in api.h. 3. If the strategy accepts JSON parameters, implement the SgInit function and provide a JSON schema via SGINIT_SCHEMA macro. 4. All other functions must be marked as SUBROUTINE.