public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* Using the TCP->Accept interface.
@ 2021-07-12  7:07 Ken Taylor
  2021-07-12 14:52 ` [edk2-devel] " Maciej Rabeda
  0 siblings, 1 reply; 2+ messages in thread
From: Ken Taylor @ 2021-07-12  7:07 UTC (permalink / raw)
  To: devel@edk2.groups.io

[-- Attachment #1: Type: text/plain, Size: 622 bytes --]

Hi all,

I hate to ask this, but has anyone used or tested the standard NetworkPkg TCP driver's socket Accept functionality?  I've been trying to listen for a connection, but I can't seem to figure out how to configure the TCP interface correctly for this.

I know the local IP address and listening port, but obviously the remote IP address and port won't be defined until a connection is established.  But if I try to configure one thing without the other, I get all kinds of EFI_INVALID_PARAMETER errors.  And if I don't specify anything but the listening port, I nothing seems able to connect.

Regards,
-Ken.

[-- Attachment #2: Type: text/html, Size: 2727 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [edk2-devel] Using the TCP->Accept interface.
  2021-07-12  7:07 Using the TCP->Accept interface Ken Taylor
@ 2021-07-12 14:52 ` Maciej Rabeda
  0 siblings, 0 replies; 2+ messages in thread
From: Maciej Rabeda @ 2021-07-12 14:52 UTC (permalink / raw)
  To: devel, Ken_Taylor

[-- Attachment #1: Type: text/plain, Size: 1091 bytes --]

Hi Ken,

When calling Tcp4->Configure(), what is your 
EFI_TCP4_CONFIG_DATA.AccessPoint.ActiveFlag value?
ActiveFlag should be set to FALSE and RemoteAddress set to zero in order 
to accept connection requests from any address.

You should be able to double check the fields above by calling 
Tcp4->GetModeData() right before Tcp4->Accept() and analyzing 
Ip4ConfigData result.

Thanks,
Maciej

On 12-Jul-21 09:07, Ken Taylor wrote:
>
> Hi all,
>
> I hate to ask this, but has anyone used or tested the standard 
> NetworkPkg TCP driver’s socket Accept functionality?  I’ve been trying 
> to listen for a connection, but I can’t seem to figure out how to 
> configure the TCP interface correctly for this.
>
> I know the local IP address and listening port, but obviously the 
> remote IP address and port won’t be defined until a connection is 
> established.  But if I try to configure one thing without the other, I 
> get all kinds of EFI_INVALID_PARAMETER errors.  And if I don’t specify 
> anything but the listening port, I nothing seems able to connect.
>
> Regards,
>
> -Ken.
>
> 


[-- Attachment #2: Type: text/html, Size: 3201 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-07-12 14:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-07-12  7:07 Using the TCP->Accept interface Ken Taylor
2021-07-12 14:52 ` [edk2-devel] " Maciej Rabeda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox