1515 * long term mutex. The handler must provide an an outfn() to accept packets
1616 * for queueing and must reinject all packets it receives, no matter what.
1717 */
18- static struct nf_queue_handler * queue_handler [NPROTO ];
18+ static const struct nf_queue_handler * queue_handler [NPROTO ];
1919
2020static DEFINE_MUTEX (queue_handler_mutex );
2121
2222/* return EBUSY when somebody else is registered, return EEXIST if the
2323 * same handler is registered, return 0 in case of success. */
24- int nf_register_queue_handler (int pf , struct nf_queue_handler * qh )
24+ int nf_register_queue_handler (int pf , const struct nf_queue_handler * qh )
2525{
2626 int ret ;
2727
@@ -44,7 +44,7 @@ int nf_register_queue_handler(int pf, struct nf_queue_handler *qh)
4444EXPORT_SYMBOL (nf_register_queue_handler );
4545
4646/* The caller must flush their queue before this */
47- int nf_unregister_queue_handler (int pf , struct nf_queue_handler * qh )
47+ int nf_unregister_queue_handler (int pf , const struct nf_queue_handler * qh )
4848{
4949 if (pf >= NPROTO )
5050 return - EINVAL ;
@@ -64,7 +64,7 @@ int nf_unregister_queue_handler(int pf, struct nf_queue_handler *qh)
6464}
6565EXPORT_SYMBOL (nf_unregister_queue_handler );
6666
67- void nf_unregister_queue_handlers (struct nf_queue_handler * qh )
67+ void nf_unregister_queue_handlers (const struct nf_queue_handler * qh )
6868{
6969 int pf ;
7070
@@ -98,7 +98,7 @@ static int __nf_queue(struct sk_buff *skb,
9898 struct net_device * physoutdev = NULL ;
9999#endif
100100 struct nf_afinfo * afinfo ;
101- struct nf_queue_handler * qh ;
101+ const struct nf_queue_handler * qh ;
102102
103103 /* QUEUE == DROP if noone is waiting, to be safe. */
104104 rcu_read_lock ();
@@ -313,7 +313,7 @@ static int seq_show(struct seq_file *s, void *v)
313313{
314314 int ret ;
315315 loff_t * pos = v ;
316- struct nf_queue_handler * qh ;
316+ const struct nf_queue_handler * qh ;
317317
318318 rcu_read_lock ();
319319 qh = rcu_dereference (queue_handler [* pos ]);
0 commit comments