-/* $OpenBSD: dhcpd.h,v 1.21 2017/03/16 09:17:20 rzalamena Exp $ */
+/* $OpenBSD: dhcpd.h,v 1.22 2017/04/04 15:50:29 reyk Exp $ */
/*
* Copyright (c) 2004 Henning Brauer <henning@openbsd.org>
struct sockaddr_storage pc_src;
struct sockaddr_storage pc_dst;
- u_int8_t *pc_circuit;
+ const char *pc_circuit;
int pc_circuitlen;
- u_int8_t *pc_remote;
+ const char *pc_remote;
int pc_remotelen;
};
-/* $OpenBSD: dhcrelay.c,v 1.61 2017/03/16 09:17:20 rzalamena Exp $ */
+/* $OpenBSD: dhcrelay.c,v 1.62 2017/04/04 15:50:29 reyk Exp $ */
/*
* Copyright (c) 2004 Henning Brauer <henning@cvs.openbsd.org>
return;
if (rai_remote != NULL) {
- pc->pc_remote = (u_int8_t *)rai_remote;
+ pc->pc_remote = rai_remote;
pc->pc_remotelen = strlen(rai_remote);
} else
pc->pc_remotelen = 0;
sizeof(sin->sin_addr);
}
} else {
- pc->pc_circuit = (u_int8_t *)rai_circuit;
+ pc->pc_circuit = rai_circuit;
pc->pc_circuitlen = strlen(rai_circuit);
}
}