-
Notifications
You must be signed in to change notification settings - Fork 137
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Routing configuration issues in the LKL + MP_TCP solution #384
Comments
The set of patches toward mptcp-enable LKL, including multiple routing table support, is now under preparation. The following is a WIP patch, which may fix issue you faced (I assume you're using https://github.com/libos-nuse/lkl-linux/tree/lkl_4.11-mptcp_v0.92). We (@motomuman is actually working) hope to have a PR very soon.
well, we just used standard netlink message (LKL_RTM_NEWRULE etc) to create a rule. |
Thanks, I will check the patches for it. |
@thehajime I applied the patch, and also verified Motomuman's
From the code, it should create one new table with its ifindex * 2 as the table ID, and create specific rules to lookup this table. In my devel env, there's no such one table, and no rules, either. The result for lkl-hijacked
The result for lkl-hijacked
Can you or @motomuman help to re-check the |
Hi @mxi1, could you show me commands you executed?
|
@motomuman Thanks for your reply. It's my fault, I didn't notice the |
Both LKL_HIJACK_NET_GATEWAY and LKL_HIJACK_NET_IFGATEWAY are configurable parameters in this branch.
If LKL_HIJACK_NET_GATEWAY is set, lkl configures default route. Correspond to following.
|
@motomuman Thanks for your patient answer. 👍 ,I will try it tomorrow. |
Hi @thehajime , I notieced there had already one LKL + MP_TCP code base. I tired this on my desktop and found some problems for the routing configuration of the LKL-hijacked MP_TCP app, hope you have some instructions for them.
From the MP_TCP wiki pages, this link Manual configuration shows how to configure the routing policies for the interfaces. It mentioned we could create specific poclies entries for the specific interface/address+gateway, like this:
From my understanding, the LKL-hijacked
ip route
command will manage the LKL kernel's router table, so we can use the router-related commands/APIs to add/update the router table when initiliazing the hijack environment.However, for controlling the policy table, it seems the
ip rule
commands can't access the policy table in the hijacked environment. When I am running the commandip rule list
, under the Android shell, the output looks like this:I tried to run something like hijacked
ip rule add iif wlan0 xxx xxx
commands, the results is similar, like this:Besides, I also searched the C/C++ API documentations for
ip rule
, and find this: Is there an C/C++ API for adding/removing rules?.If convenient, could you give some guides on this problem? Thanks.
The text was updated successfully, but these errors were encountered: