Reply To: local ip address

Home Forums Discussions Support Portal local ip address Reply To: local ip address

#5866

Vadim Smirnov
Moderator

pIPHeader = (iphdr*)PacketBuffer.m_IBuffer+14;

Typecasting has a higher priority than operator + above. You have to change it to:

pIPHeader = (iphdr*)PacketBuffer.m_IBuffer[14];

or

pIPHeader = (iphdr*)(PacketBuffer.m_IBuffer+14);