Thomas Huth | 7b14399 | 2016-06-28 12:48:31 +0200 | [diff] [blame] | 1 | /* |
| 2 | * Definitions and prototypes for SLIRP stateless DHCPv6 |
| 3 | * |
| 4 | * Copyright 2016 Thomas Huth, Red Hat Inc. |
| 5 | * |
| 6 | * This work is licensed under the terms of the GNU GPL, version 2 |
| 7 | * or later. See the COPYING file in the top-level directory. |
| 8 | */ |
| 9 | #ifndef SLIRP_DHCPV6_H |
| 10 | #define SLIRP_DHCPV6_H |
| 11 | |
| 12 | #define DHCPV6_SERVER_PORT 547 |
| 13 | |
| 14 | #define ALLDHCP_MULTICAST { .s6_addr = \ |
| 15 | { 0xff, 0x02, 0x00, 0x00,\ |
| 16 | 0x00, 0x00, 0x00, 0x00,\ |
| 17 | 0x00, 0x00, 0x00, 0x00,\ |
| 18 | 0x00, 0x01, 0x00, 0x02 } } |
| 19 | |
Philippe Mathieu-Daudé | 318116a | 2018-01-08 14:29:01 -0300 | [diff] [blame] | 20 | #define in6_dhcp_multicast(a)\ |
| 21 | in6_equal(a, &(struct in6_addr)ALLDHCP_MULTICAST) |
| 22 | |
Thomas Huth | 7b14399 | 2016-06-28 12:48:31 +0200 | [diff] [blame] | 23 | void dhcpv6_input(struct sockaddr_in6 *srcsas, struct mbuf *m); |
| 24 | |
| 25 | #endif |