net/udp: Fix several issues using connected UDP sockets: sendto() should not accept and address. Normally send() should be used instead. recvfrom() is no longer necessary. recvfrom() and poll() should not reset to accept any addresses but should, instead, only accept inputs and events from the connected remore peer. On of these issues was noted by 李桂丁 <liguiding@pinecone.net>. Changes were made as summarized here: http://www.masterraghu.com/subjects/np/introduction/unix_network_programming_v1.3/ch08lev1sec11.html

This commit is contained in:
Gregory Nutt
2018-04-25 08:43:38 -06:00
parent 31e3f208b2
commit 091e3f732e
10 changed files with 94 additions and 26 deletions
@@ -595,7 +595,7 @@ struct ieee802154_pandesc_s
struct ieee802154_superframespec_s sfspec;
uint8_t gtspermit; /* 0=No GTS requests allowed
uint8_t gtspermit; /* 0=No GTS requests allowed
* 1=GTS request allowed */
uint8_t lqi; /* Link Quality Indication of the beacon */
uint32_t timestamp; /* Time at which the beacon frame was received