Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 266913
b: refs/heads/master
c: 2c67e9a
h: refs/heads/master
i:
  266911: e926f25
v: v3
  • Loading branch information
Maciej Żenczykowski authored and David S. Miller committed Oct 22, 2011
1 parent fe1d300 commit 9ce4489
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: cf533ea53ebfae41be15b103d78e7ebec30b9969
refs/heads/master: 2c67e9acb65da96ae1b0ba93ec04af7142533bef
5 changes: 3 additions & 2 deletions trunk/net/ipv4/ip_sockglue.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <linux/netfilter.h>
#include <linux/route.h>
#include <linux/mroute.h>
#include <net/inet_ecn.h>
#include <net/route.h>
#include <net/xfrm.h>
#include <net/compat.h>
Expand Down Expand Up @@ -578,8 +579,8 @@ static int do_ip_setsockopt(struct sock *sk, int level,
break;
case IP_TOS: /* This sets both TOS and Precedence */
if (sk->sk_type == SOCK_STREAM) {
val &= ~3;
val |= inet->tos & 3;
val &= ~INET_ECN_MASK;
val |= inet->tos & INET_ECN_MASK;
}
if (inet->tos != val) {
inet->tos = val;
Expand Down

0 comments on commit 9ce4489

Please sign in to comment.