diff options
Diffstat (limited to 'include/net')
| -rw-r--r-- | include/net/icmp.h | 10 | 
1 files changed, 6 insertions, 4 deletions
| diff --git a/include/net/icmp.h b/include/net/icmp.h index caddf4a59ad1..935ee13d9ae9 100644 --- a/include/net/icmp.h +++ b/include/net/icmp.h @@ -37,10 +37,10 @@ struct sk_buff;  struct net;  void __icmp_send(struct sk_buff *skb_in, int type, int code, __be32 info, -		 const struct ip_options *opt); +		 const struct inet_skb_parm *parm);  static inline void icmp_send(struct sk_buff *skb_in, int type, int code, __be32 info)  { -	__icmp_send(skb_in, type, code, info, &IPCB(skb_in)->opt); +	__icmp_send(skb_in, type, code, info, IPCB(skb_in));  }  #if IS_ENABLED(CONFIG_NF_NAT) @@ -48,8 +48,10 @@ void icmp_ndo_send(struct sk_buff *skb_in, int type, int code, __be32 info);  #else  static inline void icmp_ndo_send(struct sk_buff *skb_in, int type, int code, __be32 info)  { -	struct ip_options opts = { 0 }; -	__icmp_send(skb_in, type, code, info, &opts); +	struct inet_skb_parm parm; + +	memset(&parm, 0, sizeof(parm)); +	__icmp_send(skb_in, type, code, info, &parm);  }  #endif | 
