[uClibc-cvs] svn commit: trunk/uClibc/include/net

vapier at uclibc.org vapier at uclibc.org
Wed Mar 16 23:13:30 UTC 2005


Author: vapier
Date: 2005-03-16 16:13:30 -0700 (Wed, 16 Mar 2005)
New Revision: 10028

Log:
import updates from glibc

Modified:
   trunk/uClibc/include/net/ethernet.h
   trunk/uClibc/include/net/if_ppp.h
   trunk/uClibc/include/net/route.h


Changeset:
Modified: trunk/uClibc/include/net/ethernet.h
===================================================================
--- trunk/uClibc/include/net/ethernet.h	2005-03-16 23:12:44 UTC (rev 10027)
+++ trunk/uClibc/include/net/ethernet.h	2005-03-16 23:13:30 UTC (rev 10028)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 1999, 2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -53,8 +53,8 @@
 #define	ETHER_TYPE_LEN	2                        /* bytes in type field */
 #define	ETHER_CRC_LEN	4                        /* bytes in CRC field */
 #define	ETHER_HDR_LEN	ETH_HLEN                 /* total octets in header */
-#define	ETHER_MIN_LEN	(ETH_ZLEN + ETH_CRC_LEN) /* min packet length */
-#define	ETHER_MAX_LEN	(ETH_FRAME_LEN + ETH_CRC_LEN) /* max packet length */
+#define	ETHER_MIN_LEN	(ETH_ZLEN + ETHER_CRC_LEN) /* min packet length */
+#define	ETHER_MAX_LEN	(ETH_FRAME_LEN + ETHER_CRC_LEN) /* max packet length */
 
 /* make sure ethenet length is valid */
 #define	ETHER_IS_VALID_LEN(foo)	\
@@ -69,8 +69,8 @@
 #define	ETHERTYPE_NTRAILER	16
 
 #define	ETHERMTU	ETH_DATA_LEN
-#define	ETHERMIN	(ETHER_MIN_LEN-ETHER_HDR_LEN-ETHER_CRC_LEN)
+#define	ETHERMIN	(ETHER_MIN_LEN - ETHER_HDR_LEN - ETHER_CRC_LEN)
 
 __END_DECLS
 
-#endif /* net/ethernet.h */
+#endif	/* net/ethernet.h */

Modified: trunk/uClibc/include/net/if_ppp.h
===================================================================
--- trunk/uClibc/include/net/if_ppp.h	2005-03-16 23:12:44 UTC (rev 10027)
+++ trunk/uClibc/include/net/if_ppp.h	2005-03-16 23:13:30 UTC (rev 10028)
@@ -4,20 +4,32 @@
  * if_ppp.h - Point-to-Point Protocol definitions.
  *
  * Copyright (c) 1989 Carnegie Mellon University.
- * All rights reserved.
  *
- * Redistribution and use in source and binary forms are permitted
- * provided that the above copyright notice and this paragraph are
- * duplicated in all such forms and that any documentation,
- * advertising materials, and other materials related to such
- * distribution and use acknowledge that the software was developed
- * by Carnegie Mellon University.  The name of the
- * University may not be used to endorse or promote products derived
- * from this software without specific prior written permission.
- * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
- * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
- * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the distribution.
+ * 3. Neither the name of the University nor the names of its contributors
+ *    may be used to endorse or promote products derived from this software
+ *    without specific prior written permission.
  *
+ * THIS SOFTWARE IS PROVIDED BY CARNEGIE MELLON UNIVERSITY AND
+ * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
+ * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE UNIVERSITY OR CONTRIBUTORS BE LIABLE FOR ANY
+ * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
+ * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
+ * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+ * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ *
  */
 
 /*

Modified: trunk/uClibc/include/net/route.h
===================================================================
--- trunk/uClibc/include/net/route.h	2005-03-16 23:12:44 UTC (rev 10027)
+++ trunk/uClibc/include/net/route.h	2005-03-16 23:13:30 UTC (rev 10028)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1997, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -25,6 +25,7 @@
 #include <sys/socket.h>
 #include <sys/types.h>
 #include <netinet/in.h>
+#include <bits/wordsize.h>
 
 
 /* This structure gets passed by the SIOCADDRT and SIOCDELRT calls. */
@@ -39,7 +40,11 @@
     unsigned long int rt_pad3;
     unsigned char rt_tos;
     unsigned char rt_class;
+#if __WORDSIZE == 64
+    short int rt_pad4[3];
+#else
     short int rt_pad4;
+#endif
     short int rt_metric;		/* +1 for binary compatibility!  */
     char *rt_dev;			/* Forcing the device at add.  */
     unsigned long int rt_mtu;		/* Per route MTU/Window.  */




More information about the uClibc-cvs mailing list