Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
linux
linux-davinci
Commits
54981279
Commit
54981279
authored
Aug 10, 2009
by
Rafael Laufer
Committed by
Patrick McHardy
Aug 10, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
netfilter: nf_conntrack: add SCTP support for SO_ORIGINAL_DST
Signed-off-by:
Patrick McHardy
<
kaber@trash.net
>
parent
bbd8a0d3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c
net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c
+4
-4
No files found.
net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.c
View file @
54981279
...
@@ -256,11 +256,11 @@ getorigdst(struct sock *sk, int optval, void __user *user, int *len)
...
@@ -256,11 +256,11 @@ getorigdst(struct sock *sk, int optval, void __user *user, int *len)
tuple
.
dst
.
u3
.
ip
=
inet
->
daddr
;
tuple
.
dst
.
u3
.
ip
=
inet
->
daddr
;
tuple
.
dst
.
u
.
tcp
.
port
=
inet
->
dport
;
tuple
.
dst
.
u
.
tcp
.
port
=
inet
->
dport
;
tuple
.
src
.
l3num
=
PF_INET
;
tuple
.
src
.
l3num
=
PF_INET
;
tuple
.
dst
.
protonum
=
IPPROTO_TCP
;
tuple
.
dst
.
protonum
=
sk
->
sk_protocol
;
/* We only do TCP at the moment: is there a better way? */
/* We only do TCP a
nd SCTP a
t the moment: is there a better way? */
if
(
s
trcmp
(
sk
->
sk_prot
->
name
,
"TCP"
)
)
{
if
(
s
k
->
sk_protocol
!=
IPPROTO_TCP
&&
sk
->
sk_protocol
!=
IPPROTO_SCTP
)
{
pr_debug
(
"SO_ORIGINAL_DST: Not a TCP socket
\n
"
);
pr_debug
(
"SO_ORIGINAL_DST: Not a TCP
/SCTP
socket
\n
"
);
return
-
ENOPROTOOPT
;
return
-
ENOPROTOOPT
;
}
}
...
...
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