hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/include/linux/if_arp.h
....@@ -1,3 +1,4 @@
1
+/* SPDX-License-Identifier: GPL-2.0-or-later */
12 /*
23 * INET An implementation of the TCP/IP protocol suite for the LINUX
34 * operating system. INET is implemented using the BSD Socket
....@@ -14,11 +15,6 @@
1415 * Florian La Roche,
1516 * Jonathan Layes <layes@loran.com>
1617 * 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.
2218 */
2319 #ifndef _LINUX_IF_ARP_H
2420 #define _LINUX_IF_ARP_H
....@@ -55,6 +51,11 @@
5551 case ARPHRD_VOID:
5652 case ARPHRD_NONE:
5753 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:
5859 return false;
5960 default:
6061 return true;