projects
/
platform
/
upstream
/
ebtables.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff852ce
)
fix compare bug
author
Bart De Schuymer
<bdschuym@pandora.be>
Tue, 1 Apr 2003 06:31:46 +0000
(06:31 +0000)
committer
Bart De Schuymer
<bdschuym@pandora.be>
Tue, 1 Apr 2003 06:31:46 +0000
(06:31 +0000)
extensions/ebt_ip.c
patch
|
blob
|
history
diff --git
a/extensions/ebt_ip.c
b/extensions/ebt_ip.c
index
76da2b7
..
1e1504c
100644
(file)
--- a/
extensions/ebt_ip.c
+++ b/
extensions/ebt_ip.c
@@
-443,11
+443,13
@@
static int compare(const struct ebt_entry_match *m1,
return 0;
}
if (ipinfo1->bitmask & EBT_IP_SPORT) {
- if (ipinfo1->sport != ipinfo2->sport)
+ if (ipinfo1->sport[0] != ipinfo2->sport[0] ||
+ ipinfo1->sport[1] != ipinfo2->sport[1])
return 0;
}
if (ipinfo1->bitmask & EBT_IP_DPORT) {
- if (ipinfo1->dport != ipinfo2->dport)
+ if (ipinfo1->dport[0] != ipinfo2->dport[0] ||
+ ipinfo1->dport[1] != ipinfo2->dport[1])
return 0;
}
return 1;