@@ -51,7 +51,7 @@ struct sk_buff;
5151struct net_device ;
5252
5353typedef unsigned int nf_hookfn (unsigned int hooknum ,
54- struct sk_buff * * skb ,
54+ struct sk_buff * skb ,
5555 const struct net_device * in ,
5656 const struct net_device * out ,
5757 int (* okfn )(struct sk_buff * ));
@@ -183,7 +183,7 @@ void nf_log_packet(int pf,
183183 struct nf_loginfo * li ,
184184 const char * fmt , ...);
185185
186- int nf_hook_slow (int pf , unsigned int hook , struct sk_buff * * pskb ,
186+ int nf_hook_slow (int pf , unsigned int hook , struct sk_buff * skb ,
187187 struct net_device * indev , struct net_device * outdev ,
188188 int (* okfn )(struct sk_buff * ), int thresh );
189189
@@ -195,7 +195,7 @@ int nf_hook_slow(int pf, unsigned int hook, struct sk_buff **pskb,
195195 * value indicates the packet has been consumed by the hook.
196196 */
197197static inline int nf_hook_thresh (int pf , unsigned int hook ,
198- struct sk_buff * * pskb ,
198+ struct sk_buff * skb ,
199199 struct net_device * indev ,
200200 struct net_device * outdev ,
201201 int (* okfn )(struct sk_buff * ), int thresh ,
@@ -207,14 +207,14 @@ static inline int nf_hook_thresh(int pf, unsigned int hook,
207207 if (list_empty (& nf_hooks [pf ][hook ]))
208208 return 1 ;
209209#endif
210- return nf_hook_slow (pf , hook , pskb , indev , outdev , okfn , thresh );
210+ return nf_hook_slow (pf , hook , skb , indev , outdev , okfn , thresh );
211211}
212212
213- static inline int nf_hook (int pf , unsigned int hook , struct sk_buff * * pskb ,
213+ static inline int nf_hook (int pf , unsigned int hook , struct sk_buff * skb ,
214214 struct net_device * indev , struct net_device * outdev ,
215215 int (* okfn )(struct sk_buff * ))
216216{
217- return nf_hook_thresh (pf , hook , pskb , indev , outdev , okfn , INT_MIN , 1 );
217+ return nf_hook_thresh (pf , hook , skb , indev , outdev , okfn , INT_MIN , 1 );
218218}
219219
220220/* Activate hook; either okfn or kfree_skb called, unless a hook
@@ -241,13 +241,13 @@ static inline int nf_hook(int pf, unsigned int hook, struct sk_buff **pskb,
241241
242242#define NF_HOOK_THRESH (pf , hook , skb , indev , outdev , okfn , thresh ) \
243243({int __ret; \
244- if ((__ret=nf_hook_thresh(pf, hook, & (skb), indev, outdev, okfn, thresh, 1)) == 1)\
244+ if ((__ret=nf_hook_thresh(pf, hook, (skb), indev, outdev, okfn, thresh, 1)) == 1)\
245245 __ret = (okfn)(skb); \
246246__ret;})
247247
248248#define NF_HOOK_COND (pf , hook , skb , indev , outdev , okfn , cond ) \
249249({int __ret; \
250- if ((__ret=nf_hook_thresh(pf, hook, & (skb), indev, outdev, okfn, INT_MIN, cond)) == 1)\
250+ if ((__ret=nf_hook_thresh(pf, hook, (skb), indev, outdev, okfn, INT_MIN, cond)) == 1)\
251251 __ret = (okfn)(skb); \
252252__ret;})
253253
@@ -317,7 +317,7 @@ struct nf_afinfo {
317317 unsigned int dataoff , u_int8_t protocol );
318318 void (* saveroute )(const struct sk_buff * skb ,
319319 struct nf_info * info );
320- int (* reroute )(struct sk_buff * * skb ,
320+ int (* reroute )(struct sk_buff * skb ,
321321 const struct nf_info * info );
322322 int route_key_size ;
323323};
@@ -371,15 +371,15 @@ extern struct proc_dir_entry *proc_net_netfilter;
371371#define NF_HOOK (pf , hook , skb , indev , outdev , okfn ) (okfn)(skb)
372372#define NF_HOOK_COND (pf , hook , skb , indev , outdev , okfn , cond ) (okfn)(skb)
373373static inline int nf_hook_thresh (int pf , unsigned int hook ,
374- struct sk_buff * * pskb ,
374+ struct sk_buff * skb ,
375375 struct net_device * indev ,
376376 struct net_device * outdev ,
377377 int (* okfn )(struct sk_buff * ), int thresh ,
378378 int cond )
379379{
380- return okfn (* pskb );
380+ return okfn (skb );
381381}
382- static inline int nf_hook (int pf , unsigned int hook , struct sk_buff * * pskb ,
382+ static inline int nf_hook (int pf , unsigned int hook , struct sk_buff * skb ,
383383 struct net_device * indev , struct net_device * outdev ,
384384 int (* okfn )(struct sk_buff * ))
385385{
0 commit comments