#ifndef BPF_WHOLEPACKET
# define BPF_WHOLEPACKET ~0U
#endif
-static const struct bpf_insn const arp_bpf_filter [] = {
+static const struct bpf_insn arp_bpf_filter [] = {
#ifndef BPF_SKIPTYPE
/* Make sure this is an ARP packet... */
BPF_STMT(BPF_LD + BPF_H + BPF_ABS, 12),
* http://www.isc.org/
*/
-static const struct bpf_insn const dhcp_bpf_filter [] = {
+static const struct bpf_insn dhcp_bpf_filter [] = {
#ifndef BPF_SKIPTYPE
/* Make sure this is an IP packet... */
BPF_STMT(BPF_LD + BPF_H + BPF_ABS, 12),
{ 0, NULL }
};
-const struct dhcp_opt const dhcp_opts[] = {
+const struct dhcp_opt dhcp_opts[] = {
{ 1, ADDRIPV4 | REQUEST, "subnet_mask" },
/* RFC 3442 states that the CSR has to come before all other
* routes. For completeness, we also specify static routes,
#include "net.h"
#ifdef INET
-extern const struct dhcp_opt const dhcp_opts[];
+extern const struct dhcp_opt dhcp_opts[];
char *decode_rfc3361(int dl, const uint8_t *data);
ssize_t decode_rfc3442(char *out, ssize_t len, int pl, const uint8_t *p);
};
#define IPV6A ADDRIPV6 | ARRAY
-const struct dhcp_opt const dhcp6_opts[] = {
+const struct dhcp_opt dhcp6_opts[] = {
{ D6_OPTION_CLIENTID, BINHEX, "client_id" },
{ D6_OPTION_SERVERID, BINHEX, "server_id" },
{ D6_OPTION_IA_ADDR, IPV6A, "ia_addr" },
#include "dhcp.h"
#include "ipv6.h"
-extern const struct dhcp_opt const dhcp6_opts[];
+extern const struct dhcp_opt dhcp6_opts[];
struct dhcp6_message {
uint8_t type;
struct in_addr addr, addr2;
in_addr_t *naddr;
struct rt *rt;
- const struct dhcp_opt const *d;
+ const struct dhcp_opt *d;
uint8_t *request, *require, *no;
struct if_iaid *iaid;
uint8_t _iaid[4];