Re: Comparing 32 bit address from an ip header in a kernel module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ian..

Hello,
Thnks, Mulyadi
May we know, what does "daddr" refer to?
oops ! I my bad !
Instead :  if  (htonl(0xC0A80067) == daddr)
it should be:
if  (htonl(0xC0A80067) == iph->daddr)
daddr is a field of ip header (struct iphdr) defined thus:
__be32    daddr
OK, so now we know it's not something related to wrong ordering :)

regards,

Mulyadi


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux