Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

Commit

Permalink
That's not how you write a request...
Browse files Browse the repository at this point in the history
  • Loading branch information
klange committed May 28, 2021
1 parent 2467430 commit 771968a
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions apps/dhcp_bitbanger.c
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,6 @@ int main(int argc, char * argv[]) {
}

uint32_t yiaddr;
uint32_t siaddr;

do {
char buf[8092] = {0};
Expand All @@ -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);

Expand All @@ -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));
}

Expand All @@ -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);

Expand Down

0 comments on commit 771968a

Please sign in to comment.