1
0
mirror of git://projects.qi-hardware.com/wernermisc.git synced 2025-04-21 12:27:27 +03:00

m1/patches/rtems: refresh

This commit is contained in:
Xiangfu
2012-05-14 12:36:46 +08:00
parent 9a316150b4
commit b6b61b1702
4 changed files with 60 additions and 61 deletions

View File

@@ -4,11 +4,11 @@ Date: Fri Feb 24 21:57:21 2012 +0100
BOOTP/DHCP header cleanup
diff --git a/cpukit/libnetworking/nfs/bootp_subr.c b/cpukit/libnetworking/nfs/bootp_subr.c
index 4021bc6..df8b0c5 100644
--- a/cpukit/libnetworking/nfs/bootp_subr.c
+++ b/cpukit/libnetworking/nfs/bootp_subr.c
@@ -71,9 +71,12 @@
Index: rtems/cpukit/libnetworking/nfs/bootp_subr.c
===================================================================
--- rtems.orig/cpukit/libnetworking/nfs/bootp_subr.c 2012-05-14 12:34:47.187532000 +0800
+++ rtems/cpukit/libnetworking/nfs/bootp_subr.c 2012-05-14 12:35:20.155040001 +0800
@@ -69,9 +69,12 @@
#include <fcntl.h>
#include <rtems/mkrootfs.h>
#include <rtems/rtems_bsdnet.h>
@@ -21,7 +21,7 @@ index 4021bc6..df8b0c5 100644
#define BOOTP_MIN_LEN 300 /* Minimum size of bootp udp packet */
/*
@@ -138,20 +141,6 @@ void bootpboot_p_rtlist(void);
@@ -136,20 +139,6 @@
void bootpboot_p_iflist(void);
#endif
@@ -42,7 +42,7 @@ index 4021bc6..df8b0c5 100644
#ifdef BOOTP_DEBUG
void
bootpboot_p_sa(struct sockaddr *sa, struct sockaddr *ma)
@@ -271,7 +260,7 @@ bootpboot_p_iflist(void)
@@ -269,7 +258,7 @@
* - allocate or reallocate dst, so that string fits in
* - copy string from src to dest
*/
@@ -51,11 +51,10 @@ index 4021bc6..df8b0c5 100644
{
size_t len;
diff --git a/cpukit/libnetworking/rtems/bootp.h b/cpukit/libnetworking/rtems/bootp.h
new file mode 100644
index 0000000..21bdb79
--- /dev/null
+++ b/cpukit/libnetworking/rtems/bootp.h
Index: rtems/cpukit/libnetworking/rtems/bootp.h
===================================================================
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
+++ rtems/cpukit/libnetworking/rtems/bootp.h 2012-05-14 12:35:20.155040001 +0800
@@ -0,0 +1,39 @@
+/* Subroutines from c/src/libnetworking/nfs/bootp_subr.c */
+
@@ -96,11 +95,11 @@ index 0000000..21bdb79
+#endif
+
+#endif
diff --git a/cpukit/libnetworking/rtems/rtems_bootp.c b/cpukit/libnetworking/rtems/rtems_bootp.c
index caf2faa..6a644a4 100644
--- a/cpukit/libnetworking/rtems/rtems_bootp.c
+++ b/cpukit/libnetworking/rtems/rtems_bootp.c
@@ -12,6 +12,8 @@
Index: rtems/cpukit/libnetworking/rtems/rtems_bootp.c
===================================================================
--- rtems.orig/cpukit/libnetworking/rtems/rtems_bootp.c 2012-05-14 12:34:47.195528000 +0800
+++ rtems/cpukit/libnetworking/rtems/rtems_bootp.c 2012-05-14 12:35:20.155040001 +0800
@@ -8,6 +8,8 @@
#include <rtems/rtems_bsdnet.h>
#include <rtems/rtems_bsdnet_internal.h>
@@ -109,11 +108,11 @@ index caf2faa..6a644a4 100644
/*
* Perform a BOOTP request
*/
diff --git a/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h b/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
index c8bdfd4..9721e1c 100644
--- a/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
+++ b/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
@@ -179,7 +179,6 @@ void domaininit (void *);
Index: rtems/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h
===================================================================
--- rtems.orig/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h 2012-05-14 12:34:47.223514000 +0800
+++ rtems/cpukit/libnetworking/rtems/rtems_bsdnet_internal.h 2012-05-14 12:35:20.155040001 +0800
@@ -178,7 +178,6 @@
void ifinit (void *);
void ipintr (void);
void arpintr (void);
@@ -121,10 +120,10 @@ index c8bdfd4..9721e1c 100644
int socket (int, int, int);
int ioctl (int, ioctl_command_t, ...);
diff --git a/cpukit/libnetworking/rtems/rtems_dhcp.c b/cpukit/libnetworking/rtems/rtems_dhcp.c
index e01846e..285ce1e 100644
--- a/cpukit/libnetworking/rtems/rtems_dhcp.c
+++ b/cpukit/libnetworking/rtems/rtems_dhcp.c
Index: rtems/cpukit/libnetworking/rtems/rtems_dhcp.c
===================================================================
--- rtems.orig/cpukit/libnetworking/rtems/rtems_dhcp.c 2012-05-14 12:35:04.922660000 +0800
+++ rtems/cpukit/libnetworking/rtems/rtems_dhcp.c 2012-05-14 12:35:20.155040001 +0800
@@ -99,6 +99,7 @@
#include <rtems/mkrootfs.h>
@@ -133,7 +132,7 @@ index e01846e..285ce1e 100644
#ifndef EALEN
#define EALEN 6
@@ -167,25 +168,6 @@ struct dhcp_packet
@@ -167,25 +168,6 @@
};
/*
@@ -159,7 +158,7 @@ index e01846e..285ce1e 100644
* Variables
*/
static int dhcp_option_overload = 0;
@@ -724,7 +706,7 @@ dhcp_task (rtems_task_argument _sdl)
@@ -755,7 +737,7 @@
/*
* Send the Request.
*/
@@ -168,7 +167,7 @@ index e01846e..285ce1e 100644
if (error) {
rtems_bsdnet_semaphore_release ();
printf ("DHCP call failed -- error %d", error);
@@ -918,7 +900,7 @@ dhcp_init (int update_files)
@@ -960,7 +942,7 @@
/*
* Send the Discover.
*/
@@ -177,7 +176,7 @@ index e01846e..285ce1e 100644
if (error) {
printf ("BOOTP call failed -- %s\n", strerror(error));
soclose (so);
@@ -947,7 +929,7 @@ dhcp_init (int update_files)
@@ -989,7 +971,7 @@
*/
dhcp_request_req (&call, &reply, sdl, true);