7 releases

0.2.5 Dec 14, 2024
0.2.4 Jul 10, 2024
0.2.3 Feb 19, 2024
0.2.2 Mar 24, 2023
0.1.0 Dec 1, 2022

#1327 in Network programming

Download history 838/week @ 2024-09-21 1011/week @ 2024-09-28 780/week @ 2024-10-05 997/week @ 2024-10-12 664/week @ 2024-10-19 1009/week @ 2024-10-26 943/week @ 2024-11-02 968/week @ 2024-11-09 938/week @ 2024-11-16 891/week @ 2024-11-23 790/week @ 2024-11-30 803/week @ 2024-12-07 1006/week @ 2024-12-14 627/week @ 2024-12-21 584/week @ 2024-12-28 867/week @ 2025-01-04

3,173 downloads per month
Used in 2 crates

Apache-2.0

220KB
2.5K SLoC

Mozim -- DHCP Client Library

Still doing code sign, no real work this project can do yet. Check again in 2022.

DONE:

  • raw socket with BPF applied and accepting all mac address.
  • DHCP discovery and request.
  • Renew, rebind.
  • DHCP IP apply via cli tool mzc.
  • Route
  • Timeout and retry

TODO:

Try out

# Below script will create veth eth1/eth1.ep.
# The `eth1.ep` is DHCP server interface running dnsmasq in `mozim` network
# namespace.
sudo ./utils/test_env_mozim &
cargo run --example mozim_async

Dependencies

~16–24MB
~381K SLoC