@@ -2135,7 +2135,7 @@ ctnetlink_alloc_expect(const struct nlattr *const cda[], struct nf_conn *ct,
21352135
21362136#ifdef CONFIG_NETFILTER_NETLINK_QUEUE_CT
21372137static size_t
2138- ctnetlink_nfqueue_build_size (const struct nf_conn * ct )
2138+ ctnetlink_glue_build_size (const struct nf_conn * ct )
21392139{
21402140 return 3 * nla_total_size (0 ) /* CTA_TUPLE_ORIG|REPL|MASTER */
21412141 + 3 * nla_total_size (0 ) /* CTA_TUPLE_IP */
@@ -2162,8 +2162,8 @@ ctnetlink_nfqueue_build_size(const struct nf_conn *ct)
21622162 ;
21632163}
21642164
2165- static struct nf_conn * ctnetlink_nfqueue_get_ct (struct sk_buff * skb ,
2166- enum ip_conntrack_info * ctinfo )
2165+ static struct nf_conn * ctnetlink_glue_get_ct (struct sk_buff * skb ,
2166+ enum ip_conntrack_info * ctinfo )
21672167{
21682168 struct nf_conn * ct ;
21692169
@@ -2174,7 +2174,7 @@ static struct nf_conn *ctnetlink_nfqueue_get_ct(struct sk_buff *skb,
21742174 return ct ;
21752175}
21762176
2177- static int __ctnetlink_nfqueue_build (struct sk_buff * skb , struct nf_conn * ct )
2177+ static int __ctnetlink_glue_build (struct sk_buff * skb , struct nf_conn * ct )
21782178{
21792179 const struct nf_conntrack_zone * zone ;
21802180 struct nlattr * nest_parms ;
@@ -2247,17 +2247,17 @@ static int __ctnetlink_nfqueue_build(struct sk_buff *skb, struct nf_conn *ct)
22472247}
22482248
22492249static int
2250- ctnetlink_nfqueue_build (struct sk_buff * skb , struct nf_conn * ct ,
2251- enum ip_conntrack_info ctinfo ,
2252- u_int16_t ct_attr , u_int16_t ct_info_attr )
2250+ ctnetlink_glue_build (struct sk_buff * skb , struct nf_conn * ct ,
2251+ enum ip_conntrack_info ctinfo ,
2252+ u_int16_t ct_attr , u_int16_t ct_info_attr )
22532253{
22542254 struct nlattr * nest_parms ;
22552255
22562256 nest_parms = nla_nest_start (skb , ct_attr | NLA_F_NESTED );
22572257 if (!nest_parms )
22582258 goto nla_put_failure ;
22592259
2260- if (__ctnetlink_nfqueue_build (skb , ct ) < 0 )
2260+ if (__ctnetlink_glue_build (skb , ct ) < 0 )
22612261 goto nla_put_failure ;
22622262
22632263 nla_nest_end (skb , nest_parms );
@@ -2272,7 +2272,7 @@ ctnetlink_nfqueue_build(struct sk_buff *skb, struct nf_conn *ct,
22722272}
22732273
22742274static int
2275- ctnetlink_nfqueue_parse_ct (const struct nlattr * cda [], struct nf_conn * ct )
2275+ ctnetlink_glue_parse_ct (const struct nlattr * cda [], struct nf_conn * ct )
22762276{
22772277 int err ;
22782278
@@ -2312,7 +2312,7 @@ ctnetlink_nfqueue_parse_ct(const struct nlattr *cda[], struct nf_conn *ct)
23122312}
23132313
23142314static int
2315- ctnetlink_nfqueue_parse (const struct nlattr * attr , struct nf_conn * ct )
2315+ ctnetlink_glue_parse (const struct nlattr * attr , struct nf_conn * ct )
23162316{
23172317 struct nlattr * cda [CTA_MAX + 1 ];
23182318 int ret ;
@@ -2322,16 +2322,16 @@ ctnetlink_nfqueue_parse(const struct nlattr *attr, struct nf_conn *ct)
23222322 return ret ;
23232323
23242324 spin_lock_bh (& nf_conntrack_expect_lock );
2325- ret = ctnetlink_nfqueue_parse_ct ((const struct nlattr * * )cda , ct );
2325+ ret = ctnetlink_glue_parse_ct ((const struct nlattr * * )cda , ct );
23262326 spin_unlock_bh (& nf_conntrack_expect_lock );
23272327
23282328 return ret ;
23292329}
23302330
2331- static int ctnetlink_nfqueue_exp_parse (const struct nlattr * const * cda ,
2332- const struct nf_conn * ct ,
2333- struct nf_conntrack_tuple * tuple ,
2334- struct nf_conntrack_tuple * mask )
2331+ static int ctnetlink_glue_exp_parse (const struct nlattr * const * cda ,
2332+ const struct nf_conn * ct ,
2333+ struct nf_conntrack_tuple * tuple ,
2334+ struct nf_conntrack_tuple * mask )
23352335{
23362336 int err ;
23372337
@@ -2345,8 +2345,8 @@ static int ctnetlink_nfqueue_exp_parse(const struct nlattr * const *cda,
23452345}
23462346
23472347static int
2348- ctnetlink_nfqueue_attach_expect (const struct nlattr * attr , struct nf_conn * ct ,
2349- u32 portid , u32 report )
2348+ ctnetlink_glue_attach_expect (const struct nlattr * attr , struct nf_conn * ct ,
2349+ u32 portid , u32 report )
23502350{
23512351 struct nlattr * cda [CTA_EXPECT_MAX + 1 ];
23522352 struct nf_conntrack_tuple tuple , mask ;
@@ -2358,8 +2358,8 @@ ctnetlink_nfqueue_attach_expect(const struct nlattr *attr, struct nf_conn *ct,
23582358 if (err < 0 )
23592359 return err ;
23602360
2361- err = ctnetlink_nfqueue_exp_parse ((const struct nlattr * const * )cda ,
2362- ct , & tuple , & mask );
2361+ err = ctnetlink_glue_exp_parse ((const struct nlattr * const * )cda ,
2362+ ct , & tuple , & mask );
23632363 if (err < 0 )
23642364 return err ;
23652365
@@ -2386,22 +2386,22 @@ ctnetlink_nfqueue_attach_expect(const struct nlattr *attr, struct nf_conn *ct,
23862386 return 0 ;
23872387}
23882388
2389- static void ctnetlink_nfqueue_seqadj (struct sk_buff * skb , struct nf_conn * ct ,
2390- enum ip_conntrack_info ctinfo , int diff )
2389+ static void ctnetlink_glue_seqadj (struct sk_buff * skb , struct nf_conn * ct ,
2390+ enum ip_conntrack_info ctinfo , int diff )
23912391{
23922392 if (!(ct -> status & IPS_NAT_MASK ))
23932393 return ;
23942394
23952395 nf_ct_tcp_seqadj_set (skb , ct , ctinfo , diff );
23962396}
23972397
2398- static struct nfq_ct_hook ctnetlink_nfqueue_hook = {
2399- .get_ct = ctnetlink_nfqueue_get_ct ,
2400- .build_size = ctnetlink_nfqueue_build_size ,
2401- .build = ctnetlink_nfqueue_build ,
2402- .parse = ctnetlink_nfqueue_parse ,
2403- .attach_expect = ctnetlink_nfqueue_attach_expect ,
2404- .seq_adjust = ctnetlink_nfqueue_seqadj ,
2398+ static struct nfnl_ct_hook ctnetlink_glue_hook = {
2399+ .get_ct = ctnetlink_glue_get_ct ,
2400+ .build_size = ctnetlink_glue_build_size ,
2401+ .build = ctnetlink_glue_build ,
2402+ .parse = ctnetlink_glue_parse ,
2403+ .attach_expect = ctnetlink_glue_attach_expect ,
2404+ .seq_adjust = ctnetlink_glue_seqadj ,
24052405};
24062406#endif /* CONFIG_NETFILTER_NETLINK_QUEUE_CT */
24072407
@@ -3389,7 +3389,7 @@ static int __init ctnetlink_init(void)
33893389 }
33903390#ifdef CONFIG_NETFILTER_NETLINK_QUEUE_CT
33913391 /* setup interaction between nf_queue and nf_conntrack_netlink. */
3392- RCU_INIT_POINTER (nfq_ct_hook , & ctnetlink_nfqueue_hook );
3392+ RCU_INIT_POINTER (nfnl_ct_hook , & ctnetlink_glue_hook );
33933393#endif
33943394 return 0 ;
33953395
@@ -3409,7 +3409,7 @@ static void __exit ctnetlink_exit(void)
34093409 nfnetlink_subsys_unregister (& ctnl_exp_subsys );
34103410 nfnetlink_subsys_unregister (& ctnl_subsys );
34113411#ifdef CONFIG_NETFILTER_NETLINK_QUEUE_CT
3412- RCU_INIT_POINTER (nfq_ct_hook , NULL );
3412+ RCU_INIT_POINTER (nfnl_ct_hook , NULL );
34133413#endif
34143414}
34153415
0 commit comments