diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2019-02-12 17:25:21 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2019-03-07 12:46:31 +0100 |
commit | 657aab83d99a6e116a13e1c586acc3b7320ecde3 (patch) | |
tree | 2ceec478104c97b9270e03280c9691610aa47884 /src/dhcpv6.h | |
parent | e64cae22042c39bfd06efed9178b25d20d074ea3 (diff) | |
download | slirp-657aab83d99a6e116a13e1c586acc3b7320ecde3.zip slirp-657aab83d99a6e116a13e1c586acc3b7320ecde3.tar.gz slirp-657aab83d99a6e116a13e1c586acc3b7320ecde3.tar.bz2 |
slirp: move sources to src/ subdirectory
Prepare for making slirp/ a standalone project.
Remove some useless includes while at it.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <20190212162524.31504-5-marcandre.lureau@redhat.com>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'src/dhcpv6.h')
-rw-r--r-- | src/dhcpv6.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/dhcpv6.h b/src/dhcpv6.h new file mode 100644 index 0000000..6c0ede3 --- /dev/null +++ b/src/dhcpv6.h @@ -0,0 +1,40 @@ +/* + * 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 \ + } \ + } + +#define in6_dhcp_multicast(a) in6_equal(a, &(struct in6_addr)ALLDHCP_MULTICAST) + +void dhcpv6_input(struct sockaddr_in6 *srcsas, struct mbuf *m); + +#endif |