summaryrefslogtreecommitdiffstats
path: root/usr.sbin/ppp/iplist.c
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1998-06-27 23:48:54 +0000
committerbrian <brian@FreeBSD.org>1998-06-27 23:48:54 +0000
commitecefb9d1a210a6c86638b396ea5ece55c433bc66 (patch)
tree0a77c0e67b7da6215327359880d61c222fd24aa7 /usr.sbin/ppp/iplist.c
parent40b850dd415ad2adcddb88549067b23762bce91a (diff)
downloadFreeBSD-src-ecefb9d1a210a6c86638b396ea5ece55c433bc66.zip
FreeBSD-src-ecefb9d1a210a6c86638b396ea5ece55c433bc66.tar.gz
o Fix remaining sizeof problems for 64 bit machines.
o Allow ``set ....'' when we have multiple links but aren't in multilink mode. o Do a TLS when we receive a ``Open'' event in ``Closed'' state, despite the rfc state transition table. This is clearly an error in the RFC as TLS cannot have yet been called (without TLF) in the ``Closed'' state. I've posted a message to comp.protocols.ppp for confirmation.
Diffstat (limited to 'usr.sbin/ppp/iplist.c')
-rw-r--r--usr.sbin/ppp/iplist.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/usr.sbin/ppp/iplist.c b/usr.sbin/ppp/iplist.c
index 48e4b5e..2eddeeb 100644
--- a/usr.sbin/ppp/iplist.c
+++ b/usr.sbin/ppp/iplist.c
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: iplist.c,v 1.5 1998/05/21 21:45:53 brian Exp $
+ * $Id: iplist.c,v 1.6 1998/06/15 19:06:47 brian Exp $
*/
#include <sys/types.h>
@@ -43,7 +43,7 @@ do_inet_aton(const char *start, const char *end, struct in_addr *ip)
char ipstr[16];
if (end - start > 15) {
- log_Printf(LogWARN, "%.*s: Invalid IP address\n", end-start, start);
+ log_Printf(LogWARN, "%.*s: Invalid IP address\n", (int)(end-start), start);
return 0;
}
strncpy(ipstr, start, end-start);
@@ -110,7 +110,8 @@ iplist_nextrange(struct iplist *list)
end = ptr + strlen(ptr);
if (end == ptr)
return 0;
- log_Printf(LogWARN, "%.*s: Invalid IP range (skipping)\n", end - ptr, ptr);
+ log_Printf(LogWARN, "%.*s: Invalid IP range (skipping)\n",
+ (int)(end - ptr), ptr);
to = ptr;
do
*to = *end++;
@@ -168,7 +169,7 @@ iplist_reset(struct iplist *list)
}
struct in_addr
-iplist_setcurpos(struct iplist *list, int pos)
+iplist_setcurpos(struct iplist *list, long pos)
{
if (pos < 0 || pos >= list->nItems) {
list->cur.pos = -1;
@@ -206,7 +207,8 @@ int
iplist_ip2pos(struct iplist *list, struct in_addr ip)
{
struct iplist_cur cur;
- int f, result;
+ u_long f;
+ int result;
result = -1;
memcpy(&cur, &list->cur, sizeof cur);
OpenPOWER on IntegriCloud