ipcp.c (36465) | ipcp.c (36928) |
---|---|
1/* 2 * PPP IP Control Protocol (IPCP) Module 3 * 4 * Written by Toshiharu OHNO (tony-o@iij.ad.jp) 5 * 6 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd. 7 * 8 * Redistribution and use in source and binary forms are permitted 9 * provided that the above copyright notice and this paragraph are 10 * duplicated in all such forms and that any documentation, 11 * advertising materials, and other materials related to such 12 * distribution and use acknowledge that the software was developed 13 * by the Internet Initiative Japan, Inc. The name of the 14 * IIJ may not be used to endorse or promote products derived 15 * from this software without specific prior written permission. 16 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 17 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 18 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 19 * | 1/* 2 * PPP IP Control Protocol (IPCP) Module 3 * 4 * Written by Toshiharu OHNO (tony-o@iij.ad.jp) 5 * 6 * Copyright (C) 1993, Internet Initiative Japan, Inc. All rights reserverd. 7 * 8 * Redistribution and use in source and binary forms are permitted 9 * provided that the above copyright notice and this paragraph are 10 * duplicated in all such forms and that any documentation, 11 * advertising materials, and other materials related to such 12 * distribution and use acknowledge that the software was developed 13 * by the Internet Initiative Japan, Inc. The name of the 14 * IIJ may not be used to endorse or promote products derived 15 * from this software without specific prior written permission. 16 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 17 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 18 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 19 * |
20 * $Id: ipcp.c,v 1.52 1998/05/23 22:24:39 brian Exp $ | 20 * $Id: ipcp.c,v 1.53 1998/05/29 18:32:11 brian Exp $ |
21 * 22 * TODO: 23 * o More RFC1772 backwoard compatibility 24 */ 25#include <sys/param.h> 26#include <netinet/in_systm.h> 27#include <netinet/in.h> 28#include <netinet/ip.h> --- 651 unchanged lines hidden (view full) --- 680 if (bundle_GetLabel(fp->bundle)) { 681 if (system_Select(fp->bundle, bundle_GetLabel(fp->bundle), 682 LINKDOWNFILE, NULL) < 0) 683 system_Select(fp->bundle, "MYADDR", LINKDOWNFILE, NULL); 684 } else 685 system_Select(fp->bundle, "MYADDR", LINKDOWNFILE, NULL); 686 } 687 | 21 * 22 * TODO: 23 * o More RFC1772 backwoard compatibility 24 */ 25#include <sys/param.h> 26#include <netinet/in_systm.h> 27#include <netinet/in.h> 28#include <netinet/ip.h> --- 651 unchanged lines hidden (view full) --- 680 if (bundle_GetLabel(fp->bundle)) { 681 if (system_Select(fp->bundle, bundle_GetLabel(fp->bundle), 682 LINKDOWNFILE, NULL) < 0) 683 system_Select(fp->bundle, "MYADDR", LINKDOWNFILE, NULL); 684 } else 685 system_Select(fp->bundle, "MYADDR", LINKDOWNFILE, NULL); 686 } 687 |
688 if (!(ipcp->fsm.bundle->phys_type & PHYS_AUTO)) | 688 if (!(ipcp->fsm.bundle->phys_type.all & PHYS_AUTO)) |
689 ipcp_CleanInterface(ipcp); 690} 691 692int 693ipcp_InterfaceUp(struct ipcp *ipcp) 694{ 695 if (ipcp_SetIPaddress(ipcp->fsm.bundle, ipcp->my_ip, ipcp->peer_ip, 0) < 0) { 696 log_Printf(LogERROR, "IpcpLayerUp: unable to set ip address\n"); --- 420 unchanged lines hidden --- | 689 ipcp_CleanInterface(ipcp); 690} 691 692int 693ipcp_InterfaceUp(struct ipcp *ipcp) 694{ 695 if (ipcp_SetIPaddress(ipcp->fsm.bundle, ipcp->my_ip, ipcp->peer_ip, 0) < 0) { 696 log_Printf(LogERROR, "IpcpLayerUp: unable to set ip address\n"); --- 420 unchanged lines hidden --- |