1. 20 Mar, 2016 1 commit
  2. 19 Mar, 2016 1 commit
  3. 26 Feb, 2016 1 commit
    • Josef Bacik's avatar
      net: fix ipv6 routing · eb9f401f
      Josef Bacik authored
      ipv6 routing in grub2 is broken, we cannot talk to anything outside our local
      network or anything that doesn't route in our global namespace.  This patch
      fixes this by doing a couple of things
      
      1) Read the router information off of the router advertisement.  If we have a
      router lifetime we need to take the source address and create a route from it.
      
      2) Changes the routing stuff slightly to allow you to specify a gateway _and_ an
      interface.  Since the router advertisements come in on the link local address we
      need to associate it with the global address on the card.  So when we are
      processing the router advertisement, either use the SLAAC interface we create
      and add the route to that interface, or loop through the global addresses we
      currently have on our interface and associate it with one of those addresses.
      We need to have a special case here for the default route so that it gets used,
      we do this by setting the masksize to 0 to mean it encompasses all networks.
      The routing code will automatically select the best route so if there is a
      closer match we will use that.
      
      With this patch I can now talk to ipv6 addresses outside of my local network.
      Thanks,
      Signed-off-by: 's avatarJosef Bacik <jbacik@fb.com>
      eb9f401f
  4. 18 May, 2015 1 commit
    • Andrei Borzenkov's avatar
      bootp: ignore gateway_ip (relay) field. · a666c8bd
      Andrei Borzenkov authored
      From RFC1542:
      
         The 'giaddr' field is rather poorly named.  It exists to facilitate
         the transfer of BOOTREQUEST messages from a client, through BOOTP
         relay agents, to servers on different networks than the client.
         Similarly, it facilitates the delivery of BOOTREPLY messages from the
         servers, through BOOTP relay agents, back to the client.  In no case
         does it represent a general IP router to be used by the client.  A
         BOOTP client MUST set the 'giaddr' field to zero (0.0.0.0) in all
         BOOTREQUEST messages it generates.
      
         A BOOTP client MUST NOT interpret the 'giaddr' field of a BOOTREPLY
         message to be the IP address of an IP router.  A BOOTP client SHOULD
         completely ignore the contents of the 'giaddr' field in BOOTREPLY
         messages.
      
      Leave code ifdef'd out for the time being in case we see regression.
      
      Suggested by: Rink Springer <rink@rink.nu>
      Closes: 43396
      a666c8bd
  5. 22 Sep, 2014 1 commit
  6. 05 Feb, 2014 1 commit
  7. 21 Dec, 2013 1 commit
  8. 07 Nov, 2013 2 commits
  9. 06 Nov, 2013 1 commit
  10. 20 Oct, 2013 1 commit
  11. 15 Jul, 2013 1 commit
  12. 11 May, 2013 1 commit
  13. 07 May, 2013 1 commit
  14. 20 Jan, 2013 1 commit
  15. 28 Nov, 2012 1 commit
  16. 22 Jun, 2012 3 commits
  17. 21 Jun, 2012 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Respect netmask from bootp/dhcp. · d6b7c7c9
      Vladimir 'phcoder' Serbinenko authored
      	* grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
      	(grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
      	* grub-core/net/net.c (grub_net_add_addr): Split creating local route
      	into ...
      	(grub_net_add_ipv4_local): ... this.
      	(grub_cmd_addaddr): Use grub_net_add_ipv4_local.
      	* include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
      	(grub_net_add_ipv4_local): New proto.
      d6b7c7c9
  18. 09 Jun, 2012 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      Stop polling as soon as we have the packet we were waiting for. · 96f7e60e
      Vladimir 'phcoder' Serbinenko authored
      	* include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
      	All users updated.
      	* grub-core/net/arp.c (have_pending): New var.
      	(pending_req): Likewise.
      	(grub_net_arp_send_request): Fill pending_req and use have_pending as
      	stop indicator.
      	(grub_net_arp_receive): Set have_pending.
      	* grub-core/net/dns.c (recv_data): New field stop.
      	(recv_hook): Set stop.
      	(grub_net_dns_lookup): Init stop and use as stop condition.
      	* grub-core/net/http.c (http_establish): Use headers_recv as stop
      	condition.
      	* grub-core/net/net.c (grub_net_poll_cards): New argument
      	stop_condition. Stop when it goes true.
      	* grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
      	indicator.
      	* grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
      96f7e60e
  19. 08 May, 2012 1 commit
  20. 07 Apr, 2012 1 commit
  21. 12 Feb, 2012 1 commit
  22. 08 Feb, 2012 1 commit
  23. 16 Dec, 2011 1 commit
  24. 12 Nov, 2011 1 commit
    • Vladimir 'phcoder' Serbinenko's avatar
      * grub-core/commands/acpihalt.c: Gettextized. · 6e0632e2
      Vladimir 'phcoder' Serbinenko authored
      	* grub-core/commands/cacheinfo.c: Likewise.
      	* grub-core/commands/cmp.c: Likewise.
      	* grub-core/commands/efi/loadbios.c: Likewise.
      	* grub-core/commands/gptsync.c: Likewise.
      	* grub-core/commands/ieee1275/suspend.c: Likewise.
      	* grub-core/commands/legacycfg.c: Likewise.
      	* grub-core/commands/memrw.c: Likewise.
      	* grub-core/commands/minicmd.c: Likewise.
      	* grub-core/commands/parttool.c: Likewise.
      	* grub-core/commands/time.c: Likewise.
      	* grub-core/commands/videoinfo.c: Likewise.
      	* grub-core/disk/geli.c: Likewise.
      	* grub-core/disk/i386/pc/biosdisk.c: Likewise.
      	* grub-core/disk/luks.c: Likewise.
      	* grub-core/disk/lvm.c: Likewise.
      	* grub-core/font/font_cmd.c: Likewise.
      	* grub-core/fs/zfs/zfscrypt.c: Likewise.
      	* grub-core/fs/zfs/zfsinfo.c: Likewise.
      	* grub-core/gfxmenu/view.c: Likewise.
      	* grub-core/kern/emu/hostdisk.c: Likewise.
      	* grub-core/kern/emu/main.c: Likewise.
      	* grub-core/kern/emu/misc.c: Likewise.
      	* grub-core/kern/emu/mm.c: Likewise.
      	* grub-core/kern/mips/arc/init.c: Likewise.
      	* grub-core/kern/mips/loongson/init.c: Likewise.
      	* grub-core/kern/partition.c: Likewise.
      	* grub-core/lib/i386/halt.c: Likewise.
      	* grub-core/lib/mips/arc/reboot.c: Likewise.
      	* grub-core/lib/mips/loongson/reboot.c: Likewise.
      	* grub-core/loader/i386/pc/chainloader.c: Likewise.
      	* grub-core/loader/i386/xnu.c: Likewise.
      	* grub-core/loader/multiboot.c: Likewise.
      	* grub-core/net/bootp.c: Likewise.
      	* grub-core/net/net.c: Likewise.
      	* grub-core/normal/term.c: Likewise.
      	* grub-core/partmap/bsdlabel.c: Likewise.
      	* grub-core/parttool/msdospart.c: Likewise.
      	* grub-core/term/gfxterm.c: Likewise.
      	* grub-core/term/terminfo.c: Likewise.
      	* grub-core/video/i386/pc/vbe.c: Likewise.
      	* util/grub-menulst2cfg.c: Likewise.
      	* util/grub-mkdevicemap.c: Likewise.
      	* util/grub-mklayout.c: Likewise.
      	* util/grub-mkrelpath.c: Likewise.
      	* util/grub-script-check.c: Likewise.
      	* util/ieee1275/grub-ofpathname.c: Likewise.
      	* util/resolve.c: Likewise.
      6e0632e2
  25. 14 Oct, 2011 2 commits
  26. 13 Oct, 2011 2 commits
  27. 12 Oct, 2011 1 commit
  28. 06 Oct, 2011 1 commit
  29. 10 Jul, 2011 1 commit
  30. 08 Jul, 2011 1 commit
  31. 06 Jul, 2011 2 commits