1192 |
ho->hisaddr = wo->hisaddr; |
ho->hisaddr = wo->hisaddr; |
1193 |
|
|
1194 |
if (ho->hisaddr == 0) { |
if (ho->hisaddr == 0) { |
1195 |
ppp_trace(LOG_ERR, "Could not determine remote IP address\n"); |
IPCPDEBUG((LOG_ERR, "Could not determine remote IP address\n")); |
1196 |
ipcp_close(f->unit, "Could not determine remote IP address"); |
ipcp_close(f->unit, "Could not determine remote IP address"); |
1197 |
return; |
return; |
1198 |
} |
} |
1199 |
if (go->ouraddr == 0) { |
if (go->ouraddr == 0) { |
1200 |
ppp_trace(LOG_ERR, "Could not determine local IP address\n"); |
IPCPDEBUG((LOG_ERR, "Could not determine local IP address\n")); |
1201 |
ipcp_close(f->unit, "Could not determine local IP address"); |
ipcp_close(f->unit, "Could not determine local IP address"); |
1202 |
return; |
return; |
1203 |
} |
} |
1210 |
* Check that the peer is allowed to use the IP address it wants. |
* Check that the peer is allowed to use the IP address it wants. |
1211 |
*/ |
*/ |
1212 |
if (!auth_ip_addr(f->unit, ho->hisaddr)) { |
if (!auth_ip_addr(f->unit, ho->hisaddr)) { |
1213 |
ppp_trace(LOG_ERR, "Peer is not authorized to use remote address %s\n", |
IPCPDEBUG((LOG_ERR, "Peer is not authorized to use remote address %s\n", |
1214 |
inet_ntoa(ho->hisaddr)); |
inet_ntoa(ho->hisaddr))); |
1215 |
ipcp_close(f->unit, "Unauthorized remote IP address"); |
ipcp_close(f->unit, "Unauthorized remote IP address"); |
1216 |
return; |
return; |
1217 |
} |
} |