Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 97669
b: refs/heads/master
c: 9596cc8
h: refs/heads/master
i:
  97667: 5be8da7
v: v3
  • Loading branch information
Denis V. Lunev authored and YOSHIFUJI Hideaki committed Jun 4, 2008
1 parent 983bf89 commit ec772e2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 36d926b94a9908937593e5669162305a071b9cc3
refs/heads/master: 9596cc826e2e52bfc318ca37a6c52fe3d72990a3
11 changes: 8 additions & 3 deletions trunk/net/ipv6/ipv6_sockglue.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,14 @@ static int do_ipv6_setsockopt(struct sock *sk, int level, int optname,
if (sk->sk_type == SOCK_RAW)
break;

if (sk->sk_protocol != IPPROTO_UDP &&
sk->sk_protocol != IPPROTO_UDPLITE &&
sk->sk_protocol != IPPROTO_TCP)
if (sk->sk_protocol == IPPROTO_UDP ||
sk->sk_protocol == IPPROTO_UDPLITE) {
struct udp_sock *up = udp_sk(sk);
if (up->pending == AF_INET6) {
retv = -EBUSY;
break;
}
} else if (sk->sk_protocol != IPPROTO_TCP)
break;

if (sk->sk_state != TCP_ESTABLISHED) {
Expand Down

0 comments on commit ec772e2

Please sign in to comment.