| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-or-later */ |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * INET An implementation of the TCP/IP protocol suite for the LINUX |
|---|
| 3 | 4 | * operating system. INET is implemented using the BSD Socket |
|---|
| .. | .. |
|---|
| 14 | 15 | * Florian La Roche, |
|---|
| 15 | 16 | * Jonathan Layes <layes@loran.com> |
|---|
| 16 | 17 | * Arnaldo Carvalho de Melo <acme@conectiva.com.br> ARPHRD_HWX25 |
|---|
| 17 | | - * |
|---|
| 18 | | - * This program is free software; you can redistribute it and/or |
|---|
| 19 | | - * modify it under the terms of the GNU General Public License |
|---|
| 20 | | - * as published by the Free Software Foundation; either version |
|---|
| 21 | | - * 2 of the License, or (at your option) any later version. |
|---|
| 22 | 18 | */ |
|---|
| 23 | 19 | #ifndef _LINUX_IF_ARP_H |
|---|
| 24 | 20 | #define _LINUX_IF_ARP_H |
|---|
| .. | .. |
|---|
| 55 | 51 | case ARPHRD_VOID: |
|---|
| 56 | 52 | case ARPHRD_NONE: |
|---|
| 57 | 53 | case ARPHRD_RAWIP: |
|---|
| 54 | + case ARPHRD_PIMREG: |
|---|
| 55 | + /* PPP adds its l2 header automatically in ppp_start_xmit(). |
|---|
| 56 | + * This makes it look like an l3 device to __bpf_redirect() and tcf_mirred_init(). |
|---|
| 57 | + */ |
|---|
| 58 | + case ARPHRD_PPP: |
|---|
| 58 | 59 | return false; |
|---|
| 59 | 60 | default: |
|---|
| 60 | 61 | return true; |
|---|