fixed the prefix query

This commit is contained in:
Joakim Eriksson 2011-03-11 16:34:30 +01:00
parent a1ae79307b
commit 7033bc859e
2 changed files with 4 additions and 2 deletions

View file

@ -174,7 +174,7 @@ void
request_prefix(void)
{
/* mess up uip_buf with a dirty request... */
uip_buf[0] = '!';
uip_buf[0] = '?';
uip_buf[1] = 'P';
uip_len = 2;
slip_send();

View file

@ -210,7 +210,9 @@ serial_to_tun(FILE *inslip, int outfd)
ssystem("ifconfig %s hw ether %s", tundev, &macs[6]);
if (timestamp) stamptime();
ssystem("ifconfig %s up", tundev);
} else if(uip.inbuf[1] == 'P') {
}
} else if(uip.inbuf[0] == '?') {
if(uip.inbuf[1] == 'P') {
/* Prefix info requested */
struct in6_addr addr;
int i;