/usr/src/kernels/4.18.0-553.121.1.el8_10.x86_64/include/net
NameSizeModeActions
9p/-0755rm
bluetooth/-0755rm
caif/-0755rm
iucv/-0755rm
mana/-0755rm
netfilter/-0755rm
netns/-0755rm
nfc/-0755rm
phonet/-0755rm
sctp/-0755rm
tc_act/-0755rm
6lowpan.h102710644editdlrm
act_api.h94780644editdlrm
addrconf.h138260644editdlrm
af_ieee802154.h15910644editdlrm
af_rxrpc.h29760644editdlrm
af_unix.h22720644editdlrm
af_vsock.h72950644editdlrm
ah.h3820644editdlrm
arp.h20520644editdlrm
atmclip.h15150644editdlrm
ax25.h149990644editdlrm
ax88796.h14880644editdlrm
bareudp.h3330644editdlrm
bonding.h202250644editdlrm
bond_3ad.h96290644editdlrm
bond_alb.h62510644editdlrm
bond_options.h39160644editdlrm
bpf_sk_storage.h18020644editdlrm
busy_poll.h49730644editdlrm
calipso.h21990644editdlrm
cfg80211-wext.h19000644editdlrm
cfg80211.h3258440644editdlrm
cfg802154.h111750644editdlrm
checksum.h48500644editdlrm
cipso_ipv4.h83990644editdlrm
cls_cgroup.h23010644editdlrm
codel.h60000644editdlrm
codel_impl.h85000644editdlrm
codel_qdisc.h30010644editdlrm
compat.h17110644editdlrm
datalink.h6190644editdlrm
dcbevent.h12930644editdlrm
dcbnl.h52670644editdlrm
devlink.h647110644editdlrm
dn.h70460644editdlrm
dn_dev.h54880644editdlrm
dn_fib.h40770644editdlrm
dn_neigh.h9680644editdlrm
dn_nsp.h59660644editdlrm
dn_route.h45000644editdlrm
dropreason-core.h120630644editdlrm
drop_monitor.h9010644editdlrm
dsa.h166050644editdlrm
dsfield.h11390644editdlrm
dst.h148700644editdlrm
dst_cache.h25960644editdlrm
dst_metadata.h55210644editdlrm
dst_ops.h25640644editdlrm
erspan.h85270644editdlrm
esp.h11900644editdlrm
espintcp.h9660644editdlrm
ethoc.h5370644editdlrm
failover.h11780644editdlrm
fib_notifier.h14760644editdlrm
fib_rules.h57280644editdlrm
firewire.h6360644editdlrm
flow.h63530644editdlrm
flow_dissector.h112840644editdlrm
flow_offload.h177970644editdlrm
fou.h5490644editdlrm
fq.h24970644editdlrm
fq_impl.h81440644editdlrm
garp.h26780644editdlrm
genetlink.h146470644editdlrm
geneve.h18980644editdlrm
gen_stats.h30340644editdlrm
gre.h33770644editdlrm
gro_cells.h4430644editdlrm
gtp.h6330644editdlrm
gue.h33110644editdlrm
hwbm.h9370644editdlrm
icmp.h17650644editdlrm
ieee80211_radiotap.h230170644editdlrm
ieee802154_netdev.h93580644editdlrm
ife.h10570644editdlrm
if_inet6.h65910644editdlrm
ila.h4980644editdlrm
inet6_connection_sock.h9760644editdlrm
inet6_hashtables.h37460644editdlrm
inetpeer.h33720644editdlrm
inet_common.h26140644editdlrm
inet_connection_sock.h119810644editdlrm
inet_ecn.h80710644editdlrm
inet_frag.h48160644editdlrm
inet_hashtables.h138470644editdlrm
inet_sock.h98280644editdlrm
inet_timewait_sock.h39260644editdlrm
ip.h213540644editdlrm
ip6_checksum.h29810644editdlrm
ip6_fib.h137660644editdlrm
ip6_route.h92280644editdlrm
ip6_tunnel.h50960644editdlrm
ipcomp.h6590644editdlrm
ipconfig.h8110644editdlrm
ipv6.h327410644editdlrm
ipv6_frag.h33210644editdlrm
ipv6_stubs.h26710644editdlrm
ipx.h43860644editdlrm
ip_fib.h142900644editdlrm
ip_tunnels.h146970644editdlrm
ip_vs.h494070644editdlrm
iw_handler.h214130644editdlrm
kcm.h50830644editdlrm
l3mdev.h67430644editdlrm
lag.h4090644editdlrm
lapb.h48690644editdlrm
lib80211.h40170644editdlrm
llc.h44640644editdlrm
llc_conn.h41550644editdlrm
llc_c_ac.h95370644editdlrm
llc_c_ev.h109400644editdlrm
llc_c_st.h17620644editdlrm
llc_if.h22100644editdlrm
llc_pdu.h147830644editdlrm
llc_sap.h11080644editdlrm
llc_s_ac.h15910644editdlrm
llc_s_ev.h22550644editdlrm
llc_s_st.h9470644editdlrm
lwtunnel.h65630644editdlrm
mac80211.h2944370644editdlrm
mac802154.h156330644editdlrm
mip6.h16170644editdlrm
mld.h28700644editdlrm
mpls.h13400644editdlrm
mpls_iptunnel.h8270644editdlrm
mptcp.h62420644editdlrm
mrp.h31030644editdlrm
ncsi.h19640644editdlrm
ndisc.h150950644editdlrm
neighbour.h162890644editdlrm
netdev_queues.h56090644editdlrm
netevent.h10440644editdlrm
netlabel.h212360644editdlrm
netlink.h632530644editdlrm
netprio_cgroup.h12600644editdlrm
netrom.h78960644editdlrm
net_failover.h10230644editdlrm
net_namespace.h141770644editdlrm
net_ratelimit.h2200644editdlrm
nexthop.h8650644editdlrm
nl802154.h123850644editdlrm
nsh.h126020644editdlrm
p8022.h4470644editdlrm
page_pool.h69850644editdlrm
pie.h36840644editdlrm
ping.h31970644editdlrm
pkt_cls.h261780644editdlrm
pkt_sched.h65430644editdlrm
pptp.h5570644editdlrm
protocol.h43200644editdlrm
psample.h10830644editdlrm
psnap.h3510644editdlrm
raw.h21610644editdlrm
rawv6.h8560644editdlrm
red.h116000644editdlrm
regulatory.h109610644editdlrm
request_sock.h68710644editdlrm
rose.h78020644editdlrm
route.h113900644editdlrm
rsi_91x.h17100644editdlrm
rtnetlink.h72120644editdlrm
sch_generic.h338410644editdlrm
scm.h36710644editdlrm
secure_seq.h8550644editdlrm
seg6.h18740644editdlrm
seg6_hmac.h16990644editdlrm
seg6_local.h8700644editdlrm
slhc_vj.h68310644editdlrm
smc.h21550644editdlrm
snmp.h54820644editdlrm
sock.h791820644editdlrm
sock_reuseport.h15650644editdlrm
Space.h10940644editdlrm
stp.h3830644editdlrm
strparser.h43400644editdlrm
switchdev.h178120644editdlrm
tcp.h731250644editdlrm
tcp_states.h15400644editdlrm
tc_wrapper.h70330644editdlrm
timewait_sock.h11360644editdlrm
tipc.h24050644editdlrm
tls.h213630644editdlrm
tls_toe.h30060644editdlrm
transp_v6.h19960644editdlrm
tso.h5150644editdlrm
tun_proto.h9880644editdlrm
udp.h164810644editdlrm
udplite.h37620644editdlrm
udp_tunnel.h133760644editdlrm
vsock_addr.h6620644editdlrm
vxlan.h135410644editdlrm
wext.h15100644editdlrm
wimax.h204450644editdlrm
x25.h96580644editdlrm
x25device.h3870644editdlrm
xdp.h94360644editdlrm
xdp_priv.h4460644editdlrm
xdp_sock.h20940644editdlrm
xdp_sock_drv.h64230644editdlrm
xfrm.h596280644editdlrm
xsk_buff_pool.h65500644editdlrm
Edit: /usr/src/kernels/4.18.0-553.121.1.el8_10.x86_64/include/net/dn.h (7046B)
/* SPDX-License-Identifier: GPL-2.0 */ #ifndef _NET_DN_H #define _NET_DN_H #include #include #include #include #include struct dn_scp /* Session Control Port */ { unsigned char state; #define DN_O 1 /* Open */ #define DN_CR 2 /* Connect Receive */ #define DN_DR 3 /* Disconnect Reject */ #define DN_DRC 4 /* Discon. Rej. Complete*/ #define DN_CC 5 /* Connect Confirm */ #define DN_CI 6 /* Connect Initiate */ #define DN_NR 7 /* No resources */ #define DN_NC 8 /* No communication */ #define DN_CD 9 /* Connect Delivery */ #define DN_RJ 10 /* Rejected */ #define DN_RUN 11 /* Running */ #define DN_DI 12 /* Disconnect Initiate */ #define DN_DIC 13 /* Disconnect Complete */ #define DN_DN 14 /* Disconnect Notificat */ #define DN_CL 15 /* Closed */ #define DN_CN 16 /* Closed Notification */ __le16 addrloc; __le16 addrrem; __u16 numdat; __u16 numoth; __u16 numoth_rcv; __u16 numdat_rcv; __u16 ackxmt_dat; __u16 ackxmt_oth; __u16 ackrcv_dat; __u16 ackrcv_oth; __u8 flowrem_sw; __u8 flowloc_sw; #define DN_SEND 2 #define DN_DONTSEND 1 #define DN_NOCHANGE 0 __u16 flowrem_dat; __u16 flowrem_oth; __u16 flowloc_dat; __u16 flowloc_oth; __u8 services_rem; __u8 services_loc; __u8 info_rem; __u8 info_loc; __u16 segsize_rem; __u16 segsize_loc; __u8 nonagle; __u8 multi_ireq; __u8 accept_mode; unsigned long seg_total; /* Running total of current segment */ struct optdata_dn conndata_in; struct optdata_dn conndata_out; struct optdata_dn discdata_in; struct optdata_dn discdata_out; struct accessdata_dn accessdata; struct sockaddr_dn addr; /* Local address */ struct sockaddr_dn peer; /* Remote address */ /* * In this case the RTT estimation is not specified in the * docs, nor is any back off algorithm. Here we follow well * known tcp algorithms with a few small variations. * * snd_window: Max number of packets we send before we wait for * an ack to come back. This will become part of a * more complicated scheme when we support flow * control. * * nsp_srtt: Round-Trip-Time (x8) in jiffies. This is a rolling * average. * nsp_rttvar: Round-Trip-Time-Varience (x4) in jiffies. This is the * varience of the smoothed average (but calculated in * a simpler way than for normal statistical varience * calculations). * * nsp_rxtshift: Backoff counter. Value is zero normally, each time * a packet is lost is increases by one until an ack * is received. Its used to index an array of backoff * multipliers. */ #define NSP_MIN_WINDOW 1 #define NSP_MAX_WINDOW (0x07fe) unsigned long max_window; unsigned long snd_window; #define NSP_INITIAL_SRTT (HZ) unsigned long nsp_srtt; #define NSP_INITIAL_RTTVAR (HZ*3) unsigned long nsp_rttvar; #define NSP_MAXRXTSHIFT 12 unsigned long nsp_rxtshift; /* * Output queues, one for data, one for otherdata/linkservice */ struct sk_buff_head data_xmit_queue; struct sk_buff_head other_xmit_queue; /* * Input queue for other data */ struct sk_buff_head other_receive_queue; int other_report; /* * Stuff to do with the slow timer */ unsigned long stamp; /* time of last transmit */ unsigned long persist; int (*persist_fxn)(struct sock *sk); unsigned long keepalive; void (*keepalive_fxn)(struct sock *sk); }; static inline struct dn_scp *DN_SK(struct sock *sk) { return (struct dn_scp *)(sk + 1); } /* * src,dst : Source and Destination DECnet addresses * hops : Number of hops through the network * dst_port, src_port : NSP port numbers * services, info : Useful data extracted from conninit messages * rt_flags : Routing flags byte * nsp_flags : NSP layer flags byte * segsize : Size of segment * segnum : Number, for data, otherdata and linkservice * xmit_count : Number of times we've transmitted this skb * stamp : Time stamp of most recent transmission, used in RTT calculations * iif: Input interface number * * As a general policy, this structure keeps all addresses in network * byte order, and all else in host byte order. Thus dst, src, dst_port * and src_port are in network order. All else is in host order. * */ #define DN_SKB_CB(skb) ((struct dn_skb_cb *)(skb)->cb) struct dn_skb_cb { __le16 dst; __le16 src; __u16 hops; __le16 dst_port; __le16 src_port; __u8 services; __u8 info; __u8 rt_flags; __u8 nsp_flags; __u16 segsize; __u16 segnum; __u16 xmit_count; unsigned long stamp; int iif; }; static inline __le16 dn_eth2dn(unsigned char *ethaddr) { return get_unaligned((__le16 *)(ethaddr + 4)); } static inline __le16 dn_saddr2dn(struct sockaddr_dn *saddr) { return *(__le16 *)saddr->sdn_nodeaddr; } static inline void dn_dn2eth(unsigned char *ethaddr, __le16 addr) { __u16 a = le16_to_cpu(addr); ethaddr[0] = 0xAA; ethaddr[1] = 0x00; ethaddr[2] = 0x04; ethaddr[3] = 0x00; ethaddr[4] = (__u8)(a & 0xff); ethaddr[5] = (__u8)(a >> 8); } static inline void dn_sk_ports_copy(struct flowidn *fld, struct dn_scp *scp) { fld->fld_sport = scp->addrloc; fld->fld_dport = scp->addrrem; } unsigned int dn_mss_from_pmtu(struct net_device *dev, int mtu); void dn_register_sysctl(void); void dn_unregister_sysctl(void); #define DN_MENUVER_ACC 0x01 #define DN_MENUVER_USR 0x02 #define DN_MENUVER_PRX 0x04 #define DN_MENUVER_UIC 0x08 struct sock *dn_sklist_find_listener(struct sockaddr_dn *addr); struct sock *dn_find_by_skb(struct sk_buff *skb); #define DN_ASCBUF_LEN 9 char *dn_addr2asc(__u16, char *); int dn_destroy_timer(struct sock *sk); int dn_sockaddr2username(struct sockaddr_dn *addr, unsigned char *buf, unsigned char type); int dn_username2sockaddr(unsigned char *data, int len, struct sockaddr_dn *addr, unsigned char *type); void dn_start_slow_timer(struct sock *sk); void dn_stop_slow_timer(struct sock *sk); extern __le16 decnet_address; extern int decnet_debug_level; extern int decnet_time_wait; extern int decnet_dn_count; extern int decnet_di_count; extern int decnet_dr_count; extern int decnet_no_fc_max_cwnd; extern long sysctl_decnet_mem[3]; extern int sysctl_decnet_wmem[3]; extern int sysctl_decnet_rmem[3]; #endif /* _NET_DN_H */