mirror of
https://github.com/apache/nuttx.git
synced 2026-08-13 00:15:09 +00:00
net/sockopt: move BINDTODEVICE to socket level
rename the UDP_BINDTODEVICE to SO_BINDTODEVICE to follow the linux style to be compatible with non-UDP protocol binding requirements Signed-off-by: chao.an <anchao@xiaomi.com>
This commit is contained in:
parent
50177dbae1
commit
9cb17841d8
17 changed files with 76 additions and 185 deletions
|
|
@ -200,6 +200,8 @@
|
|||
#define SO_TIMESTAMP 16 /* Generates a timestamp for each incoming packet
|
||||
* arg: integer value
|
||||
*/
|
||||
#define SO_BINDTODEVICE 17 /* Bind this socket to a specific network device.
|
||||
*/
|
||||
|
||||
/* The options are unsupported but included for compatibility
|
||||
* and portability
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue