Deleted Added
full compact
ipcp.c (139973) ipcp.c (140905)
1/*-
2 * Copyright (c) 1996 - 2001 Brian Somers <brian@Awfulhak.org>
3 * based on work by Toshiharu OHNO <tony-o@iij.ad.jp>
4 * Internet Initiative Japan, Inc (IIJ)
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 11 unchanged lines hidden (view full) ---

20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
1/*-
2 * Copyright (c) 1996 - 2001 Brian Somers <brian@Awfulhak.org>
3 * based on work by Toshiharu OHNO <tony-o@iij.ad.jp>
4 * Internet Initiative Japan, Inc (IIJ)
5 * All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 11 unchanged lines hidden (view full) ---

20 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
22 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
23 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
24 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
25 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
26 * SUCH DAMAGE.
27 *
28 * $FreeBSD: head/usr.sbin/ppp/ipcp.c 139973 2005-01-10 09:48:51Z brian $
28 * $FreeBSD: head/usr.sbin/ppp/ipcp.c 140905 2005-01-27 14:09:33Z brian $
29 */
30
31#include <sys/param.h>
32#include <netinet/in_systm.h>
33#include <netinet/in.h>
34#include <netinet/ip.h>
35#include <arpa/inet.h>
36#include <sys/socket.h>

--- 829 unchanged lines hidden (view full) ---

866 static int recursing;
867 char addr[16];
868
869 if (!recursing++) {
870 snprintf(addr, sizeof addr, "%s", inet_ntoa(ipcp->my_ip));
871 log_Printf(LogIPCP, "%s: LayerDown: %s\n", fp->link->name, addr);
872
873#ifndef NORADIUS
29 */
30
31#include <sys/param.h>
32#include <netinet/in_systm.h>
33#include <netinet/in.h>
34#include <netinet/ip.h>
35#include <arpa/inet.h>
36#include <sys/socket.h>

--- 829 unchanged lines hidden (view full) ---

866 static int recursing;
867 char addr[16];
868
869 if (!recursing++) {
870 snprintf(addr, sizeof addr, "%s", inet_ntoa(ipcp->my_ip));
871 log_Printf(LogIPCP, "%s: LayerDown: %s\n", fp->link->name, addr);
872
873#ifndef NORADIUS
874 radius_Flush(&fp->bundle->radius);
874 radius_Account(&fp->bundle->radius, &fp->bundle->radacct,
875 fp->bundle->links, RAD_STOP, &ipcp->throughput);
876
877 if (fp->bundle->radius.cfg.file && fp->bundle->radius.filterid)
878 system_Select(fp->bundle, fp->bundle->radius.filterid, LINKDOWNFILE,
879 NULL, NULL);
880 radius_StopTimer(&fp->bundle->radius);
881#endif

--- 595 unchanged lines hidden ---
875 radius_Account(&fp->bundle->radius, &fp->bundle->radacct,
876 fp->bundle->links, RAD_STOP, &ipcp->throughput);
877
878 if (fp->bundle->radius.cfg.file && fp->bundle->radius.filterid)
879 system_Select(fp->bundle, fp->bundle->radius.filterid, LINKDOWNFILE,
880 NULL, NULL);
881 radius_StopTimer(&fp->bundle->radius);
882#endif

--- 595 unchanged lines hidden ---