-
Notifications
You must be signed in to change notification settings - Fork 76
IPv4 only support for some UDP features at TizenRT #92
Conversation
See: |
Please fix the DCO in the commit message. |
@pmarcinkiew rebase please |
3e9a9ce
to
b38b835
Compare
Could you merge this PR? |
src/unix/udp.c
Outdated
* than not being able to set TTL at all for. | ||
*/ | ||
static int get_ipv6_unicast_hops() { | ||
return -1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong indentation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/unix/udp.c
Outdated
return -1; | ||
} | ||
static int get_ipv6_multicast_hops() { | ||
return -1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/unix/udp.c
Outdated
return -1; | ||
} | ||
static int get_ipv6_multicast_loop() { | ||
return -1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/unix/udp.c
Outdated
} | ||
#else | ||
static int get_ipv6_unicast_hops() { | ||
return IPV6_UNICAST_HOPS; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/unix/udp.c
Outdated
return IPV6_UNICAST_HOPS; | ||
} | ||
static int get_ipv6_multicast_hops() { | ||
return IPV6_MULTICAST_HOPS; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/unix/udp.c
Outdated
return IPV6_MULTICAST_HOPS; | ||
} | ||
static int get_ipv6_multicast_loop() { | ||
return IPV6_MULTICAST_LOOP; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ditto
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/unix/udp.c
Outdated
} else { | ||
assert(0 && "unexpected address family"); | ||
abort(); | ||
} | ||
|
||
return 0; | ||
} | ||
#endif | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary empty lines
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/unix/udp.c
Outdated
static int get_ipv6_multicast_loop() { | ||
return IPV6_MULTICAST_LOOP; | ||
} | ||
#endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#endif /* defined(__TIZENRT__) */
b38b835
to
4c9d04c
Compare
Several UDP features were enabled for IPv4 only implementations in Nuttx/TizenRT. libtuv-DCO-1.0-Signed-off-by: Piotr Marcinkiewicz [email protected]
4c9d04c
to
c3ff295
Compare
} | ||
#else | ||
static int get_ipv6_unicast_hops() { | ||
return IPV6_UNICAST_HOPS; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#93 introduced these macros. Wouldn't be better to change them to -1
at line 72:80?
In my opinion #93 solves issue I was investigating. Let's close this PR. |
Several UDP features were enabled for IPv4 only implementations in TizenRT.
Enabled functions:
uv_udp_set_ttl, uv_udp_set_multicast_ttl, uv_udp_set_multicast_loop, uv_udp_set_multicast_interface