netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Akshay Kawale <linux781@gmail.com>
To: netdev@oss.sgi.com
Subject: Difference between skb_put() and skb_push()
Date: Thu, 31 Mar 2005 00:46:03 -0500	[thread overview]
Message-ID: <72252ed05033021463a1f45b6@mail.gmail.com> (raw)

Hi,

I was wondering about the difference between skb_put() and skb_push().
Both appear to take in the same parameters and produce the same result
- that of lengthening the data area.

If I wanted to add data before the current data area, which one should I use?
(e.g. my data is 5678... and I wanted to prepend 1234 to it).

I am using these functions in a Netfilter hook to insert a header
between TCP and IP for a course project I am doing.

Please help me!!! :-)

Thanks.

- Akshay

             reply	other threads:[~2005-03-31  5:46 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-31  5:46 Akshay Kawale [this message]
2005-03-31  5:54 ` Difference between skb_put() and skb_push() YOSHIFUJI Hideaki / 吉藤英明
2005-04-02 18:44 ` Akshay Kawale

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=72252ed05033021463a1f45b6@mail.gmail.com \
    --to=linux781@gmail.com \
    --cc=netdev@oss.sgi.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).