projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d146eb
)
netlink: With opcode INET_DIAG_BC_S_LE dport was compared in inet_diag_bc_run()
author
Roel Kluin
<roel.kluin@gmail.com>
Tue, 19 Jan 2010 22:12:20 +0000
(14:12 -0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 19 Jan 2010 22:12:20 +0000
(14:12 -0800)
The s-port should be compared.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/inet_diag.c
patch
|
blob
|
history
diff --git
a/net/ipv4/inet_diag.c
b/net/ipv4/inet_diag.c
index
bdb78dd
..
1aaa811
100644
(file)
--- a/
net/ipv4/inet_diag.c
+++ b/
net/ipv4/inet_diag.c
@@
-368,7
+368,7
@@
static int inet_diag_bc_run(const void *bc, int len,
yes = entry->sport >= op[1].no;
break;
case INET_DIAG_BC_S_LE:
- yes = entry->
d
port <= op[1].no;
+ yes = entry->
s
port <= op[1].no;
break;
case INET_DIAG_BC_D_GE:
yes = entry->dport >= op[1].no;