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
icmp.c
View file

@ -96,7 +96,7 @@ struct nd_opt_rdnss_info_l2tpns
struct in6_addr nd_opt_rdnssi[0];
};
void send_ipv6_ra(sessionidt s, tunnelidt t, struct in6_addr *ip)
void send_ipv6_ra(sessionidt s, tunnelidt t, const struct in6_addr *ip)
{
struct nd_opt_prefix_info *pinfo;
struct ip6_hdr *p_ip6_hdr;