| Commit message (Collapse) | Author | Age | Files | Lines |
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Introduce `EvictPriority` enum.
- Optimize `is_stale` and `evict_priority` by passing entry references
to eliminate redundant memory loads.
pkt: hoptab: derive stale age from CAP
Replace the magic `64` threshold with `STALE_AGE = CAP >> 1` and make
the stale check inclusive (`age >= STALE_AGE`). This keeps the
eviction/staleness policy consistent when CAP changes and documents
the intended half-table age cutoff.
pkt: hoptab: add compile time assertion for CAP
pkt: hoptab: add comments
|
| |
|
|
|
| |
Use ST_OCCUPIED instead of ST_EMPTY to avoid skipping valid entries;
add debug logs
|
|
|
- add pkt::hoptab: small fixed-size hash table keyed by
IP (v4-mapped/v6) with TTL-based staleness + simple eviction
- store (src_ip -> inferred hop) on SYN/ACK from :443
- lookup (dst_ip -> hop) when crafting fake ClientHello, fallback to
--fake-ttl on miss
- add PktView helpers: ttl(), saddr(), daddr()
|