diff options
| author | Your Name <you@example.com> | 2026-05-23 04:50:26 +0530 |
|---|---|---|
| committer | Your Name <you@example.com> | 2026-05-23 04:50:26 +0530 |
| commit | 9330b01c28aebc865a3c0a51df8730196cb4152e (patch) | |
| tree | 60c3ae35b2550c737c228e81fd342c8d07af11af /tollgate_core/src/tollgate_firewall.h | |
| parent | 851801f50f1282ab1db5f8a241dbd245f59e447e (diff) | |
Phase 6a-6d: Consolidate and clean up
6a: Delete dead standalone tollgate_core/ (12 files, never compiled)
6b: Rewrite dns_server.c as thin shim to component's tollgate_core_dns
- Fix component DNS to bind to AP IP instead of INADDR_ANY
6c: Rewrite stratum_proxy.c as thin shim with struct cast to component types
6d: Move sandbox logic into component's tollgate_core_firewall
- Add tollgate_core_fw_set_sandbox_ports/set_sandbox_mint_access
- Add is_sandbox_allowed() to component's ip4_canforward_filter
- Clean main/firewall.c to delegate filter to component
- Remove redundant DNS auth double-calls from main firewall
Add ROADMAP.md with full extraction plan and checklists
All 21 unit tests pass. ESP-IDF build passes.
Diffstat (limited to 'tollgate_core/src/tollgate_firewall.h')
| -rw-r--r-- | tollgate_core/src/tollgate_firewall.h | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/tollgate_core/src/tollgate_firewall.h b/tollgate_core/src/tollgate_firewall.h deleted file mode 100644 index 7df8a45..0000000 --- a/tollgate_core/src/tollgate_firewall.h +++ /dev/null | |||
| @@ -1,21 +0,0 @@ | |||
| 1 | #ifndef TOLLGATE_CORE_FIREWALL_H | ||
| 2 | #define TOLLGATE_CORE_FIREWALL_H | ||
| 3 | |||
| 4 | #include <stdint.h> | ||
| 5 | #include <stdbool.h> | ||
| 6 | |||
| 7 | #define TG_FW_MAX_MAC_LEN 18 | ||
| 8 | |||
| 9 | int tg_firewall_init(uint32_t ap_ip); | ||
| 10 | void tg_firewall_grant(uint32_t client_ip); | ||
| 11 | void tg_firewall_revoke(uint32_t client_ip); | ||
| 12 | int tg_firewall_revoke_all(void); | ||
| 13 | bool tg_firewall_is_allowed(uint32_t client_ip); | ||
| 14 | bool tg_firewall_is_mac_allowed(const char *mac); | ||
| 15 | int tg_firewall_client_count(void); | ||
| 16 | int tg_firewall_get_mac_for_ip(uint32_t client_ip, char *mac_out, int mac_out_size); | ||
| 17 | void tg_firewall_set_mining_port(uint16_t port); | ||
| 18 | void tg_firewall_set_sandbox_mint_access(bool enable); | ||
| 19 | int tg_firewall_filter_packet(const uint8_t *payload, int payload_len); | ||
| 20 | |||
| 21 | #endif | ||