Re: struct ip vs struct iphdr

2017-05-05 Thread Oleg
On Thu, May 04, 2017 at 10:08:46AM -0700, Girish Moodalbail wrote:
> Also, see this:
> 
> http://stackoverflow.com/questions/42840636/difference-between-struct-ip-and-struct-iphdr

  I saw this. But the answer say that struct ip and struct iphdr defined in
different places. However i see struct iphdr together with struct ip in
my netinet/ip.h. So, i thought that this answer may be inexact or incorrect.

  Thanks!

-- 
Олег Неманов (Oleg Nemanov)


Re: struct ip vs struct iphdr

2017-05-05 Thread Oleg
On Thu, May 04, 2017 at 12:52:48PM -0400, Sowmini Varadhan wrote:
> BSD vs linux?
> 
> struct ip is a BSD-ism, intended to be used if you were porting
> some BSD app.

  Thanks!

-- 
Олег Неманов (Oleg Nemanov)


Re: struct ip vs struct iphdr

2017-05-04 Thread Girish Moodalbail

On 5/4/17 9:42 AM, Oleg wrote:

  Hi, all.

It seems struct ip and struct iphdr are similar: struct ip, despite of
it name, doesn't contain anything but ip header.

So, my noob question, what is the difference between them?


Also, see this:

http://stackoverflow.com/questions/42840636/difference-between-struct-ip-and-struct-iphdr



Thanks.





Re: struct ip vs struct iphdr

2017-05-04 Thread Sowmini Varadhan
On (05/04/17 19:42), Oleg wrote:
> 
>   Hi, all.
> 
> It seems struct ip and struct iphdr are similar: struct ip, despite of
> it name, doesn't contain anything but ip header.
> 
> So, my noob question, what is the difference between them?
> 
> Thanks.

BSD vs linux?

struct ip is a BSD-ism, intended to be used if you were porting
some BSD app.

--Sowmini


struct ip vs struct iphdr

2017-05-04 Thread Oleg
  Hi, all.

It seems struct ip and struct iphdr are similar: struct ip, despite of
it name, doesn't contain anything but ip header.

So, my noob question, what is the difference between them?

Thanks.

-- 
Олег Неманов (Oleg Nemanov)