mirror of
https://github.com/xemu-project/xemu.git
synced 2024-12-01 07:21:09 +00:00
7b143999f2
Provide basic support for stateless DHCPv6 (see RFC 3736) so that guests can also automatically boot via IPv6 with SLIRP (for IPv6 network booting, see RFC 5970 for details). Tested with: qemu-system-ppc64 -nographic -vga none -boot n -net nic \ -net user,ipv6=yes,ipv4=no,tftp=/path/to/tftp,bootfile=ppc64.img Signed-off-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
23 lines
652 B
C
23 lines
652 B
C
/*
|
|
* Definitions and prototypes for SLIRP stateless DHCPv6
|
|
*
|
|
* Copyright 2016 Thomas Huth, Red Hat Inc.
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2
|
|
* or later. See the COPYING file in the top-level directory.
|
|
*/
|
|
#ifndef SLIRP_DHCPV6_H
|
|
#define SLIRP_DHCPV6_H
|
|
|
|
#define DHCPV6_SERVER_PORT 547
|
|
|
|
#define ALLDHCP_MULTICAST { .s6_addr = \
|
|
{ 0xff, 0x02, 0x00, 0x00,\
|
|
0x00, 0x00, 0x00, 0x00,\
|
|
0x00, 0x00, 0x00, 0x00,\
|
|
0x00, 0x01, 0x00, 0x02 } }
|
|
|
|
void dhcpv6_input(struct sockaddr_in6 *srcsas, struct mbuf *m);
|
|
|
|
#endif
|