fix spelling error in include/linux/kernel.h
[safe/jmp/linux-2.6] / include / linux / udp.h
index b60e0b4..014b41d 100644 (file)
 #include <linux/types.h>
 
 struct udphdr {
-       __u16   source;
-       __u16   dest;
-       __u16   len;
-       __u16   check;
+       __be16  source;
+       __be16  dest;
+       __be16  len;
+       __be16  check;
 };
 
 /* UDP socket options */
@@ -35,10 +35,9 @@ struct udphdr {
 #define UDP_ENCAP_ESPINUDP     2 /* draft-ietf-ipsec-udp-encaps-06 */
 
 #ifdef __KERNEL__
+#include <linux/types.h>
 
-#include <linux/config.h>
-#include <net/sock.h>
-#include <linux/ip.h>
+#include <net/inet_sock.h>
 
 struct udp_sock {
        /* inet_sock has to be the first member */
@@ -47,7 +46,7 @@ struct udp_sock {
        unsigned int     corkflag;      /* Cork is required */
        __u16            encap_type;    /* Is this an Encapsulation socket? */
        /*
-        * Following member retains the infomation to create a UDP header
+        * Following member retains the information to create a UDP header
         * when the socket is uncorked.
         */
        __u16            len;           /* total length of pending frames */