patch-1.3.71 linux/include/linux/skbuff.h
Next file: linux/include/linux/socket.h
Previous file: linux/include/linux/netdevice.h
Back to the patch index
Back to the overall index
- Lines: 45
- Date:
Mon Mar 4 10:24:55 1996
- Orig file:
v1.3.70/linux/include/linux/skbuff.h
- Orig date:
Sat Feb 17 16:02:54 1996
diff -u --recursive --new-file v1.3.70/linux/include/linux/skbuff.h linux/include/linux/skbuff.h
@@ -33,8 +33,8 @@
struct sk_buff_head
{
- struct sk_buff * volatile next;
- struct sk_buff * volatile prev;
+ struct sk_buff * next;
+ struct sk_buff * prev;
__u32 qlen; /* Must be same length as a pointer
for using debugging */
#if CONFIG_SKB_CHECK
@@ -45,8 +45,8 @@
struct sk_buff
{
- struct sk_buff * volatile next; /* Next buffer in list */
- struct sk_buff * volatile prev; /* Previous buffer in list */
+ struct sk_buff * next; /* Next buffer in list */
+ struct sk_buff * prev; /* Previous buffer in list */
struct sk_buff_head * list; /* List we are on */
#if CONFIG_SKB_CHECK
int magic_debug_cookie;
@@ -63,8 +63,8 @@
struct iphdr *iph;
struct udphdr *uh;
unsigned char *raw;
- /* for passing an fd in a unix domain socket */
- struct file *filp;
+ /* for passing file handles in a unix domain socket */
+ void *filp;
} h;
union
@@ -160,6 +160,11 @@
extern int skb_tailroom(struct sk_buff *skb);
extern void skb_reserve(struct sk_buff *skb, int len);
extern void skb_trim(struct sk_buff *skb, int len);
+
+extern __inline__ int skb_queue_empty(struct sk_buff_head *list)
+{
+ return (list->next == (struct sk_buff *) list);
+}
/*
* Peek an sk_buff. Unlike most other operations you _MUST_
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this