fixed the prefix query
This commit is contained in:
parent
a1ae79307b
commit
7033bc859e
2 changed files with 4 additions and 2 deletions
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue