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