ip/ipconfig: silently ignore prefix information with Autonomous flag clear

This commit is contained in:
cinap_lenrek 2018-09-28 20:23:53 +02:00
parent 9ee967663f
commit 451b0c7976

View file

@ -691,13 +691,16 @@ recvrahost(uchar buf[], int pktlen)
if(prfo->len != 4)
continue;
if((prfo->lar & AFMASK) == 0)
continue;
conf.prefixlen = prfo->plen & 127;
genipmkask(conf.mask, conf.prefixlen);
maskip(prfo->pref, conf.mask, conf.v6pref);
memmove(conf.laddr, conf.v6pref, 8);
memmove(conf.laddr+8, conf.lladdr+8, 8);
conf.onlink = ((prfo->lar & OLMASK) != 0);
conf.autoflag = ((prfo->lar & AFMASK) != 0);
conf.onlink = (prfo->lar & OLMASK) != 0;
conf.autoflag = (prfo->lar & AFMASK) != 0;
conf.validlt = nhgetl(prfo->validlt);
conf.preflt = nhgetl(prfo->preflt);