Use "phtons()", not "htons()", just as we use "pntohs()" rather than
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 6 Jun 2002 18:58:12 +0000 (18:58 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 6 Jun 2002 18:58:12 +0000 (18:58 +0000)
"ntohs()".

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@5636 f5534014-38df-0310-8fa8-9805f1628bb7

wiretap/libpcap.c

index 784aea2cf4515f2faef9236066844bc95308b74d..001127d5d2e2ec86e634d4b5dbb9a8d345d099dc 100644 (file)
@@ -1,6 +1,6 @@
 /* libpcap.c
  *
- * $Id: libpcap.c,v 1.72 2002/06/06 09:18:28 guy Exp $
+ * $Id: libpcap.c,v 1.73 2002/06/06 18:58:12 guy Exp $
  *
  * Wiretap Library
  * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
@@ -1397,7 +1397,7 @@ static gboolean libpcap_dump(wtap_dumper *wdh,
                        break;
                }
                atm_hdr.vpi = pseudo_header->atm.vpi;
-               atm_hdr.vci = htons(pseudo_header->atm.vci);
+               atm_hdr.vci = phtons(&pseudo_header->atm.vci);
                nwritten = fwrite(&atm_hdr, 1, sizeof atm_hdr, wdh->fh);
                if (nwritten != sizeof atm_hdr) {
                        if (nwritten == 0 && ferror(wdh->fh))