6lowpan.c (53c8b29abe42e5601cfa0ea5962532f0cfdec8a0) 6lowpan.c (9b1c1ef13b35fa35051b635ca9fbda39fe6bbc70)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 Copyright (c) 2013-2014 Intel Corp.
4
5*/
6
7#include <linux/if_arp.h>
8#include <linux/netdevice.h>

--- 146 unchanged lines hidden (view full) ---

155
156 return NULL;
157}
158
159static inline struct lowpan_peer *peer_lookup_dst(struct lowpan_btle_dev *dev,
160 struct in6_addr *daddr,
161 struct sk_buff *skb)
162{
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 Copyright (c) 2013-2014 Intel Corp.
4
5*/
6
7#include <linux/if_arp.h>
8#include <linux/netdevice.h>

--- 146 unchanged lines hidden (view full) ---

155
156 return NULL;
157}
158
159static inline struct lowpan_peer *peer_lookup_dst(struct lowpan_btle_dev *dev,
160 struct in6_addr *daddr,
161 struct sk_buff *skb)
162{
163 struct lowpan_peer *peer;
164 struct in6_addr *nexthop;
165 struct rt6_info *rt = (struct rt6_info *)skb_dst(skb);
166 int count = atomic_read(&dev->peer_count);
163 struct rt6_info *rt = (struct rt6_info *)skb_dst(skb);
164 int count = atomic_read(&dev->peer_count);
165 const struct in6_addr *nexthop;
166 struct lowpan_peer *peer;
167
168 BT_DBG("peers %d addr %pI6c rt %p", count, daddr, rt);
169
170 /* If we have multiple 6lowpan peers, then check where we should
171 * send the packet. If only one peer exists, then we can send the
172 * packet right away.
173 */
174 if (count == 1) {

--- 1132 unchanged lines hidden ---
167
168 BT_DBG("peers %d addr %pI6c rt %p", count, daddr, rt);
169
170 /* If we have multiple 6lowpan peers, then check where we should
171 * send the packet. If only one peer exists, then we can send the
172 * packet right away.
173 */
174 if (count == 1) {

--- 1132 unchanged lines hidden ---