-
Notifications
You must be signed in to change notification settings - Fork 24
Max mtu #246
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
Max mtu #246
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -102,7 +102,7 @@ static int iface_ipip_fini(struct iface *iface) { | |
| static int iface_ipip_init(struct iface *iface, const void *api_info) { | ||
| const struct gr_iface conf = { | ||
| .flags = iface->flags, | ||
| .mtu = iface->mtu, | ||
| .mtu = iface->mtu ?: 1480, | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In which case, iface->mtu is zero ?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unless users have specified a value for mtu in the initial interface creation message, it will be 0. It was OK until now since we'll drop packets that are bigger than output interface MTU. I chose to initialize it to 1480 which seems like a good default. |
||
| .mode = iface->mode, | ||
| .vrf_id = iface->vrf_id | ||
| }; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.