hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/net/ipv6/calipso.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * CALIPSO - Common Architecture Label IPv6 Security Option
34 *
....@@ -6,25 +7,10 @@
67 *
78 * Authors: Paul Moore <paul.moore@hp.com>
89 * Huw Davies <huw@codeweavers.com>
9
- *
1010 */
1111
1212 /* (c) Copyright Hewlett-Packard Development Company, L.P., 2006, 2008
1313 * (c) Copyright Huw Davies <huw@codeweavers.com>, 2015
14
- *
15
- * This program is free software; you can redistribute it and/or modify
16
- * it under the terms of the GNU General Public License as published by
17
- * the Free Software Foundation; either version 2 of the License, or
18
- * (at your option) any later version.
19
- *
20
- * This program is distributed in the hope that it will be useful,
21
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
22
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
23
- * the GNU General Public License for more details.
24
- *
25
- * You should have received a copy of the GNU General Public License
26
- * along with this program; if not, see <http://www.gnu.org/licenses/>.
27
- *
2814 */
2915
3016 #include <linux/init.h>
....@@ -771,7 +757,7 @@
771757 calipso[1] = len - 2;
772758 *(__be32 *)(calipso + 2) = htonl(doi_def->doi);
773759 calipso[6] = (len - CALIPSO_HDR_LEN) / 4;
774
- calipso[7] = secattr->attr.mls.lvl,
760
+ calipso[7] = secattr->attr.mls.lvl;
775761 crc = ~crc_ccitt(0xffff, calipso, len);
776762 calipso[8] = crc & 0xff;
777763 calipso[9] = (crc >> 8) & 0xff;