Re: [PATCH v3 02/10] net: dhcp: replace parse_dhcp_vendor() with find_dhcp_option()

2019-03-08 Thread Daniel Kiper
On Thu, Mar 07, 2019 at 03:14:08PM +, Andre Przywara wrote: > From: Andrei Borzenkov > > For proper DHCP support we will need to parse DHCP options from a packet > more often and at various places. > > Refactor the option parsing into a new function, which will scan a > packet to find *a parti

[PATCH v3 02/10] net: dhcp: replace parse_dhcp_vendor() with find_dhcp_option()

2019-03-07 Thread Andre Przywara
From: Andrei Borzenkov For proper DHCP support we will need to parse DHCP options from a packet more often and at various places. Refactor the option parsing into a new function, which will scan a packet to find *a particular* option field. Use that new function in places where we were dealing w