mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 16:24:13 +08:00
ba4e58eca8
This is a revision of the previously submitted patch, which alters the way files are organized and compiled in the following manner: * UDP and UDP-Lite now use separate object files * source file dependencies resolved via header files net/ipv{4,6}/udp_impl.h * order of inclusion files in udp.c/udplite.c adapted accordingly [NET/IPv4]: Support for the UDP-Lite protocol (RFC 3828) This patch adds support for UDP-Lite to the IPv4 stack, provided as an extension to the existing UDPv4 code: * generic routines are all located in net/ipv4/udp.c * UDP-Lite specific routines are in net/ipv4/udplite.c * MIB/statistics support in /proc/net/snmp and /proc/net/udplite * shared API with extensions for partial checksum coverage [NET/IPv6]: Extension for UDP-Lite over IPv6 It extends the existing UDPv6 code base with support for UDP-Lite in the same manner as per UDPv4. In particular, * UDPv6 generic and shared code is in net/ipv6/udp.c * UDP-Litev6 specific extensions are in net/ipv6/udplite.c * MIB/statistics support in /proc/net/snmp6 and /proc/net/udplite6 * support for IPV6_ADDRFORM * aligned the coding style of protocol initialisation with af_inet6.c * made the error handling in udpv6_queue_rcv_skb consistent; to return `-1' on error on all error cases * consolidation of shared code [NET]: UDP-Lite Documentation and basic XFRM/Netfilter support The UDP-Lite patch further provides * API documentation for UDP-Lite * basic xfrm support * basic netfilter support for IPv4 and IPv6 (LOG target) Signed-off-by: Gerrit Renker <gerrit@erg.abdn.ac.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
56 lines
1.2 KiB
C
56 lines
1.2 KiB
C
#ifndef _TRANSP_V6_H
|
|
#define _TRANSP_V6_H
|
|
|
|
#include <net/checksum.h>
|
|
|
|
/*
|
|
* IPv6 transport protocols
|
|
*/
|
|
|
|
#ifdef __KERNEL__
|
|
|
|
extern struct proto rawv6_prot;
|
|
extern struct proto udpv6_prot;
|
|
extern struct proto udplitev6_prot;
|
|
extern struct proto tcpv6_prot;
|
|
|
|
struct flowi;
|
|
|
|
/* extention headers */
|
|
extern void ipv6_rthdr_init(void);
|
|
extern void ipv6_frag_init(void);
|
|
extern void ipv6_nodata_init(void);
|
|
extern void ipv6_destopt_init(void);
|
|
|
|
/* transport protocols */
|
|
extern void rawv6_init(void);
|
|
extern void udpv6_init(void);
|
|
extern void udplitev6_init(void);
|
|
extern void tcpv6_init(void);
|
|
|
|
extern int udpv6_connect(struct sock *sk,
|
|
struct sockaddr *uaddr,
|
|
int addr_len);
|
|
|
|
extern int datagram_recv_ctl(struct sock *sk,
|
|
struct msghdr *msg,
|
|
struct sk_buff *skb);
|
|
|
|
extern int datagram_send_ctl(struct msghdr *msg,
|
|
struct flowi *fl,
|
|
struct ipv6_txoptions *opt,
|
|
int *hlimit, int *tclass);
|
|
|
|
#define LOOPBACK4_IPV6 __constant_htonl(0x7f000006)
|
|
|
|
/*
|
|
* address family specific functions
|
|
*/
|
|
extern struct inet_connection_sock_af_ops ipv4_specific;
|
|
|
|
extern int inet6_destroy_sock(struct sock *sk);
|
|
|
|
#endif
|
|
|
|
#endif
|