Commit 488871c
committed
init: embed a simple DHCP client
If there's a eth0 interface present, and one of the interfaces has been
configured with the newly introduced NET_FLAG_DHCP_CLIENT flag, the
embedded dhcp client will try to obtain an address.
For 2.x we should be more flexible and actually allow both dhcp and
static IP configuration on specific interfaces (identified by their
MAC addresses, since ifnames aren't deterministic), but this should
be good enough for 1.x.
Signed-off-by: Sergio Lopez <[email protected]>1 parent eaac662 commit 488871c
8 files changed
Lines changed: 627 additions & 5 deletions
File tree
- include
- init
- src
- devices
- libkrun/src
- vmm/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| 329 | + | |
329 | 330 | | |
330 | 331 | | |
331 | 332 | | |
| |||
0 commit comments