diff options
| author | David S. Miller <davem@davemloft.net> | 2019-03-02 15:54:35 -0500 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2019-03-02 15:54:35 -0500 |
| commit | 9eb359140cd307f8a14f61c19b155ffca5291057 (patch) | |
| tree | 22d5143608ef1744ca4b7025414777defe8bcca5 /include | |
| parent | cf29576fee6016fa7004262cb98f57a2269178f1 (diff) | |
| parent | 07f12b26e21ab359261bf75cfcb424fdc7daeb6d (diff) | |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/netdevice.h | 2 | ||||
| -rw-r--r-- | include/net/icmp.h | 9 | ||||
| -rw-r--r-- | include/net/ip.h | 4 |
3 files changed, 12 insertions, 3 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index c10b60297d28..26f69cf763f4 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h | |||
| @@ -3887,7 +3887,7 @@ static inline u32 netif_msg_init(int debug_value, int default_msg_enable_bits) | |||
| 3887 | if (debug_value == 0) /* no output */ | 3887 | if (debug_value == 0) /* no output */ |
| 3888 | return 0; | 3888 | return 0; |
| 3889 | /* set low N bits */ | 3889 | /* set low N bits */ |
| 3890 | return (1 << debug_value) - 1; | 3890 | return (1U << debug_value) - 1; |
| 3891 | } | 3891 | } |
| 3892 | 3892 | ||
| 3893 | static inline void __netif_tx_lock(struct netdev_queue *txq, int cpu) | 3893 | static inline void __netif_tx_lock(struct netdev_queue *txq, int cpu) |
diff --git a/include/net/icmp.h b/include/net/icmp.h index 6ac3a5bd0117..e0f709d26dde 100644 --- a/include/net/icmp.h +++ b/include/net/icmp.h | |||
| @@ -22,6 +22,7 @@ | |||
| 22 | 22 | ||
| 23 | #include <net/inet_sock.h> | 23 | #include <net/inet_sock.h> |
| 24 | #include <net/snmp.h> | 24 | #include <net/snmp.h> |
| 25 | #include <net/ip.h> | ||
| 25 | 26 | ||
| 26 | struct icmp_err { | 27 | struct icmp_err { |
| 27 | int errno; | 28 | int errno; |
| @@ -39,7 +40,13 @@ struct net_proto_family; | |||
| 39 | struct sk_buff; | 40 | struct sk_buff; |
| 40 | struct net; | 41 | struct net; |
| 41 | 42 | ||
| 42 | void icmp_send(struct sk_buff *skb_in, int type, int code, __be32 info); | 43 | void __icmp_send(struct sk_buff *skb_in, int type, int code, __be32 info, |
| 44 | const struct ip_options *opt); | ||
| 45 | static inline void icmp_send(struct sk_buff *skb_in, int type, int code, __be32 info) | ||
| 46 | { | ||
| 47 | __icmp_send(skb_in, type, code, info, &IPCB(skb_in)->opt); | ||
| 48 | } | ||
| 49 | |||
| 43 | int icmp_rcv(struct sk_buff *skb); | 50 | int icmp_rcv(struct sk_buff *skb); |
| 44 | int icmp_err(struct sk_buff *skb, u32 info); | 51 | int icmp_err(struct sk_buff *skb, u32 info); |
| 45 | int icmp_init(void); | 52 | int icmp_init(void); |
diff --git a/include/net/ip.h b/include/net/ip.h index 8866bfce6121..be3cad9c2e4c 100644 --- a/include/net/ip.h +++ b/include/net/ip.h | |||
| @@ -667,6 +667,8 @@ static inline int ip_options_echo(struct net *net, struct ip_options *dopt, | |||
| 667 | } | 667 | } |
| 668 | 668 | ||
| 669 | void ip_options_fragment(struct sk_buff *skb); | 669 | void ip_options_fragment(struct sk_buff *skb); |
| 670 | int __ip_options_compile(struct net *net, struct ip_options *opt, | ||
| 671 | struct sk_buff *skb, __be32 *info); | ||
| 670 | int ip_options_compile(struct net *net, struct ip_options *opt, | 672 | int ip_options_compile(struct net *net, struct ip_options *opt, |
| 671 | struct sk_buff *skb); | 673 | struct sk_buff *skb); |
| 672 | int ip_options_get(struct net *net, struct ip_options_rcu **optp, | 674 | int ip_options_get(struct net *net, struct ip_options_rcu **optp, |
| @@ -716,7 +718,7 @@ extern int sysctl_icmp_msgs_burst; | |||
| 716 | int ip_misc_proc_init(void); | 718 | int ip_misc_proc_init(void); |
| 717 | #endif | 719 | #endif |
| 718 | 720 | ||
| 719 | int rtm_getroute_parse_ip_proto(struct nlattr *attr, u8 *ip_proto, | 721 | int rtm_getroute_parse_ip_proto(struct nlattr *attr, u8 *ip_proto, u8 family, |
| 720 | struct netlink_ext_ack *extack); | 722 | struct netlink_ext_ack *extack); |
| 721 | 723 | ||
| 722 | #endif /* _IP_H */ | 724 | #endif /* _IP_H */ |
