Re: figuring out the udp port number (in linux >= 2.6.22)

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

 



On Mar 16 2008 19:43, Marty Leisner wrote:
>
>Obviously I'm doing something wrong...My UDP port 
>numbers look all wrong (I took at them raw and ran them 
>through ntohs to see if anything looked right)
>*They're a type __be16 -- which is network byte order?)

__be16 is an annotated tag. It is still unsigned short
internally, but is there to indicate big-endian encoding is used.

>BTW, the IP addresses look fine, I wrote my own inet_ntoa_r...

But what for?

printk("Addr: " NIP_FMT "\n", NIPQUAD(some struct in_addr));
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux