]> git.ipfire.org Git - thirdparty/grub.git/commit
net/dhcp: Make grub_net_process_dhcp() take an interface
authorAndrei Borzenkov <arvidjaar@gmail.com>
Thu, 7 Mar 2019 15:14:11 +0000 (15:14 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 12 Mar 2019 19:04:07 +0000 (20:04 +0100)
commit5459243465e148d91a5c26c07520e699ed115446
treee828ed56a74f7c667418952ac62841c56d6a6fb3
parent7ace83295acfeaf57d3b6e8ad2989b4e8304cf9f
net/dhcp: Make grub_net_process_dhcp() take an interface

Change the interface of the function dealing with incoming BOOTP packets
to take an interface instead of a card, to allow more fine per-interface
state (timeout, handshake state) later on.

Use the opportunity to clean up the code a bit.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/net/bootp.c
grub-core/net/ip.c
include/grub/net.h