Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 90251
b: refs/heads/master
c: 310afe8
h: refs/heads/master
i:
  90249: c8b21a6
  90247: d4febba
v: v3
  • Loading branch information
Joe Perches authored and David S. Miller committed Mar 24, 2008
1 parent 0a850e3 commit c0a2834
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cc32e05416b4023a5466a2f66e3c02236a771c5b
refs/heads/master: 310afe86af8ddd96a06b75aa61ef1af233f80e89
18 changes: 7 additions & 11 deletions trunk/include/linux/udp.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,6 @@ struct udphdr {
__sum16 check;
};

#ifdef __KERNEL__
#include <linux/skbuff.h>

static inline struct udphdr *udp_hdr(const struct sk_buff *skb)
{
return (struct udphdr *)skb_transport_header(skb);
}
#endif

/* UDP socket options */
#define UDP_CORK 1 /* Never send partially complete segments */
#define UDP_ENCAP 100 /* Set the socket to accept encapsulated packets */
Expand All @@ -45,9 +36,14 @@ static inline struct udphdr *udp_hdr(const struct sk_buff *skb)
#define UDP_ENCAP_L2TPINUDP 3 /* rfc2661 */

#ifdef __KERNEL__
#include <linux/types.h>

#include <net/inet_sock.h>
#include <linux/skbuff.h>

static inline struct udphdr *udp_hdr(const struct sk_buff *skb)
{
return (struct udphdr *)skb_transport_header(skb);
}

#define UDP_HTABLE_SIZE 128

struct udp_sock {
Expand Down

0 comments on commit c0a2834

Please sign in to comment.