1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* 3 * Based on include/net/udp.h 4 * Authors: Ross Biro 5 * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> 6 * 7 * Fixes: 8 * Alan Cox : Turned on udp checksums. I don't want to 9 * chase 'memory corruption' bugs that aren't! 10 * 11 * NewIP INET 12 * An implementation of the TCP/IP protocol suite for the LINUX 13 * operating system. NewIP INET is implemented using the BSD Socket 14 * interface as the means of communication with the user level. 15 * 16 * Definitions for the NewIP UDP module. 17 */ 18 #ifndef _NET_NEWIP_UDP_H 19 #define _NET_NEWIP_UDP_H 20 21 #include <linux/errno.h> 22 #include <linux/types.h> 23 #include <linux/socket.h> 24 #include <linux/sockios.h> 25 #include <linux/skbuff.h> 26 27 #define NIP_UDP_HSLOT_COUNT 10 28 29 int nip_udp_init(void); 30 31 int nip_udp_output(struct sock *sk, struct msghdr *msg, size_t len); 32 33 int nip_udp_input(struct sk_buff *skb); 34 int nip_udp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, 35 int noblock, int flags, int *addr_len); 36 37 #endif 38