Make it easier to use, and pleases gcc.
Signed-off-by: Benjamin Cama <benoar@dolka.fr>
uint8_t *o = p + 4;
int length = l - 4;
int gotip = 0;
uint8_t *o = p + 4;
int length = l - 4;
int gotip = 0;
gotip++; // seen address
if (o[1] != 10) return;
gotip++; // seen address
if (o[1] != 10) return;
- *(uint32_t *) ident = htonl(session[s].ip);
- *(uint32_t *) (ident + 4) = 0;
+ ident[0] = htonl(session[s].ip);
+ ident[1] = 0;
if (memcmp(o + 2, ident, sizeof(ident)))
{
if (memcmp(o + 2, ident, sizeof(ident)))
{
- q = ppp_conf_nak(s, b, sizeof(b), PPPIPV6CP, &response, q, p, o, ident, sizeof(ident));
+ q = ppp_conf_nak(s, b, sizeof(b), PPPIPV6CP, &response, q, p, o, (uint8_t *)ident, sizeof(ident));