[ipxe-devel] [ipxe/ipxe] [efi] Enable NET_PROTO_IPV6 by default (#84)

Tore Anderson notifications at github.com
Thu Dec 5 20:07:52 UTC 2019


toreanderson commented on this pull request.



> @@ -35,7 +35,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
  */
 
 #define	NET_PROTO_IPV4		/* IPv4 protocol */
-#undef	NET_PROTO_IPV6		/* IPv6 protocol */
+//#define	NET_PROTO_IPV6		/* IPv6 protocol */

IIRC because this file (`src/config/general.h`) is included ***after*** `src/config/defaults/efi.h`. Thus, if the `#undef NET_PROTO_IPV6` is left unchanged here, it ends up overrides the newly added `#define NET_PROTO_IPV6` from `src/config/defaults/efi.h`.

Changing it to `//#define` follows the `IMAGE_EFI` example:
https://github.com/ipxe/ipxe/blob/7656bf6a333a63e1da3483cf0b2a814252f56161/src/config/general.h#L113
https://github.com/ipxe/ipxe/blob/7656bf6a333a63e1da3483cf0b2a814252f56161/src/config/defaults/efi.h#L30

This logic accomplishes making the define in question default enabled for the EFI platform, while at the same time leaving it default disabled for all other platforms (unless explicitly disabled for some other specific platforms too).

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/ipxe/ipxe/pull/84#discussion_r354522580
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ipxe.org/pipermail/ipxe-devel/attachments/20191205/75bf5e0f/attachment.htm>


More information about the ipxe-devel mailing list