hc
2024-08-19 a51341d8c7882adfad4f167bc7c3ca616908b53d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _IPV6_NF_REJECT_H
#define _IPV6_NF_REJECT_H
 
#include <linux/icmpv6.h>
#include <net/netfilter/nf_reject.h>
 
void nf_send_unreach6(struct net *net, struct sk_buff *skb_in, unsigned char code,
             unsigned int hooknum);
 
void nf_send_reset6(struct net *net, struct sk_buff *oldskb, int hook);
 
const struct tcphdr *nf_reject_ip6_tcphdr_get(struct sk_buff *oldskb,
                         struct tcphdr *otcph,
                         unsigned int *otcplen, int hook);
struct ipv6hdr *nf_reject_ip6hdr_put(struct sk_buff *nskb,
                    const struct sk_buff *oldskb,
                    __u8 protocol, int hoplimit);
void nf_reject_ip6_tcphdr_put(struct sk_buff *nskb,
                 const struct sk_buff *oldskb,
                 const struct tcphdr *oth, unsigned int otcplen);
 
#endif /* _IPV6_NF_REJECT_H */