Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.networking > #3972

Re: read IP header

From Rick Jones <rick.jones2@hpe.com>
Newsgroups comp.os.linux.networking
Subject Re: read IP header
Date 2017-02-14 21:19 +0000
Organization Hewlett-Packard Company
Message-ID <o7vs8m$i11$1@news.hpeswlab.net> (permalink)
References <o7vjc2$sqh$1@dont-email.me>

Show all headers | View raw


Bill Cunningham <nospam@nspam.invalid> wrote:
>     Can you look at the IP header with libpcap? I do know it works
> with the link layer. If I wanted to write smoething to capture
> packets and read the IP header, as an experiment what would I need
> other than libpcap? I am thinking sockets. For the connection. Just
> a networking program experiment.

libpcap captures the first N bytes of a packet.  Make N large enough
and it will include the IP header for IP traffic.

rick jones
-- 
The glass is neither half-empty nor half-full. The glass has a leak.
The real question is "Can it be patched?"
these opinions are mine, all mine; HPE might not want them anyway... :)
feel free to post, OR email to rick.jones2 in hpe.com but NOT BOTH...

Back to comp.os.linux.networking | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

read IP header "Bill Cunningham" <nospam@nspam.invalid> - 2017-02-14 13:49 -0500
  Re: read IP header Rick Jones <rick.jones2@hpe.com> - 2017-02-14 21:19 +0000
  Re: read IP header Jorgen Grahn <grahn+nntp@snipabacken.se> - 2017-02-14 21:52 +0000
    Re: read IP header "Bill Cunningham" <nospam@nspam.invalid> - 2017-02-15 13:34 -0500
      Re: read IP header Jorgen Grahn <grahn+nntp@snipabacken.se> - 2017-02-15 19:12 +0000
        Re: read IP header "Bill Cunningham" <nospam@nspam.invalid> - 2017-02-15 14:54 -0500
          Re: read IP header Jorgen Grahn <grahn+nntp@snipabacken.se> - 2017-02-16 07:04 +0000

csiph-web