/[lwip]/lwip/src/netif/ppp/ipcp.c
ViewVC logotype

Diff of /lwip/src/netif/ppp/ipcp.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.3 by jani, Mon Jun 2 11:12:56 2003 UTC revision 1.3.6.1 by jani, Wed Sep 10 18:10:15 2003 UTC
# Line 1192  static void ipcp_up(fsm *f) Line 1192  static void ipcp_up(fsm *f)
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          }          }
# Line 1210  static void ipcp_up(fsm *f) Line 1210  static void ipcp_up(fsm *f)
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          }          }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.3.6.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26