Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
NetServices/lwip/netif/ppp/magic.h@1:f5ac63519541, 2014-03-05 (annotated)
- Committer:
- Michael J. Spencer
- Date:
- Wed Mar 05 06:14:02 2014 -0800
- Revision:
- 1:f5ac63519541
Initial commit.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Michael J. Spencer |
1:f5ac63519541 | 1 | /***************************************************************************** |
Michael J. Spencer |
1:f5ac63519541 | 2 | * magic.h - Network Random Number Generator header file. |
Michael J. Spencer |
1:f5ac63519541 | 3 | * |
Michael J. Spencer |
1:f5ac63519541 | 4 | * Copyright (c) 2003 by Marc Boucher, Services Informatiques (MBSI) inc. |
Michael J. Spencer |
1:f5ac63519541 | 5 | * portions Copyright (c) 1997 Global Election Systems Inc. |
Michael J. Spencer |
1:f5ac63519541 | 6 | * |
Michael J. Spencer |
1:f5ac63519541 | 7 | * The authors hereby grant permission to use, copy, modify, distribute, |
Michael J. Spencer |
1:f5ac63519541 | 8 | * and license this software and its documentation for any purpose, provided |
Michael J. Spencer |
1:f5ac63519541 | 9 | * that existing copyright notices are retained in all copies and that this |
Michael J. Spencer |
1:f5ac63519541 | 10 | * notice and the following disclaimer are included verbatim in any |
Michael J. Spencer |
1:f5ac63519541 | 11 | * distributions. No written agreement, license, or royalty fee is required |
Michael J. Spencer |
1:f5ac63519541 | 12 | * for any of the authorized uses. |
Michael J. Spencer |
1:f5ac63519541 | 13 | * |
Michael J. Spencer |
1:f5ac63519541 | 14 | * THIS SOFTWARE IS PROVIDED BY THE CONTRIBUTORS *AS IS* AND ANY EXPRESS OR |
Michael J. Spencer |
1:f5ac63519541 | 15 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
Michael J. Spencer |
1:f5ac63519541 | 16 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
Michael J. Spencer |
1:f5ac63519541 | 17 | * IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
Michael J. Spencer |
1:f5ac63519541 | 18 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
Michael J. Spencer |
1:f5ac63519541 | 19 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
Michael J. Spencer |
1:f5ac63519541 | 20 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
Michael J. Spencer |
1:f5ac63519541 | 21 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
Michael J. Spencer |
1:f5ac63519541 | 22 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
Michael J. Spencer |
1:f5ac63519541 | 23 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
Michael J. Spencer |
1:f5ac63519541 | 24 | * |
Michael J. Spencer |
1:f5ac63519541 | 25 | ****************************************************************************** |
Michael J. Spencer |
1:f5ac63519541 | 26 | * REVISION HISTORY |
Michael J. Spencer |
1:f5ac63519541 | 27 | * |
Michael J. Spencer |
1:f5ac63519541 | 28 | * 03-01-01 Marc Boucher <marc@mbsi.ca> |
Michael J. Spencer |
1:f5ac63519541 | 29 | * Ported to lwIP. |
Michael J. Spencer |
1:f5ac63519541 | 30 | * 97-12-04 Guy Lancaster <glanca@gesn.com>, Global Election Systems Inc. |
Michael J. Spencer |
1:f5ac63519541 | 31 | * Original derived from BSD codes. |
Michael J. Spencer |
1:f5ac63519541 | 32 | *****************************************************************************/ |
Michael J. Spencer |
1:f5ac63519541 | 33 | /* |
Michael J. Spencer |
1:f5ac63519541 | 34 | * magic.h - PPP Magic Number definitions. |
Michael J. Spencer |
1:f5ac63519541 | 35 | * |
Michael J. Spencer |
1:f5ac63519541 | 36 | * Copyright (c) 1989 Carnegie Mellon University. |
Michael J. Spencer |
1:f5ac63519541 | 37 | * All rights reserved. |
Michael J. Spencer |
1:f5ac63519541 | 38 | * |
Michael J. Spencer |
1:f5ac63519541 | 39 | * Redistribution and use in source and binary forms are permitted |
Michael J. Spencer |
1:f5ac63519541 | 40 | * provided that the above copyright notice and this paragraph are |
Michael J. Spencer |
1:f5ac63519541 | 41 | * duplicated in all such forms and that any documentation, |
Michael J. Spencer |
1:f5ac63519541 | 42 | * advertising materials, and other materials related to such |
Michael J. Spencer |
1:f5ac63519541 | 43 | * distribution and use acknowledge that the software was developed |
Michael J. Spencer |
1:f5ac63519541 | 44 | * by Carnegie Mellon University. The name of the |
Michael J. Spencer |
1:f5ac63519541 | 45 | * University may not be used to endorse or promote products derived |
Michael J. Spencer |
1:f5ac63519541 | 46 | * from this software without specific prior written permission. |
Michael J. Spencer |
1:f5ac63519541 | 47 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR |
Michael J. Spencer |
1:f5ac63519541 | 48 | * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED |
Michael J. Spencer |
1:f5ac63519541 | 49 | * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
Michael J. Spencer |
1:f5ac63519541 | 50 | * |
Michael J. Spencer |
1:f5ac63519541 | 51 | * $Id: magic.h,v 1.3 2010/01/18 20:49:43 goldsimon Exp $ |
Michael J. Spencer |
1:f5ac63519541 | 52 | */ |
Michael J. Spencer |
1:f5ac63519541 | 53 | |
Michael J. Spencer |
1:f5ac63519541 | 54 | #ifndef MAGIC_H |
Michael J. Spencer |
1:f5ac63519541 | 55 | #define MAGIC_H |
Michael J. Spencer |
1:f5ac63519541 | 56 | |
Michael J. Spencer |
1:f5ac63519541 | 57 | /* Initialize the magic number generator */ |
Michael J. Spencer |
1:f5ac63519541 | 58 | void magicInit(void); |
Michael J. Spencer |
1:f5ac63519541 | 59 | |
Michael J. Spencer |
1:f5ac63519541 | 60 | /* Returns the next magic number */ |
Michael J. Spencer |
1:f5ac63519541 | 61 | u32_t magic(void); |
Michael J. Spencer |
1:f5ac63519541 | 62 | |
Michael J. Spencer |
1:f5ac63519541 | 63 | #endif /* MAGIC_H */ |