Skip to content

Commit

Permalink
slirp: add in6_dhcp_multicast()
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: Samuel Thibault <[email protected]>
  • Loading branch information
philmd authored and sthibaul committed Jan 14, 2018
1 parent 676e268 commit 318116a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions slirp/dhcpv6.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
0x00, 0x00, 0x00, 0x00,\
0x00, 0x01, 0x00, 0x02 } }

#define in6_dhcp_multicast(a)\
in6_equal(a, &(struct in6_addr)ALLDHCP_MULTICAST)

void dhcpv6_input(struct sockaddr_in6 *srcsas, struct mbuf *m);

#endif
2 changes: 1 addition & 1 deletion slirp/udp6.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void udp6_input(struct mbuf *m)
/* handle DHCPv6 */
if (ntohs(uh->uh_dport) == DHCPV6_SERVER_PORT &&
(in6_equal(&ip->ip_dst, &slirp->vhost_addr6) ||
in6_equal(&ip->ip_dst, &(struct in6_addr)ALLDHCP_MULTICAST))) {
in6_dhcp_multicast(&ip->ip_dst))) {
m->m_data += iphlen;
m->m_len -= iphlen;
dhcpv6_input(&lhost, m);
Expand Down

0 comments on commit 318116a

Please sign in to comment.