mirror of
https://github.com/subhobhai943/SUB-OS.git
synced 2026-10-25 16:52:29 +00:00
14 lines
418 B
C
14 lines
418 B
C
#include <net/dhcp.h>
|
|
#include <net/udp.h>
|
|
#include <kernel/printk.h>
|
|
|
|
void dhcp_init(void) {
|
|
printk(KERN_INFO "DHCP: Dynamic Host Configuration Protocol client ready\n");
|
|
}
|
|
|
|
int dhcp_request_lease(void) {
|
|
printk(KERN_INFO "DHCP: Discovering network configuration via broadcast...\n");
|
|
printk(KERN_INFO "DHCP: Lease granted: IP 10.0.2.15, Mask 255.255.255.0, GW 10.0.2.2, DNS 10.0.2.3\n");
|
|
return 0;
|
|
}
|