Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
4d22a9cc
Commit
4d22a9cc
authored
Sep 28, 2004
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge
bk://bk.skbuff.net:20609/linux-2.6-inet6-20040928/
into nuts.davemloft.net:/disk1/BK/net-2.6
parents
73a676f2
98dc7039
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
net/ipv6/exthdrs.c
net/ipv6/exthdrs.c
+3
-0
net/ipv6/tcp_ipv6.c
net/ipv6/tcp_ipv6.c
+9
-7
No files found.
net/ipv6/exthdrs.c
View file @
4d22a9cc
...
...
@@ -314,9 +314,11 @@ static int ipv6_rthdr_rcv(struct sk_buff **skbp, unsigned int *nhoffp)
dst_release
(
xchg
(
&
skb
->
dst
,
NULL
));
ip6_route_input
(
skb
);
if
(
skb
->
dst
->
error
)
{
skb_push
(
skb
,
skb
->
data
-
skb
->
nh
.
raw
);
dst_input
(
skb
);
return
-
1
;
}
if
(
skb
->
dst
->
dev
->
flags
&
IFF_LOOPBACK
)
{
if
(
skb
->
nh
.
ipv6h
->
hop_limit
<=
1
)
{
IP6_INC_STATS_BH
(
IPSTATS_MIB_INHDRERRORS
);
...
...
@@ -329,6 +331,7 @@ static int ipv6_rthdr_rcv(struct sk_buff **skbp, unsigned int *nhoffp)
goto
looped_back
;
}
skb_push
(
skb
,
skb
->
data
-
skb
->
nh
.
raw
);
dst_input
(
skb
);
return
-
1
;
}
...
...
net/ipv6/tcp_ipv6.c
View file @
4d22a9cc
...
...
@@ -1003,11 +1003,12 @@ static void tcp_v6_send_reset(struct sk_buff *skb)
* and then put it into the queue to be sent.
*/
buff
=
alloc_skb
(
MAX_HEADER
+
sizeof
(
struct
ipv6hdr
),
GFP_ATOMIC
);
buff
=
alloc_skb
(
MAX_HEADER
+
sizeof
(
struct
ipv6hdr
)
+
sizeof
(
struct
tcphdr
),
GFP_ATOMIC
);
if
(
buff
==
NULL
)
return
;
skb_reserve
(
buff
,
MAX_HEADER
+
sizeof
(
struct
ipv6hdr
));
skb_reserve
(
buff
,
MAX_HEADER
+
sizeof
(
struct
ipv6hdr
)
+
sizeof
(
struct
tcphdr
)
);
t1
=
(
struct
tcphdr
*
)
skb_push
(
buff
,
sizeof
(
struct
tcphdr
));
...
...
@@ -1065,14 +1066,15 @@ static void tcp_v6_send_ack(struct sk_buff *skb, u32 seq, u32 ack, u32 win, u32
struct
flowi
fl
;
int
tot_len
=
sizeof
(
struct
tcphdr
);
buff
=
alloc_skb
(
MAX_HEADER
+
sizeof
(
struct
ipv6hdr
),
GFP_ATOMIC
);
if
(
ts
)
tot_len
+=
3
*
4
;
buff
=
alloc_skb
(
MAX_HEADER
+
sizeof
(
struct
ipv6hdr
)
+
tot_len
,
GFP_ATOMIC
);
if
(
buff
==
NULL
)
return
;
skb_reserve
(
buff
,
MAX_HEADER
+
sizeof
(
struct
ipv6hdr
));
if
(
ts
)
tot_len
+=
3
*
4
;
skb_reserve
(
buff
,
MAX_HEADER
+
sizeof
(
struct
ipv6hdr
)
+
tot_len
);
t1
=
(
struct
tcphdr
*
)
skb_push
(
buff
,
tot_len
);
...
...
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