Skip to content

Commit

Permalink
Craig Rodrigues' fixes to let it compile on AIX using IBM's compiler
Browse files Browse the repository at this point in the history
(remove commas following the last member of an enum, make all bit fields
"guint32" - GCC lets you get away with that, but at least some other
compilers don't).

svn path=/trunk/; revision=1052
  • Loading branch information
guyharris committed Nov 18, 1999
1 parent e534202 commit 781acb5
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 38 deletions.
62 changes: 31 additions & 31 deletions packet-ipv6.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* packet-ipv6.h
* Definitions for IPv6 packet disassembly
*
* $Id: packet-ipv6.h,v 1.8 1999/11/03 06:13:20 guy Exp $
* $Id: packet-ipv6.h,v 1.9 1999/11/18 01:45:05 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org>
Expand Down Expand Up @@ -417,25 +417,25 @@ struct icmp6_namelookup {
struct icmp6_router_renum { /* router renumbering header */
struct icmp6_hdr rr_hdr;
guint8 rr_segnum;
guint8 rr_test : 1;
guint8 rr_reqresult : 1;
guint8 rr_forceapply : 1;
guint8 rr_specsite : 1;
guint8 rr_prevdone : 1;
guint8 rr_flags_reserved : 3;
guint32 rr_test : 1;
guint32 rr_reqresult : 1;
guint32 rr_forceapply : 1;
guint32 rr_specsite : 1;
guint32 rr_prevdone : 1;
guint32 rr_flags_reserved : 3;
guint16 rr_maxdelay;
guint32 rr_reserved;
};
#elif BYTE_ORDER == LITTLE_ENDIAN
struct icmp6_router_renum { /* router renumbering header */
struct icmp6_hdr rr_hdr;
guint8 rr_segnum;
guint8 rr_flags_reserved : 3;
guint8 rr_prevdone : 1;
guint8 rr_specsite : 1;
guint8 rr_forceapply : 1;
guint8 rr_reqresult : 1;
guint8 rr_test : 1;
guint32 rr_flags_reserved : 3;
guint32 rr_prevdone : 1;
guint32 rr_specsite : 1;
guint32 rr_forceapply : 1;
guint32 rr_reqresult : 1;
guint32 rr_test : 1;
guint16 rr_maxdelay;
guint32 rr_reserved;
};
Expand Down Expand Up @@ -466,12 +466,12 @@ struct rr_pco_match { /* match prefix part */
struct rr_pco_use { /* use prefix part */
guint8 rpu_uselen;
guint8 rpu_keeplen;
guint8 rpu_mask_onlink : 1;
guint8 rpu_mask_autonomous : 1;
guint8 rpu_mask_reserved : 6;
guint8 rpu_onlink : 1;
guint8 rpu_autonomous : 1;
guint8 rpu_raflags_reserved : 6;
guint32 rpu_mask_onlink : 1;
guint32 rpu_mask_autonomous : 1;
guint32 rpu_mask_reserved : 6;
guint32 rpu_onlink : 1;
guint32 rpu_autonomous : 1;
guint32 rpu_raflags_reserved : 6;
guint32 rpu_vltime;
guint32 rpu_pltime;
guint32 rpu_decr_vltime : 1;
Expand All @@ -484,12 +484,12 @@ struct rr_pco_use { /* use prefix part */
struct rr_pco_use { /* use prefix part */
guint8 rpu_uselen;
guint8 rpu_keeplen;
guint8 rpu_mask_reserved : 6;
guint8 rpu_mask_autonomous : 1;
guint8 rpu_mask_onlink : 1;
guint8 rpu_raflags_reserved : 6;
guint8 rpu_autonomous : 1;
guint8 rpu_onlink : 1;
guint32 rpu_mask_reserved : 6;
guint32 rpu_mask_autonomous : 1;
guint32 rpu_mask_onlink : 1;
guint32 rpu_raflags_reserved : 6;
guint32 rpu_autonomous : 1;
guint32 rpu_onlink : 1;
guint32 rpu_vltime;
guint32 rpu_pltime;
guint32 rpu_flags_reserved : 6;
Expand All @@ -503,9 +503,9 @@ struct rr_pco_use { /* use prefix part */
#if BYTE_ORDER == BIG_ENDIAN /* net byte order */
struct rr_result { /* router renumbering result message */
guint8 rrr_reserved;
guint8 rrr_flags_reserved : 6;
guint8 rrr_outofbound : 1;
guint8 rrr_forbidden : 1;
guint32 rrr_flags_reserved : 6;
guint32 rrr_outofbound : 1;
guint32 rrr_forbidden : 1;
guint8 rrr_ordinal;
guint8 rrr_matchedlen;
guint32 rrr_ifid;
Expand All @@ -514,9 +514,9 @@ struct rr_result { /* router renumbering result message */
#elif BYTE_ORDER == LITTLE_ENDIAN
struct rr_result { /* router renumbering result message */
guint8 rrr_reserved;
guint8 rrr_forbidden : 1;
guint8 rrr_outofbound : 1;
guint8 rrr_flags_reserved : 6;
guint32 rrr_forbidden : 1;
guint32 rrr_outofbound : 1;
guint32 rrr_flags_reserved : 6;
guint8 rrr_ordinal;
guint8 rrr_matchedlen;
guint32 rrr_ifid;
Expand Down
4 changes: 2 additions & 2 deletions packet-ncp.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Routines for NetWare Core Protocol
* Gilbert Ramirez <gram@verdict.uthscsa.edu>
*
* $Id: packet-ncp.c,v 1.22 1999/11/17 21:58:28 guy Exp $
* $Id: packet-ncp.c,v 1.23 1999/11/18 01:45:02 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@unicom.net>
Expand Down Expand Up @@ -158,7 +158,7 @@ enum nfamily {
NCP_QUEUE_SERVICES, /* print queues */
NCP_FILE_SERVICES, /* file serving */
NCP_BINDERY_SERVICES, /* bindery database */
NCP_CONNECTION_SERVICES, /* communication */
NCP_CONNECTION_SERVICES /* communication */
};

/* I had to put this function prototype after the enum nfamily declaration */
Expand Down
8 changes: 4 additions & 4 deletions packet-rsvp.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*
* (C) Ashok Narayanan <ashokn@cisco.com>
*
* $Id: packet-rsvp.h,v 1.6 1999/08/27 20:10:14 guy Exp $
* $Id: packet-rsvp.h,v 1.7 1999/11/18 01:45:02 guy Exp $
*
* For license details, see the COPYING file with this distribution
*
Expand Down Expand Up @@ -53,7 +53,7 @@ enum rsvp_classes {
RSVP_CLASS_SENDER_TSPEC,
RSVP_CLASS_ADSPEC,
RSVP_CLASS_POLICY,
RSVP_CLASS_CONFIRM,
RSVP_CLASS_CONFIRM
};

static value_string rsvp_class_vals[] = {
Expand Down Expand Up @@ -297,7 +297,7 @@ enum qos_service_type {
QOS_QUALITATIVE = 128, /* Qualitative service */
QOS_CONTROLLED_LOAD= 5, /* Controlled Load Service */
QOS_GUARANTEED = 2, /* Guaranteed service */
QOS_TSPEC = 1, /* Traffic specification */
QOS_TSPEC = 1 /* Traffic specification */
};

static value_string qos_vals[] = {
Expand All @@ -319,7 +319,7 @@ enum intsrv_services {
INTSRV_GENERAL = 1,
INTSRV_GTD = 2,
INTSRV_CLOAD = 5,
INTSRV_QUALITATIVE = 128,
INTSRV_QUALITATIVE = 128
};

static value_string intsrv_services_str[] = {
Expand Down
3 changes: 2 additions & 1 deletion packet-smb.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Routines for smb packet dissection
* Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com>
*
* $Id: packet-smb.c,v 1.41 1999/11/17 21:58:28 guy Exp $
* $Id: packet-smb.c,v 1.42 1999/11/18 01:45:03 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@unicom.net>
Expand Down Expand Up @@ -9934,6 +9934,7 @@ dissect_mailslot_smb(const u_char *pd, int offset, frame_data *fd, proto_tree *p
break;

default:
break;
}

return 1; /* Success */
Expand Down

0 comments on commit 781acb5

Please sign in to comment.