radius.c (67133) | radius.c (71657) |
---|---|
1/* 2 * Copyright 1999 Internet Business Solutions Ltd., Switzerland 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/* 2 * Copyright 1999 Internet Business Solutions Ltd., Switzerland 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/usr.sbin/ppp/radius.c 67133 2000-10-15 01:05:57Z brian $ | 26 * $FreeBSD: head/usr.sbin/ppp/radius.c 71657 2001-01-26 01:41:34Z brian $ |
27 * 28 */ 29 30#include <sys/param.h> 31#include <sys/socket.h> 32#include <netinet/in_systm.h> 33#include <netinet/in.h> 34#include <netinet/ip.h> --- 588 unchanged lines hidden (view full) --- 623} 624 625/* 626 * How do things look at the moment ? 627 */ 628void 629radius_Show(struct radius *r, struct prompt *p) 630{ | 27 * 28 */ 29 30#include <sys/param.h> 31#include <sys/socket.h> 32#include <netinet/in_systm.h> 33#include <netinet/in.h> 34#include <netinet/ip.h> --- 588 unchanged lines hidden (view full) --- 623} 624 625/* 626 * How do things look at the moment ? 627 */ 628void 629radius_Show(struct radius *r, struct prompt *p) 630{ |
631 prompt_Printf(p, " Radius config: %s", *r->cfg.file ? r->cfg.file : "none"); | 631 prompt_Printf(p, " Radius config: %s", 632 *r->cfg.file ? r->cfg.file : "none"); |
632 if (r->valid) { | 633 if (r->valid) { |
633 prompt_Printf(p, "\n IP: %s\n", inet_ntoa(r->ip)); 634 prompt_Printf(p, " Netmask: %s\n", inet_ntoa(r->mask)); 635 prompt_Printf(p, " MTU: %lu\n", r->mtu); 636 prompt_Printf(p, " VJ: %sabled\n", r->vj ? "en" : "dis"); | 634 prompt_Printf(p, "\n IP: %s\n", inet_ntoa(r->ip)); 635 prompt_Printf(p, " Netmask: %s\n", inet_ntoa(r->mask)); 636 prompt_Printf(p, " MTU: %lu\n", r->mtu); 637 prompt_Printf(p, " VJ: %sabled\n", r->vj ? "en" : "dis"); |
637 if (r->routes) | 638 if (r->routes) |
638 route_ShowSticky(p, r->routes, " Routes", 16); | 639 route_ShowSticky(p, r->routes, " Routes", 16); |
639 } else 640 prompt_Printf(p, " (not authenticated)\n"); 641} | 640 } else 641 prompt_Printf(p, " (not authenticated)\n"); 642} |