Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jul 2008 22:39:29 GMT
From:      Stacey Son <sson@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 145395 for review
Message-ID:  <200807172239.m6HMdTX3043660@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=145395

Change 145395 by sson@sson_amd64 on 2008/07/17 22:39:18

		Bug fix: Wrong field used for "fport" in print_socketex32_tok(). 

Affected files ...

.. //depot/projects/trustedbsd/openbsm/libbsm/bsm_io.c#52 edit

Differences ...

==== //depot/projects/trustedbsd/openbsm/libbsm/bsm_io.c#52 (text+ko) ====

@@ -32,7 +32,7 @@
  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  * POSSIBILITY OF SUCH DAMAGE.
  *
- * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_io.c#51 $
+ * $P4: //depot/projects/trustedbsd/openbsm/libbsm/bsm_io.c#52 $
  */
 
 #include <sys/types.h>
@@ -3813,7 +3813,7 @@
 		print_ip_address(fp, tok->tt.socket_ex32.r_addr);
 		close_attr(fp);
 		open_attr(fp, "fport");
-		print_2_bytes(fp, tok->tt.socket_ex32.type, "%#x");
+		print_2_bytes(fp, ntohs(tok->tt.socket_ex32.r_port), "%#x");
 		close_attr(fp);
 		close_tag(fp, tok->id);
 	} else {



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200807172239.m6HMdTX3043660>