فهرست منبع

README: add explanation about patch policy
net/net.c: fix indentation

wdenk 20 سال پیش
والد
کامیت
90dc67049d
2فایلهای تغییر یافته به همراه9 افزوده شده و 5 حذف شده
  1. 4 0
      README
  2. 5 5
      net/net.c

+ 4 - 0
README

@@ -3381,6 +3381,7 @@ Since the number of patches for U-Boot is growing, we need to
 establish some rules. Submissions which do not conform to these rules
 establish some rules. Submissions which do not conform to these rules
 may be rejected, even when they contain important and valuable stuff.
 may be rejected, even when they contain important and valuable stuff.
 
 
+Patches shall be sent to the u-boot-users mailing list.
 
 
 When you send a patch, please include the following information with
 When you send a patch, please include the following information with
 it:
 it:
@@ -3438,3 +3439,6 @@ Notes:
   (using #ifdef), and the resulting code with the new feature
   (using #ifdef), and the resulting code with the new feature
   disabled must not need more memory than the old code without your
   disabled must not need more memory than the old code without your
   modification.
   modification.
+
+* Remember that there is a size limit of 40 kB per message on the
+  u-boot-users mailing list. Compression may help.

+ 5 - 5
net/net.c

@@ -1405,11 +1405,11 @@ NetReceive(volatile uchar * inpkt, int len)
 
 
 			switch (icmph->type) {
 			switch (icmph->type) {
 			case ICMP_REDIRECT:
 			case ICMP_REDIRECT:
-			if (icmph->code != ICMP_REDIR_HOST)
-				return;
-			puts (" ICMP Host Redirect to ");
-			print_IPaddr(icmph->un.gateway);
-			putc(' ');
+				if (icmph->code != ICMP_REDIR_HOST)
+					return;
+				puts (" ICMP Host Redirect to ");
+				print_IPaddr(icmph->un.gateway);
+				putc(' ');
 				break;
 				break;
 #if (CONFIG_COMMANDS & CFG_CMD_PING)
 #if (CONFIG_COMMANDS & CFG_CMD_PING)
 			case ICMP_ECHO_REPLY:
 			case ICMP_ECHO_REPLY: