Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts: drivers/net/usb/qmi_wwan.c include/net/dst.h Trivial merge conflicts, both were overlapping changes. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
commit
c3fa32b976
557 changed files with 4351 additions and 2992 deletions
|
@ -290,6 +290,7 @@ static inline int cipso_v4_validate(const struct sk_buff *skb,
|
|||
unsigned char err_offset = 0;
|
||||
u8 opt_len = opt[1];
|
||||
u8 opt_iter;
|
||||
u8 tag_len;
|
||||
|
||||
if (opt_len < 8) {
|
||||
err_offset = 1;
|
||||
|
@ -302,11 +303,12 @@ static inline int cipso_v4_validate(const struct sk_buff *skb,
|
|||
}
|
||||
|
||||
for (opt_iter = 6; opt_iter < opt_len;) {
|
||||
if (opt[opt_iter + 1] > (opt_len - opt_iter)) {
|
||||
tag_len = opt[opt_iter + 1];
|
||||
if ((tag_len == 0) || (opt[opt_iter + 1] > (opt_len - opt_iter))) {
|
||||
err_offset = opt_iter + 1;
|
||||
goto out;
|
||||
}
|
||||
opt_iter += opt[opt_iter + 1];
|
||||
opt_iter += tag_len;
|
||||
}
|
||||
|
||||
out:
|
||||
|
|
|
@ -478,10 +478,22 @@ static inline struct dst_entry *xfrm_lookup(struct net *net,
|
|||
{
|
||||
return dst_orig;
|
||||
}
|
||||
|
||||
static inline struct xfrm_state *dst_xfrm(const struct dst_entry *dst)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
#else
|
||||
struct dst_entry *xfrm_lookup(struct net *net, struct dst_entry *dst_orig,
|
||||
const struct flowi *fl, struct sock *sk,
|
||||
int flags);
|
||||
|
||||
/* skb attached with this dst needs transformation if dst->xfrm is valid */
|
||||
static inline struct xfrm_state *dst_xfrm(const struct dst_entry *dst)
|
||||
{
|
||||
return dst->xfrm;
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* _NET_DST_H */
|
||||
|
|
|
@ -182,11 +182,9 @@ static inline int ip6_skb_dst_mtu(struct sk_buff *skb)
|
|||
skb_dst(skb)->dev->mtu : dst_mtu(skb_dst(skb));
|
||||
}
|
||||
|
||||
static inline struct in6_addr *rt6_nexthop(struct rt6_info *rt, struct in6_addr *dest)
|
||||
static inline struct in6_addr *rt6_nexthop(struct rt6_info *rt)
|
||||
{
|
||||
if (rt->rt6i_flags & RTF_GATEWAY)
|
||||
return &rt->rt6i_gateway;
|
||||
return dest;
|
||||
return &rt->rt6i_gateway;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
@ -133,7 +133,7 @@ struct ieee802154_ops {
|
|||
|
||||
/* Basic interface to register ieee802154 device */
|
||||
struct ieee802154_dev *
|
||||
ieee802154_alloc_device(size_t priv_data_lex, struct ieee802154_ops *ops);
|
||||
ieee802154_alloc_device(size_t priv_data_len, struct ieee802154_ops *ops);
|
||||
void ieee802154_free_device(struct ieee802154_dev *dev);
|
||||
int ieee802154_register_device(struct ieee802154_dev *dev);
|
||||
void ieee802154_unregister_device(struct ieee802154_dev *dev);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue