Separate out DHCP processing

So we can later call it on UDP datagrams obtained from UDP socket.
This commit is contained in:
Samuel Thibault 2023-05-17 23:42:08 +02:00
parent e53fccd36c
commit c3eb1be0b4
5 changed files with 44 additions and 17 deletions

2
ppp.c
View file

@ -2286,7 +2286,7 @@ void processipv6in(sessionidt s, tunnelidt t, uint8_t *p, uint16_t l)
*(uint16_t *)(p + 34) == 0 && *(p + 36) == 0 && *(p + 37) == 1 && *(p + 38) == 0 && *(p + 39) == 2 &&
*(p + 40) == 2 && *(p + 41) == 0x22 && *(p + 42) == 2 && *(p + 43) == 0x23)
{
dhcpv6_process(s, t, p, l);
dhcpv6_process_from_ipv6(s, t, p, l);
return;
}