Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nghttp2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
nghttp2
Commits
c50459b8
Commit
c50459b8
authored
Aug 30, 2021
by
Tatsuhiro Tsujikawa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpf: use __builtin_memcpy explicitly to build under ubuntu 20.04
parent
0e52cf76
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
bpf/reuseport_kern.c
bpf/reuseport_kern.c
+2
-2
No files found.
bpf/reuseport_kern.c
View file @
c50459b8
...
...
@@ -205,7 +205,7 @@ int select_reuseport(struct sk_reuseport_md *reuse_md) {
switch
(
qhd
.
type
)
{
case
NGTCP2_PKT_INITIAL
:
case
NGTCP2_PKT_0RTT
:
memcpy
(
sk_prefix
,
pkt_databuf
+
qhd
.
dcid_offset
,
CID_PREFIXLEN
);
__builtin_
memcpy
(
sk_prefix
,
pkt_databuf
+
qhd
.
dcid_offset
,
CID_PREFIXLEN
);
if
(
qhd
.
dcidlen
==
SV_DCIDLEN
)
{
psk_index
=
bpf_map_lookup_elem
(
&
cid_prefix_map
,
sk_prefix
);
...
...
@@ -234,7 +234,7 @@ int select_reuseport(struct sk_reuseport_md *reuse_md) {
return
SK_DROP
;
}
memcpy
(
sk_prefix
,
pkt_databuf
+
qhd
.
dcid_offset
,
CID_PREFIXLEN
);
__builtin_
memcpy
(
sk_prefix
,
pkt_databuf
+
qhd
.
dcid_offset
,
CID_PREFIXLEN
);
psk_index
=
bpf_map_lookup_elem
(
&
cid_prefix_map
,
sk_prefix
);
if
(
psk_index
==
NULL
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment