aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2020-07-15 18:46:58 +0100
committerMichael Brown <mcb30@ipxe.org>2020-07-15 18:46:58 +0100
commita95a2eafc58b921431cbd53fc0cbff6a1a7761d1 (patch)
tree96dc1a59f580045d0d75067c0836700cc2d707ef /src/core
parent78ca890c35d6979fe62fa66e16e7501abb831034 (diff)
downloadipxe-a95a2eafc58b921431cbd53fc0cbff6a1a7761d1.zip
ipxe-a95a2eafc58b921431cbd53fc0cbff6a1a7761d1.tar.gz
ipxe-a95a2eafc58b921431cbd53fc0cbff6a1a7761d1.tar.bz2
[xfer] Remove address family from definition of a socket opener
All implemented socket openers provide definitions for both IPv4 and IPv6 using exactly the same opener method. Simplify the logic by omitting the address family from the definition. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/core')
-rw-r--r--src/core/open.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/open.c b/src/core/open.c
index 9d665ff..c27d8a0 100644
--- a/src/core/open.c
+++ b/src/core/open.c
@@ -147,10 +147,8 @@ int xfer_open_socket ( struct interface *intf, int semantics,
socket_family_name ( peer->sa_family ) );
for_each_table_entry ( opener, SOCKET_OPENERS ) {
- if ( ( opener->semantics == semantics ) &&
- ( opener->family == peer->sa_family ) ) {
+ if ( opener->semantics == semantics )
return opener->open ( intf, peer, local );
- }
}
DBGC ( INTF_COL ( intf ), "INTF " INTF_FMT " attempted to open "