Commit Graph

3 Commits

Author SHA1 Message Date
Avik Sil eab9584a40 Fix zero checksum in UDP header
As per RFC 768 (UDP), if the computed checksum  is zero, it is transmitted as all ones
(the equivalent in one's complement arithmetic).

Signed-off-by: Avik Sil <aviksil@linux.vnet.ibm.com>
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2014-01-20 17:19:47 +05:30
Avik Sil 0852f3807f Handle router advertisement message properly
process_ra_options was going through infinite loop due to improper handling of option_length.
Also introduction of is_ra_received() makes booting time faster since it returns as soon as
router advertisement mesage is received.

Signed-off-by: Avik Sil <aviksil@linux.vnet.ibm.com>
Signed-off-by: Nikunj A Dadhania <nikunj@linux.vnet.ibm.com>
2014-01-20 17:19:47 +05:30
Avik Sil aee78336b9 Add ipv6 support in net-snk
This patch adds support for booting from a IPv6 network. It gets the boot information
(tftp server, boot file name) from DHCPv6 server or can be specified manually using
obp-tftp arguments. To boot from a IPv6 network, type "boot net:ipv6" from the SLOF
prompt. To specify ipaddresses manually, type "boot net:ipv6,<si6addr>,<filename>,<ci6addr>"
from the SLOF prompt.

This patch is based on the IPv6 code written by the former SLOF team.

Signed-off-by: Avik Sil <aviksil@linux.vnet.ibm.com>
2013-11-17 16:22:03 +05:30