Skip to content
This repository was archived by the owner on Dec 1, 2020. It is now read-only.

IPv4 only support for some UDP features at TizenRT #92

Closed
wants to merge 1 commit into from

Conversation

pmarcinkiew
Copy link
Contributor

@pmarcinkiew pmarcinkiew commented Sep 4, 2017

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

@pmarcinkiew
Copy link
Contributor Author

See:

#89

@LaszloLango
Copy link
Contributor

Please fix the DCO in the commit message.

@yichoi
Copy link
Contributor

yichoi commented Sep 5, 2017

@pmarcinkiew rebase please

@pmarcinkiew pmarcinkiew force-pushed the dgram_ttl_loop branch 2 times, most recently from 3e9a9ce to b38b835 Compare September 6, 2017 13:23
@pmarcinkiew
Copy link
Contributor Author

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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong indentation

Copy link
Contributor Author

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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Copy link
Contributor Author

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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Copy link
Contributor Author

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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Copy link
Contributor Author

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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Copy link
Contributor Author

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;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

Copy link
Contributor Author

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


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unnecessary empty lines

Copy link
Contributor Author

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#endif /* defined(__TIZENRT__) */

Several UDP features were enabled for IPv4 only implementations in
Nuttx/TizenRT.

libtuv-DCO-1.0-Signed-off-by: Piotr Marcinkiewicz [email protected]
}
#else
static int get_ipv6_unicast_hops() {
return IPV6_UNICAST_HOPS;
Copy link
Contributor

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?

@pmarcinkiew
Copy link
Contributor Author

In my opinion #93 solves issue I was investigating. Let's close this PR.

@pmarcinkiew pmarcinkiew closed this Sep 8, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants