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

Add support for Linux Kernel GTP-U in v1 package #34

Merged
merged 1 commit into from
Jul 10, 2019
Merged

Conversation

wmnsk
Copy link
Owner

@wmnsk wmnsk commented Jul 10, 2019

Implemented some APIs to handle Linux Kernel GTP-U via netlink with vishvananda/netlink. Userland GTP-U encap/decap/forwarding is still available for non-Linux users.

}

if pdp, _ := netlink.GTPPDPByMSAddress(u.GTPLink, msIP); pdp != nil {
netlink.GTPPDPDel(u.GTPLink, pdp)

Choose a reason for hiding this comment

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

Error return value of netlink.GTPPDPDel is not checked (from errcheck)

netlink.GTPPDPDel(u.GTPLink, pdp)
}
if pdp, _ := netlink.GTPPDPByITEI(u.GTPLink, int(itei)); pdp != nil {
netlink.GTPPDPDel(u.GTPLink, pdp)

Choose a reason for hiding this comment

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

Error return value of netlink.GTPPDPDel is not checked (from errcheck)

@wmnsk wmnsk merged commit dc37c75 into master Jul 10, 2019
@wmnsk wmnsk deleted the v1-kernel-gtp branch August 11, 2019 13:53
@wmnsk wmnsk mentioned this pull request Dec 30, 2019
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

Successfully merging this pull request may close these issues.

None yet

2 participants