NCS 2.9.0 - nRF9151 mfw 2.0.2 - getsockname not supported?

Is it possible to get to port of an UDP socket (ephemeral, offloaded to modem) with NCS 2.9.0 and mfw 2.0.2?

I tried "getsockname" and get "errno 95 (Operation not supported on socket)".

According zephyr - net: getsockname: fails for bound socket it should be working and fixed for zephyr.

Though I use a modem, it seems that it's not possible to use that.

Is there an there function in NCS?

Parents
  • Hello, 

    and my apologies for the late reply. I was writing an answer on Friday but did not send. 

    The reason for getting errno 95 is due to fact that getsockname is not defined in our lib: nrf\lib\nrf_modem_lib\nrf9x_sockets.c

    Our developers inform me that getsockname is not supported, and ask for a use case. Could you please provide more details for our developers to understand the use case?

    Thank you.

    Kind regards,
    Øyvind

Reply
  • Hello, 

    and my apologies for the late reply. I was writing an answer on Friday but did not send. 

    The reason for getting errno 95 is due to fact that getsockname is not defined in our lib: nrf\lib\nrf_modem_lib\nrf9x_sockets.c

    Our developers inform me that getsockname is not supported, and ask for a use case. Could you please provide more details for our developers to understand the use case?

    Thank you.

    Kind regards,
    Øyvind

Children
Related