| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | #define pr_fmt(fmt) "IPsec: " fmt |
|---|
| 2 | 3 | |
|---|
| 3 | 4 | #include <crypto/algapi.h> |
|---|
| .. | .. |
|---|
| 106 | 107 | if (optlen < 6) |
|---|
| 107 | 108 | return -EINVAL; |
|---|
| 108 | 109 | memcpy(daddr, optptr+optlen-4, 4); |
|---|
| 109 | | - /* Fall through */ |
|---|
| 110 | + fallthrough; |
|---|
| 110 | 111 | default: |
|---|
| 111 | 112 | memset(optptr, 0, optlen); |
|---|
| 112 | 113 | } |
|---|
| .. | .. |
|---|
| 461 | 462 | return 0; |
|---|
| 462 | 463 | |
|---|
| 463 | 464 | if (icmp_hdr(skb)->type == ICMP_DEST_UNREACH) |
|---|
| 464 | | - ipv4_update_pmtu(skb, net, info, 0, 0, IPPROTO_AH, 0); |
|---|
| 465 | + ipv4_update_pmtu(skb, net, info, 0, IPPROTO_AH); |
|---|
| 465 | 466 | else |
|---|
| 466 | | - ipv4_redirect(skb, net, 0, 0, IPPROTO_AH, 0); |
|---|
| 467 | + ipv4_redirect(skb, net, 0, IPPROTO_AH); |
|---|
| 467 | 468 | xfrm_state_put(x); |
|---|
| 468 | 469 | |
|---|
| 469 | 470 | return 0; |
|---|
| .. | .. |
|---|
| 589 | 590 | { |
|---|
| 590 | 591 | if (xfrm4_protocol_deregister(&ah4_protocol, IPPROTO_AH) < 0) |
|---|
| 591 | 592 | pr_info("%s: can't remove protocol\n", __func__); |
|---|
| 592 | | - if (xfrm_unregister_type(&ah_type, AF_INET) < 0) |
|---|
| 593 | | - pr_info("%s: can't remove xfrm type\n", __func__); |
|---|
| 593 | + xfrm_unregister_type(&ah_type, AF_INET); |
|---|
| 594 | 594 | } |
|---|
| 595 | 595 | |
|---|
| 596 | 596 | module_init(ah4_init); |
|---|