-
Notifications
You must be signed in to change notification settings - Fork 337
Can't find MPTCP_ENABLED define #496
Comments
Hello,
It is available in kernel's uAPI, e.g. in #ifndef MPTCP_ENABLED
#define MPTCP_ENABLED 42
#endif The value should always be 42. |
Thanks for your reply! It is really helpful for me. |
On Debian, you can have multiple kernels installed and you might not have the So first, check that you installed the |
thanks for your answer. cd /usr/src/mptcp
make menuconfig
make -j $(getconf _NPROCESSORS_ONLN) deb-pkg -I/usr/src/linux-headers-$(uname -r)/include/uapi
sudo dpkg -i ../linux-image*.deb ../linux-headers*.deb
reboot Is there something wrong? |
Hello,
But again, it might be easier to modify your userspace program and (re)define what is not defined in the files from your Linux distribution, e.g. #ifndef MPTCP_ENABLED
#define MPTCP_ENABLED 42
#endif |
Hello
The version of kernel is 4.19, and the mptcp I used is 0.95 out of tree. I code
setsockopt(fd, SOL_TCP, MPTCP_ENABLED, &enable, sizeof(enable));
as the same as https://multipath-tcp.org/pmwiki.php/Users/ConfigureMPTCP. But there is no define of MPTCP_ENABLED in the head file. I have included `#include <netinet/in.h>#include <arpa/inet.h>
#include <time.h>
#include <linux/tcp.h>
#include <linux/mptcp.h>
`
Then I check the /usr/include/linux/mptcp.h, MPTCP_PATH_MANAGER and some struct like mptcp_meta_info don't exit too. Did I miss other head files?
The text was updated successfully, but these errors were encountered: