Date: Fri, 18 Apr 1997 12:05:45 +0200 From: j@uriah.heep.sax.de (J Wunsch) To: freebsd-current@freebsd.org Subject: Re: libpcap problem? Message-ID: <19970418120545.GI46508@uriah.heep.sax.de> In-Reply-To: <Pine.BSF.3.95.970417173628.2934B-100000@opus.cts.cwu.edu>; from Chris Timmons on Apr 17, 1997 17:57:26 -0700 References: <Pine.BSF.3.95.970417173628.2934B-100000@opus.cts.cwu.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
As Chris Timmons wrote: > You would expect that 0x25 should be generated in the BPF codes to match > against this port, and it is - as shown on lines 8 and 10 below: ... > now look what happens when we specify our port symbolically: > 0x25 becomes 0x2500 and tcpdump doesn't match udp port time, it matches > udp port 0x2500 :( There's a htons() missing somewhere. -- cheers, J"org joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE Never trust an operating system you don't have sources for. ;-)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970418120545.GI46508>
