netlink: With opcode INET_DIAG_BC_S_LE dport was compared in inet_diag_bc_run()
The s-port should be compared. Signed-off-by: Roel Kluin <roel.kluin@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
2d146eb172
commit
b4ced2b768
|
@ -368,7 +368,7 @@ static int inet_diag_bc_run(const void *bc, int len,
|
||||||
yes = entry->sport >= op[1].no;
|
yes = entry->sport >= op[1].no;
|
||||||
break;
|
break;
|
||||||
case INET_DIAG_BC_S_LE:
|
case INET_DIAG_BC_S_LE:
|
||||||
yes = entry->dport <= op[1].no;
|
yes = entry->sport <= op[1].no;
|
||||||
break;
|
break;
|
||||||
case INET_DIAG_BC_D_GE:
|
case INET_DIAG_BC_D_GE:
|
||||||
yes = entry->dport >= op[1].no;
|
yes = entry->dport >= op[1].no;
|
||||||
|
|
Loading…
Reference in New Issue