1. 14 8月, 2007 2 次提交
    • J
      [IPV4]: Clean up duplicate includes in net/ipv4/ · f49f9967
      Jesper Juhl 提交于
      This patch cleans up duplicate includes in
      	net/ipv4/
      Signed-off-by: NJesper Juhl <jesper.juhl@gmail.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      f49f9967
    • J
      [IPCONFIG]: ip_auto_config fix · dcbdc93c
      Joakim Tjernlund 提交于
      The following commandline:
      
       root=/dev/mtdblock6 rw rootfstype=jffs2 ip=192.168.1.10:::255.255.255.0:localhost.localdomain:eth1:off console=ttyS0,115200
      
      makes ip_auto_config fall back to DHCP and complain "IP-Config: Incomplete
      network configuration information." depending on if CONFIG_IP_PNP_DHCP is
      set or not.
      
      The only way I can make ip_auto_config accept my IP config is to add an
      entry for the server IP:
      
      ip=192.168.1.10:192.168.1.15::255.255.255.0:localhost.localdomain:eth1:off
      
      I think this is a bug since I am not using a NFS root FS.
      
      The following patch fixes the above problem.
      
      From: Andrew Morton <akpm@linux-foundation.org>
      
      Davem said (in February!):
      
        Well, first of all the change in question is not in 2.4.x either.  I just
        checked the current 2.4.x GIT tree and the test is exactly:
      
      	if (ic_myaddr == INADDR_NONE ||
      #ifdef CONFIG_ROOT_NFS
      	    (MAJOR(ROOT_DEV) == UNNAMED_MAJOR
      	     && root_server_addr == INADDR_NONE
      	     && ic_servaddr == INADDR_NONE) ||
      #endif
      	    ic_first_dev->next) {
      
        which matches 2.6.x
      
        I even checked 2.4.x when it was branched for 2.5.x and the test was the
        same at the point in time too.
      
        Looking at the proposed change a bit it appears that it is probably
        correct, as it's trying to check that ROOT_DEV is nfs root.  But if it is
        correct then the UNNAMED_MAJOR comparison in the same code block should be
        removed as it becomes superfluous.
      
        I'm happy to apply this patch with that modification made.
      Signed-off-by: NJoakim Tjernlund <joakim.tjernlund@transmode.se>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      dcbdc93c
  2. 08 8月, 2007 3 次提交
  3. 03 8月, 2007 6 次提交
  4. 01 8月, 2007 1 次提交
  5. 31 7月, 2007 7 次提交
  6. 27 7月, 2007 1 次提交
  7. 25 7月, 2007 1 次提交
  8. 21 7月, 2007 1 次提交
    • P
      [IPV4]: Fix inetpeer gcc-4.2 warnings · fc7b9380
      Patrick McHardy 提交于
        CC      net/ipv4/inetpeer.o
      net/ipv4/inetpeer.c: In function 'unlink_from_pool':
      net/ipv4/inetpeer.c:297: warning: the address of 'stack' will always evaluate as 'true'
      net/ipv4/inetpeer.c:297: warning: the address of 'stack' will always evaluate as 'true'
      net/ipv4/inetpeer.c: In function 'inet_getpeer':
      net/ipv4/inetpeer.c:409: warning: the address of 'stack' will always evaluate as 'true'
      net/ipv4/inetpeer.c:409: warning: the address of 'stack' will always evaluate as 'true'
      
      "Fix" by checking for != NULL.
      Signed-off-by: NPatrick McHardy <kaber@trash.net>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      fc7b9380
  9. 20 7月, 2007 4 次提交
  10. 19 7月, 2007 1 次提交
  11. 18 7月, 2007 1 次提交
  12. 15 7月, 2007 9 次提交
  13. 12 7月, 2007 3 次提交