]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - include/linux/errqueue.h
mm/hotplug: invalid PFNs from pfn_to_online_page()
[mirror_ubuntu-bionic-kernel.git] / include / linux / errqueue.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
1da177e4
LT
2#ifndef _LINUX_ERRQUEUE_H
3#define _LINUX_ERRQUEUE_H 1
4
1da177e4 5
1da177e4 6#include <net/ip.h>
dfd56b8b 7#if IS_ENABLED(CONFIG_IPV6)
1da177e4
LT
8#include <linux/ipv6.h>
9#endif
607ca46e 10#include <uapi/linux/errqueue.h>
1da177e4
LT
11
12#define SKB_EXT_ERR(skb) ((struct sock_exterr_skb *) ((skb)->cb))
13
d94d9fee 14struct sock_exterr_skb {
1da177e4
LT
15 union {
16 struct inet_skb_parm h4;
dfd56b8b 17#if IS_ENABLED(CONFIG_IPV6)
1da177e4
LT
18 struct inet6_skb_parm h6;
19#endif
20 } header;
21 struct sock_extended_err ee;
22 u16 addr_offset;
b406313c 23 __be16 port;
4ef1b286
SHY
24 u8 opt_stats:1,
25 unused:7;
1da177e4
LT
26};
27
28#endif