hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/net/wan/hdlc.c
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Generic HDLC support routines for Linux
34 *
45 * Copyright (C) 1999 - 2008 Krzysztof Halasa <khc@pm.waw.pl>
5
- *
6
- * This program is free software; you can redistribute it and/or modify it
7
- * under the terms of version 2 of the GNU General Public License
8
- * as published by the Free Software Foundation.
96 *
107 * Currently supported:
118 * * raw IP-in-HDLC
....@@ -240,7 +237,8 @@
240237 dev->min_mtu = 68;
241238 dev->max_mtu = HDLC_MAX_MTU;
242239 dev->type = ARPHRD_RAWHDLC;
243
- dev->hard_header_len = 16;
240
+ dev->hard_header_len = 0;
241
+ dev->needed_headroom = 0;
244242 dev->addr_len = 0;
245243 dev->header_ops = &hdlc_null_ops;
246244 }