struct ip vs struct iphdr
Subsystems (2)
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.
Signature · 1 line
Олег Неманов (Oleg Nemanov)
Quoted 9 lines · 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.
BSD vs linux?
struct ip is a BSD-ism, intended to be used if you were porting some BSD app.
--Sowmini
Quoted 4 lines · Sowmini Varadhan
BSD vs linux?
struct ip is a BSD-ism, intended to be used if you were porting some BSD app.
Thanks!
Signature · 1 line
Олег Неманов (Oleg Nemanov)
Quoted 6 lines · 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?
Also, see this:
http://stackoverflow.com/questions/42840636/difference-between-struct-ip-and-struct-iphdr
Quoted 3 lines
Thanks.
Quoted 3 lines · Girish Moodalbail
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!
Signature · 1 line
Олег Неманов (Oleg Nemanov)