net: sockets: Refactoring zsock_recvfrom
net: sockets: Refactoring zsock_recvfrom

Refactor recvfrom code for handling SOCK_DGRAM into zsock_recv_dgram
to align with SOCK_STREAM. Add flags parameter, will be used later.

Signed-off-by: Stig Bjørlykke <ea07fa156e332ba20900aa10589adbee8ec38deb@nordicsemi.no>

zephyriot/zephyr,mbolivar/zephyr,galak/zephyr,finikorg/zephyr,punitvara/zephyr,mbolivar/zephyr,Vudentz/zephyr,GiulianoFranchetto/zephyr,GiulianoFranchetto/zephyr,finikorg/zephyr,explora26/zephyr,GiulianoFranchetto/zephyr,Vudentz/zephyr,punitvara/zephyr,nashif/zephyr,nashif/zephyr,explora26/zephyr,punitvara/zephyr,zephyrproject-rtos/zephyr,kraj/zephyr,Vudentz/zephyr,Vudentz/zephyr,explora26/zephyr,mbolivar/zephyr,galak/zephyr,ldts/zephyr,GiulianoFranchetto/zephyr,ldts/zephyr,kraj/zephyr,ldts/zephyr,zephyrproject-rtos/zephyr,zephyrproject-rtos/zephyr,galak/zephyr,zephyriot/zephyr,GiulianoFranchetto/zephyr,punitvara/zephyr,finikorg/zephyr,punitvara/zephyr,kraj/zephyr,zephyriot/zephyr,zephyriot/zephyr,kraj/zephyr,Vudentz/zephyr,zephyrproject-rtos/zephyr,ldts/zephyr,Vudentz/zephyr,zephyriot/zephyr,mbolivar/zephyr,galak/zephyr,nashif/zephyr,nashif/zephyr,kraj/zephyr,mbolivar/zephyr,explora26/zephyr,explora26/zephyr,finikorg/zephyr,zephyrproject-rtos/zephyr,finikorg/zephyr,galak/zephyr,nashif/zephyr,ldts/zephyr