lwinetaton.c revision ec5347e2c775f027573ce5648b910361aa926c01
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt * Portions Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
613fa3ce9d39f0c4057e4a14094ff29b7897406bMark Andrews * Portions Copyright (C) 1996-2001, 2003 Internet Software Consortium.
613fa3ce9d39f0c4057e4a14094ff29b7897406bMark Andrews * Permission to use, copy, modify, and/or distribute this software for any
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt * purpose with or without fee is hereby granted, provided that the above
28a8f5b0de57d269cf2845c69cb6abe18cbd3b3aMark Andrews * copyright notice and this permission notice appear in all copies.
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
00f131293520b70728cd48840e09953fa45a745bMark Andrews * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
00f131293520b70728cd48840e09953fa45a745bMark Andrews * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
00f131293520b70728cd48840e09953fa45a745bMark Andrews * PERFORMANCE OF THIS SOFTWARE.
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt * Copyright (c) 1983, 1990, 1993
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt * The Regents of the University of California. All rights reserved.
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt * Redistribution and use in source and binary forms, with or without
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt * modification, are permitted provided that the following conditions
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt * 1. Redistributions of source code must retain the above copyright
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt * notice, this list of conditions and the following disclaimer.
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt * 2. Redistributions in binary form must reproduce the above copyright
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt * notice, this list of conditions and the following disclaimer in the
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt * documentation and/or other materials provided with the distribution.
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt * 3. All advertising materials mentioning features or use of this software
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt * must display the following acknowledgement:
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt * This product includes software developed by the University of
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt * California, Berkeley and its contributors.
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt * 4. Neither the name of the University nor the names of its contributors
ef421f66f47224a42073deaf087378c5d0c9952eEvan Hunt * may be used to endorse or promote products derived from this software
/*! \file lwinetaton.c
#include <config.h>
#include <ctype.h>
#include <stddef.h>
#include "assert_p.h"
unsigned long val;
int base, n;
int digit;
c = *cp;
val = 0;
digit = 0;
c = *++cp;
c = *++cp;
c = *++cp;
c = *++cp;
* a.b.c.d
* a.b.c (with c treated as 16 bits)
c = *++cp;
if (!digit)