NAME
skb_peek - peek an sk_buff
SYNOPSIS
#include <linux/skbuff.h>
struct sk_buff *skb_peek(struct sk_buff_head *list_);
DESCRIPTION
The skb_peek function extracts the head element of list_,
without modifying list_. It is important to note that this
is not necessarily a safe operation, as list_ maintains the
original sk_buff, and other operations on list_ may effect
it. To be safe, either disable interrupts using cli(9),
call skb_peek, copy the data necessary to continue, and re-
enable interrupts using sti(9), or use skb_dequeue(9).
RETURN VALUE
Returns a pointer to sk_buff if there is a next element on
the list_. Otherwise, returns NULL.
AVAILABILITY
Linux 1.0+
SEE ALSO
intro(9), skb_unlink(9), skb_dequeue(9)
/usr/src/linux/net/appletalk/ddp.c
/usr/src/linux/net/core/datagram.c
/usr/src/linux/net/ipv4/tcp.c /usr/src/linux/net/ipv4/udp.c
/usr/src/linux/net/unix/af_unix.c
AUTHOR
Cyrus Durgin <cider@speakeasy.org>