| .. | .. |
|---|
| 1 | | -/* This program is free software; you can redistribute it and/or modify |
|---|
| 2 | | - * it under the terms of the GNU General Public License version 2 |
|---|
| 3 | | - * as published by the Free Software Foundation. |
|---|
| 4 | | - * |
|---|
| 5 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 6 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 7 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 8 | | - * GNU General Public License for more details. |
|---|
| 9 | | - */ |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 10 | 2 | |
|---|
| 11 | 3 | #include <linux/if_arp.h> |
|---|
| 12 | 4 | |
|---|
| .. | .. |
|---|
| 43 | 35 | net_warn_ratelimited("%s: received unknown dispatch\n", |
|---|
| 44 | 36 | __func__); |
|---|
| 45 | 37 | |
|---|
| 46 | | - /* fall-through */ |
|---|
| 38 | + fallthrough; |
|---|
| 47 | 39 | case RX_DROP_UNUSABLE: |
|---|
| 48 | 40 | kfree_skb(skb); |
|---|
| 49 | 41 | |
|---|
| 50 | | - /* fall-through */ |
|---|
| 42 | + fallthrough; |
|---|
| 51 | 43 | case RX_DROP: |
|---|
| 52 | 44 | return NET_RX_DROP; |
|---|
| 53 | 45 | case RX_QUEUED: |
|---|
| .. | .. |
|---|
| 248 | 240 | return ((dispatch >= 0x44 && dispatch <= 0x4F) || |
|---|
| 249 | 241 | (dispatch >= 0x51 && dispatch <= 0x5F) || |
|---|
| 250 | 242 | (dispatch >= 0xc8 && dispatch <= 0xdf) || |
|---|
| 251 | | - (dispatch >= 0xe8 && dispatch <= 0xff)); |
|---|
| 243 | + dispatch >= 0xe8); |
|---|
| 252 | 244 | } |
|---|
| 253 | 245 | |
|---|
| 254 | 246 | /* lowpan_rx_h_check checks on generic 6LoWPAN requirements |
|---|