From 771968a040a4c5f1dbec50112a053b9afa15ecb9 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Fri, 28 May 2021 19:30:18 +0900 Subject: [PATCH] That's not how you write a request... --- apps/dhcp_bitbanger.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/apps/dhcp_bitbanger.c b/apps/dhcp_bitbanger.c index 5e12df2..cc70172 100644 --- a/apps/dhcp_bitbanger.c +++ b/apps/dhcp_bitbanger.c @@ -262,7 +262,6 @@ int main(int argc, char * argv[]) { } uint32_t yiaddr; - uint32_t siaddr; do { char buf[8092] = {0}; @@ -281,7 +280,6 @@ int main(int argc, char * argv[]) { } yiaddr = response->dhcp_header.yiaddr; - siaddr = response->dhcp_header.siaddr; char yiaddr_ip[16]; ip_ntoa(ntohl(yiaddr), yiaddr_ip); @@ -303,9 +301,6 @@ int main(int argc, char * argv[]) { fill(&thething, 14); - thething.dhcp_header.ciaddr = yiaddr; - thething.dhcp_header.siaddr = siaddr; - write(netdev, &thething, sizeof(struct payload)); } @@ -326,7 +321,6 @@ int main(int argc, char * argv[]) { } yiaddr = response->dhcp_header.yiaddr; - siaddr = response->dhcp_header.siaddr; char yiaddr_ip[16]; ip_ntoa(ntohl(yiaddr), yiaddr_ip);