• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * Based on include/net/transp_v6.h
4  * No Authors, no Copyright
5  */
6 #ifndef _TRANSP_NIP_H
7 #define _TRANSP_NIP_H
8 
9 extern struct proto nip_udp_prot;
10 
11 int nip_udp_init(void);
12 void nip_udp_exit(void);
13 
14 int nip_udp_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len);
15 
16 void nip_datagram_recv_ctl(struct sock *sk, struct msghdr *msg,
17 			   struct sk_buff *skb);
18 void nip_datagram_recv_common_ctl(struct sock *sk, struct msghdr *msg,
19 				  struct sk_buff *skb);
20 void nip_datagram_recv_specific_ctl(struct sock *sk, struct msghdr *msg,
21 				    struct sk_buff *skb);
22 
23 void nip_dgram_sock_seq_show(struct seq_file *seq, struct sock *sp, __u16 srcp,
24 			     __u16 destp, int bucket);
25 
26 void ninet_destroy_sock(struct sock *sk);
27 
28 #endif
29