mirror of
https://github.com/ipxe/ipxe
synced 2025-12-29 11:03:15 +03:00
[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>
This commit is contained in:
@@ -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 "
|
||||
|
||||
Reference in New Issue
Block a user