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
a4056573
Commit
a4056573
authored
Jun 11, 2008
by
David S. Miller
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'net-2.6-misc-20080611a' of
git://git.linux-ipv6.org/gitroot/yoshfuji/linux-2.6-fix
parents
5cb960a8
1717699c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
6 deletions
+19
-6
net/ipv6/datagram.c
net/ipv6/datagram.c
+5
-0
net/ipv6/ipv6_sockglue.c
net/ipv6/ipv6_sockglue.c
+8
-4
net/ipv6/route.c
net/ipv6/route.c
+6
-2
No files found.
net/ipv6/datagram.c
View file @
a4056573
...
...
@@ -705,6 +705,11 @@ int datagram_send_ctl(struct net *net,
}
*
hlimit
=
*
(
int
*
)
CMSG_DATA
(
cmsg
);
if
(
*
hlimit
<
-
1
||
*
hlimit
>
0xff
)
{
err
=
-
EINVAL
;
goto
exit_f
;
}
break
;
case
IPV6_TCLASS
:
...
...
net/ipv6/ipv6_sockglue.c
View file @
a4056573
...
...
@@ -67,7 +67,7 @@ int ip6_ra_control(struct sock *sk, int sel, void (*destructor)(struct sock *))
/* RA packet may be delivered ONLY to IPPROTO_RAW socket */
if
(
sk
->
sk_type
!=
SOCK_RAW
||
inet_sk
(
sk
)
->
num
!=
IPPROTO_RAW
)
return
-
E
INVAL
;
return
-
E
NOPROTOOPT
;
new_ra
=
(
sel
>=
0
)
?
kmalloc
(
sizeof
(
*
new_ra
),
GFP_KERNEL
)
:
NULL
;
...
...
@@ -446,7 +446,7 @@ done:
case
IPV6_MULTICAST_HOPS
:
if
(
sk
->
sk_type
==
SOCK_STREAM
)
goto
e_inval
;
break
;
if
(
optlen
<
sizeof
(
int
))
goto
e_inval
;
if
(
val
>
255
||
val
<
-
1
)
...
...
@@ -458,13 +458,15 @@ done:
case
IPV6_MULTICAST_LOOP
:
if
(
optlen
<
sizeof
(
int
))
goto
e_inval
;
if
(
val
!=
valbool
)
goto
e_inval
;
np
->
mc_loop
=
valbool
;
retv
=
0
;
break
;
case
IPV6_MULTICAST_IF
:
if
(
sk
->
sk_type
==
SOCK_STREAM
)
goto
e_inval
;
break
;
if
(
optlen
<
sizeof
(
int
))
goto
e_inval
;
...
...
@@ -860,7 +862,7 @@ static int do_ipv6_getsockopt(struct sock *sk, int level, int optname,
if
(
sk
->
sk_protocol
!=
IPPROTO_UDP
&&
sk
->
sk_protocol
!=
IPPROTO_UDPLITE
&&
sk
->
sk_protocol
!=
IPPROTO_TCP
)
return
-
E
INVAL
;
return
-
E
NOPROTOOPT
;
if
(
sk
->
sk_state
!=
TCP_ESTABLISHED
)
return
-
ENOTCONN
;
val
=
sk
->
sk_family
;
...
...
@@ -874,6 +876,8 @@ static int do_ipv6_getsockopt(struct sock *sk, int level, int optname,
return
-
EINVAL
;
if
(
copy_from_user
(
&
gsf
,
optval
,
GROUP_FILTER_SIZE
(
0
)))
return
-
EFAULT
;
if
(
gsf
.
gf_group
.
ss_family
!=
AF_INET6
)
return
-
EADDRNOTAVAIL
;
lock_sock
(
sk
);
err
=
ip6_mc_msfget
(
sk
,
&
gsf
,
(
struct
group_filter
__user
*
)
optval
,
optlen
);
...
...
net/ipv6/route.c
View file @
a4056573
...
...
@@ -2196,8 +2196,12 @@ static int rt6_fill_node(struct sk_buff *skb, struct rt6_info *rt,
NLA_PUT_U32
(
skb
,
RTA_PRIORITY
,
rt
->
rt6i_metric
);
expires
=
(
rt
->
rt6i_flags
&
RTF_EXPIRES
)
?
rt
->
rt6i_expires
-
jiffies
:
0
;
if
(
!
(
rt
->
rt6i_flags
&
RTF_EXPIRES
))
expires
=
0
;
else
if
(
rt
->
rt6i_expires
-
jiffies
<
INT_MAX
)
expires
=
rt
->
rt6i_expires
-
jiffies
;
else
expires
=
INT_MAX
;
if
(
rtnl_put_cacheinfo
(
skb
,
&
rt
->
u
.
dst
,
0
,
0
,
0
,
expires
,
rt
->
u
.
dst
.
error
)
<
0
)
...
...
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