8000 Buffer packets with sequence numbers in GTP header. by chen042531 · Pull Request #132 · free5gc/gtp5g · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Buffer packets with sequence numbers in GTP header. #132

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

Merged

Conversation

chen042531
Copy link
Contributor

Add new attribute sequence numbers for buffered packets.

src/gtpu/encap.c Outdated
@@ -417,7 +419,8 @@ static int netlink_send(struct pdr *pdr, struct far *far, struct sk_buff *skb_in
nla_total_size_64bit(8) +
Copy link
Collaborator

Choose a reason for hiding this comment

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

            nla_total_size_64bit(8) + // SEID
                nla_total_size(2) + // PDR ID
                nla_total_size(2) + // Action
                nla_total_size(2) + // Sequence Num
                nla_total_size(skb_in->len), // Buff Pkt Size

@chen042531 chen042531 force-pushed the buffer-packets-with-sequence-numbers branch from 773e393 to f3e5855 Compare January 13, 2025 12:44
src/gtpu/encap.c Outdated
@@ -468,6 +471,12 @@ static int netlink_send(struct pdr *pdr, struct far *far, struct sk_buff *skb_in
}
skb_copy_bits(skb_in, 0, nla_data(attr), skb_in->len);

err = nla_put_u16(skb, GTP5G_BUFFER_SEQ_NUMBER, far->seq_number);
Copy link
Collaborator

Choose a reason for hiding this comment

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

move between GTP5G_BUFFER_ACTION and GTP5G_BUFFER_PACKET

@chen042531 chen042531 force-pushed the buffer-packets-with-sequence-numbers branch from 52ec048 to 36acd80 Compare January 14, 2025 01:43
@tim-ywliu tim-ywliu merged commit 83306b0 into free5gc:master Jan 14, 2025
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.

2 participants
0