Skip to contentSkip to conversation

: With opcode INET_DIAG_BC_S_LE dport was compared in inet_diag_bc_run()

PATCH In review Roel Kluin 2 participants 2 messages Jan 19, 2010

Subsystems (2)
lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 : With opcode INET_DIAG_BC_S_LE dport was compared in inet_diag_bc_run()

The s-port should be compared.

---
I presume?

net/ipv4/inet_diag.c +1 -1
index bdb78dd..1aaa811 100644
@@ -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->dport <= op[1].no;
+			yes = entry->sport <= op[1].no;
 			break;
 		case INET_DIAG_BC_D_GE:
 			yes = entry->dport >= op[1].no;