| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * CALIPSO - Common Architecture Label IPv6 Security Option |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 6 | 7 | * |
|---|
| 7 | 8 | * Authors: Paul Moore <paul.moore@hp.com> |
|---|
| 8 | 9 | * Huw Davies <huw@codeweavers.com> |
|---|
| 9 | | - * |
|---|
| 10 | 10 | */ |
|---|
| 11 | 11 | |
|---|
| 12 | 12 | /* (c) Copyright Hewlett-Packard Development Company, L.P., 2006, 2008 |
|---|
| 13 | 13 | * (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 | | - * |
|---|
| 28 | 14 | */ |
|---|
| 29 | 15 | |
|---|
| 30 | 16 | #include <linux/init.h> |
|---|
| .. | .. |
|---|
| 771 | 757 | calipso[1] = len - 2; |
|---|
| 772 | 758 | *(__be32 *)(calipso + 2) = htonl(doi_def->doi); |
|---|
| 773 | 759 | calipso[6] = (len - CALIPSO_HDR_LEN) / 4; |
|---|
| 774 | | - calipso[7] = secattr->attr.mls.lvl, |
|---|
| 760 | + calipso[7] = secattr->attr.mls.lvl; |
|---|
| 775 | 761 | crc = ~crc_ccitt(0xffff, calipso, len); |
|---|
| 776 | 762 | calipso[8] = crc & 0xff; |
|---|
| 777 | 763 | calipso[9] = (crc >> 8) & 0xff; |
|---|