pxe: disentangle the legacy and lwip stacks without #ifdef
commit66d551acdb0d516f43702983184483687c2128e4
authorH. Peter Anvin <hpa@linux.intel.com>
Thu, 28 Mar 2013 21:14:20 +0000 (28 14:14 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 28 Mar 2013 21:14:20 +0000 (28 14:14 -0700)
tree61c263c4bb15a192909c6f2928cd430ffaf31f52
parenta107cb3b6fa219cf5f65bef366c9b00b108e9a3a
pxe: disentangle the legacy and lwip stacks without #ifdef

Disentangle the dependencies via the legacy and the lwip stacks.  Now
there are no more #ifdefs (except for a single one in pxelinux.asm)
and the only difference between the pxelinux and lpxelinux archives
are which files are included.

To make this happen:

1. Replace the private part of the socket structure with a union.
2. Move the list of URL methods into a stack-dependent file.

Reported-by: Josh Triplett <josh@joshtriplett.org>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
core/Makefile
core/fs/pxe/core.c
core/fs/pxe/ftp.c
core/fs/pxe/http.c
core/fs/pxe/pxe.c
core/fs/pxe/pxe.h
core/fs/pxe/tcp.c
core/legacynet/core.c