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

Sittun: add Proto field #531

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Sittun: add Proto field #531

wants to merge 1 commit into from

Conversation

gdetal
Copy link

@gdetal gdetal commented Mar 30, 2020

This corresponds to the mode parameter of the ip link command.

The options are:
mode { ip6ip | ipip | any }

Where:

  • any: 0
  • ip6ip: IPPROTO_IPV6
  • ipip: IPPROTO_IPIP

Signed-off-by: Gregory Detal [email protected]

This corresponds to the `mode` parameter of the ip link command.

The options are:
  mode { ip6ip | ipip | any }

Where:
 - any: 0
 - ip6ip: IPPROTO_IPV6
 - ipip: IPPROTO_IPIP

Signed-off-by: Gregory Detal <[email protected]>
@aboch
Copy link
Collaborator

aboch commented Jun 3, 2020

Would it be possible to add a simple UT for this ?

@@ -2674,6 +2674,7 @@ func addSittunAttrs(sittun *Sittun, linkInfo *nl.RtAttr) {
data.AddRtAttr(nl.IFLA_IPTUN_ENCAP_FLAGS, nl.Uint16Attr(sittun.EncapFlags))
data.AddRtAttr(nl.IFLA_IPTUN_ENCAP_SPORT, htons(sittun.EncapSport))
data.AddRtAttr(nl.IFLA_IPTUN_ENCAP_DPORT, htons(sittun.EncapDport))
data.AddRtAttr(nl.IFLA_IPTUN_PROTO, nl.Uint8Attr(sittun.Proto))
}

func parseSittunData(link Link, data []syscall.NetlinkRouteAttr) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Don't we also need to be able to read this field?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@gdetal Don't we need to also modify parseSittunData() ?

Copy link
Collaborator

Choose a reason for hiding this comment

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

ping...

@vishvananda vishvananda changed the base branch from master to main January 12, 2022 22:37
@vishvananda vishvananda reopened this Jan 12, 2022
@aboch
Copy link
Collaborator

aboch commented Aug 23, 2024

@gdetal

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.

3 participants