Skip to content
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

skb_dst_update_pmtu in ip_vti.c: Used but not implemented? #2581

Closed
Alex332211 opened this issue Jun 12, 2018 · 3 comments
Closed

skb_dst_update_pmtu in ip_vti.c: Used but not implemented? #2581

Alex332211 opened this issue Jun 12, 2018 · 3 comments

Comments

@Alex332211
Copy link

Hello,

I have a RPi2 running 4.9.y (since that's the version available when I got the board). For using a VPN software, there's have to be ip_vti module loaded. Hence I've got linux-rpi-4.9.y, installed the appropriate packages for includes to be available and finally, ip_vti.c compiled into ip_vti.ko without a hitch.

Now a new board came along (still RPi2), which has 4.14.34-v7+ installed, which seems to be the current stable version of raspbian. But now, I unable to compile ip_vti.c. Make throws error of skb_dst_update_pmtu being implicit declaration error.

To my surprise, I'm indeed unable to find its' declaration. Are we missing a "h" file to be included? Is there something else with current ip_vtc.c source code? How can we compile it successfully?

Thank you/

@pelwell
Copy link
Contributor

pelwell commented Jun 12, 2018

I think you have the wrong (or even a mixed) version of the source checked out. The 4.14.34 release was made from commit f70eae4. That predates commit 6a3c946 that introduce the skb_dst_update_pmtu helper function.

Enabling CONFIG_NET_IPVTI=m builds the required module, and works at both commits listed above. You can set the current working directory to any specific commit using git checkout <hash>, e.g.:

$ git checkout f70eae4

Note that in order to wind backwards like that you mustn't use the --depth 1 option to git clone.

That compiled module is only 16kB and it sounds like it might be generally useful. Do you want to turn your issue into a request to build it as part of the standard kernel releases?

pelwell pushed a commit that referenced this issue Jun 12, 2018
See: #2581

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
@pelwell
Copy link
Contributor

pelwell commented Jun 12, 2018

I've gone ahead and added the setting anyway - the ip_vti module will be in future kernel builds.

@Alex332211
Copy link
Author

Hello pelwell,

IMHO that's the right thing to do. VTI module is needed for many real world VPN implementations, aside only really special compatibility issues (with particular opposite end gateways). That will make it much easier and achievable for many, since not everybody know how compile kernel modules.

As for version differences you've mentioned above - maybe it's my lack of knowledge, but the only way I'm familiar with to get linux-rpi sources, is to download them here. The only thing is, they're not available for 3.14.34 specifically (to my knowledge), but instead as 3.14.y.

I've already was able to find exactly that diff (though in other OS release, namely DD-WRT), changed the source file accordingly and it compiled and inserted successfully.

Anyhow, providing the module available in the first place, is the right thing to do. Thank you!

@pelwell pelwell closed this as completed Jun 14, 2018
popcornmix added a commit to raspberrypi/firmware that referenced this issue Jun 14, 2018
kernel: net: lan78xx: Disable TCP Segmentation Offload (TSO)
See: raspberrypi/linux#2449
See: raspberrypi/linux#2482

kernel: config: Add CONFIG_NET_IPVTI=m
See: raspberrypi/linux#2581

kernel: config: Add CONFIG_SPI_GPIO
See: raspberrypi/linux#2318

kernel: sc16is7xx: Fix for Unexpected interrupt: 8
See: raspberrypi/linux#2529
popcornmix added a commit to Hexxeh/rpi-firmware that referenced this issue Jun 14, 2018
kernel: net: lan78xx: Disable TCP Segmentation Offload (TSO)
See: raspberrypi/linux#2449
See: raspberrypi/linux#2482

kernel: config: Add CONFIG_NET_IPVTI=m
See: raspberrypi/linux#2581

kernel: config: Add CONFIG_SPI_GPIO
See: raspberrypi/linux#2318

kernel: sc16is7xx: Fix for Unexpected interrupt: 8
See: raspberrypi/linux#2529
pelwell pushed a commit that referenced this issue Jun 19, 2018
See: #2581

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
pelwell pushed a commit that referenced this issue Jun 19, 2018
See: #2581

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
popcornmix pushed a commit that referenced this issue Jun 27, 2018
See: #2581

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
popcornmix pushed a commit that referenced this issue Jul 9, 2018
See: #2581

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
popcornmix pushed a commit that referenced this issue Jul 9, 2018
See: #2581

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
popcornmix pushed a commit that referenced this issue Jul 20, 2018
See: #2581

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
popcornmix pushed a commit that referenced this issue Jul 25, 2018
See: #2581

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
popcornmix pushed a commit that referenced this issue Jul 30, 2018
See: #2581

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
popcornmix pushed a commit that referenced this issue Jul 30, 2018
See: #2581

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
popcornmix pushed a commit that referenced this issue Aug 7, 2018
See: #2581

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
popcornmix pushed a commit that referenced this issue Aug 14, 2018
See: #2581

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
popcornmix pushed a commit that referenced this issue Aug 14, 2018
See: #2581

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
popcornmix pushed a commit that referenced this issue Aug 22, 2018
See: #2581

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
popcornmix pushed a commit that referenced this issue Aug 22, 2018
See: #2581

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
popcornmix pushed a commit that referenced this issue Aug 29, 2018
See: #2581

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
popcornmix pushed a commit that referenced this issue Aug 29, 2018
See: #2581

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
popcornmix pushed a commit that referenced this issue Sep 5, 2018
See: #2581

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
popcornmix pushed a commit that referenced this issue Sep 10, 2018
See: #2581

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
popcornmix pushed a commit that referenced this issue Sep 17, 2018
See: #2581

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
popcornmix pushed a commit that referenced this issue Sep 21, 2018
See: #2581

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
popcornmix pushed a commit that referenced this issue Sep 26, 2018
See: #2581

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
popcornmix pushed a commit that referenced this issue Oct 1, 2018
See: #2581

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
popcornmix pushed a commit that referenced this issue Oct 8, 2018
See: #2581

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
popcornmix pushed a commit that referenced this issue Oct 15, 2018
See: #2581

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
popcornmix pushed a commit that referenced this issue Oct 22, 2018
See: #2581

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
popcornmix pushed a commit that referenced this issue Nov 4, 2018
See: #2581

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
popcornmix pushed a commit that referenced this issue Nov 12, 2018
See: #2581

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
popcornmix pushed a commit that referenced this issue Nov 15, 2018
See: #2581

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
lyakh pushed a commit to lyakh/linux that referenced this issue Nov 19, 2018
See: raspberrypi/linux#2581

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
popcornmix pushed a commit that referenced this issue Nov 21, 2018
See: #2581

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
shalxmva pushed a commit to shalxmva/ubuntu-cosmic that referenced this issue Jan 17, 2019
See: raspberrypi/linux#2581

Signed-off-by: Phil Elwell <phil@raspberrypi.org>
(cherry picked from commit 8442fc129d39d4d44a8e3d850c5d89863a48f7b6)
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants