mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-08 13:44:56 +02:00
psd: tag match reg struct as __read_mostly
This commit is contained in:
@@ -135,7 +135,7 @@ xt_psd_match(const struct sk_buff *pskb, const struct xt_match_param *match)
|
|||||||
|
|
||||||
tcph = (void *)iph + ip_hdrlen(pskb);
|
tcph = (void *)iph + ip_hdrlen(pskb);
|
||||||
|
|
||||||
/* Yep, it<EFBFBD>s dirty */
|
/* Yep, it's dirty */
|
||||||
src_port = tcph->source;
|
src_port = tcph->source;
|
||||||
dest_port = tcph->dest;
|
dest_port = tcph->dest;
|
||||||
|
|
||||||
@@ -303,7 +303,7 @@ out_match:
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct xt_match xt_psd_reg = {
|
static struct xt_match xt_psd_reg __read_mostly = {
|
||||||
.name = "psd",
|
.name = "psd",
|
||||||
.family = AF_INET,
|
.family = AF_INET,
|
||||||
.revision = 9,
|
.revision = 9,
|
||||||
|
Reference in New Issue
Block a user