Annotation of Gnu-Mach/linux/src/include/net/udp.h, revision 1.1

1.1     ! root        1: /*
        !             2:  * INET                An implementation of the TCP/IP protocol suite for the LINUX
        !             3:  *             operating system.  INET is implemented using the  BSD Socket
        !             4:  *             interface as the means of communication with the user level.
        !             5:  *
        !             6:  *             Definitions for the UDP module.
        !             7:  *
        !             8:  * Version:    @(#)udp.h       1.0.2   05/07/93
        !             9:  *
        !            10:  * Authors:    Ross Biro, <[email protected]>
        !            11:  *             Fred N. van Kempen, <[email protected]>
        !            12:  *
        !            13:  * Fixes:
        !            14:  *             Alan Cox        : Turned on udp checksums. I don't want to
        !            15:  *                               chase 'memory corruption' bugs that aren't!
        !            16:  *
        !            17:  *             This program is free software; you can redistribute it and/or
        !            18:  *             modify it under the terms of the GNU General Public License
        !            19:  *             as published by the Free Software Foundation; either version
        !            20:  *             2 of the License, or (at your option) any later version.
        !            21:  */
        !            22: #ifndef _UDP_H
        !            23: #define _UDP_H
        !            24: 
        !            25: #include <linux/udp.h>
        !            26: 
        !            27: #define UDP_HTABLE_SIZE                128
        !            28: 
        !            29: /* udp.c: This needs to be shared by v4 and v6 because the lookup
        !            30:  *        and hashing code needs to work with different AF's yet
        !            31:  *        the port space is shared.
        !            32:  */
        !            33: extern struct sock *udp_hash[UDP_HTABLE_SIZE];
        !            34: 
        !            35: extern unsigned short udp_good_socknum(void);
        !            36: 
        !            37: #define UDP_NO_CHECK   0
        !            38: 
        !            39: 
        !            40: extern struct proto udp_prot;
        !            41: 
        !            42: 
        !            43: extern void    udp_err(int type, int code, unsigned char *header, __u32 daddr,
        !            44:                        __u32 saddr, struct inet_protocol *protocol, int len);
        !            45: extern void    udp_send_check(struct udphdr *uh, __u32 saddr, 
        !            46:                        __u32 daddr, int len, struct sock *sk);
        !            47: extern int     udp_recvfrom(struct sock *sk, unsigned char *to,
        !            48:                             int len, int noblock, unsigned flags,
        !            49:                             struct sockaddr_in *sin, int *addr_len);
        !            50: extern int     udp_read(struct sock *sk, unsigned char *buff,
        !            51:                         int len, int noblock, unsigned flags);
        !            52: extern int     udp_connect(struct sock *sk,
        !            53:                            struct sockaddr_in *usin, int addr_len);
        !            54: extern int     udp_rcv(struct sk_buff *skb, struct device *dev,
        !            55:                        struct options *opt, __u32 daddr,
        !            56:                        unsigned short len, __u32 saddr, int redo,
        !            57:                        struct inet_protocol *protocol);
        !            58: extern int     udp_ioctl(struct sock *sk, int cmd, unsigned long arg);
        !            59: 
        !            60: /* CONFIG_IP_TRANSPARENT_PROXY */
        !            61: extern int     udp_chkaddr(struct sk_buff *skb);
        !            62: 
        !            63: #endif /* _UDP_H */

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.