aboutsummaryrefslogtreecommitdiffstats
path: root/epan/address.h
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2014-08-05 16:10:44 -0400
committerBill Meier <wmeier@newsguy.com>2014-08-05 20:42:21 +0000
commitf3dd7fe1eb5348922b079db2bdede700d4d28fbd (patch)
tree7382b5da9a3c1de3eba0e91aed54c087fcfea549 /epan/address.h
parentdfe331e35e0400942d3ad9e4b5f8c84369546b6d (diff)
Fix whitespace/indentation to match editor modelines.
Change-Id: I3445ae22f10584582d465bf632942e016f5f70ca Reviewed-on: https://code.wireshark.org/review/3452 Reviewed-by: Bill Meier <wmeier@newsguy.com>
Diffstat (limited to 'epan/address.h')
-rw-r--r--epan/address.h62
1 files changed, 31 insertions, 31 deletions
diff --git a/epan/address.h b/epan/address.h
index d64cf93b0a..f3ab362d37 100644
--- a/epan/address.h
+++ b/epan/address.h
@@ -62,10 +62,10 @@ typedef enum {
} address_type;
typedef struct _address {
- address_type type; /* type of address */
- int hf; /* the specific field that this addr is */
- int len; /* length of address, in bytes */
- const void *data; /* pointer to address data */
+ address_type type; /* type of address */
+ int hf; /* the specific field that this addr is */
+ int len; /* length of address, in bytes */
+ const void *data; /* pointer to address data */
} address;
/** Initialize an address with the given values.
@@ -83,7 +83,7 @@ set_address(address *addr, address_type addr_type, int addr_len, const void * ad
addr->hf = -1;
addr->len = addr_len;
}
-#define SET_ADDRESS(addr, addr_type, addr_len, addr_data) \
+#define SET_ADDRESS(addr, addr_type, addr_len, addr_data) \
set_address((addr), (addr_type), (addr_len), (addr_data))
/** Initialize an address from TVB data.
@@ -101,7 +101,7 @@ set_address(address *addr, address_type addr_type, int addr_len, const void * ad
* @param addr_len [in] The length in bytes of the address data. For example, 4 for
* AT_IPv4 or sizeof(struct e_in6_addr) for AT_IPv6.
*/
-#define TVB_SET_ADDRESS(addr, addr_type, tvb, offset, addr_len) \
+#define TVB_SET_ADDRESS(addr, addr_type, tvb, offset, addr_len) \
do { \
const void *TVB_SET_ADDRESS_data = (const void *)tvb_get_ptr(tvb, offset, addr_len); \
set_address((addr), (addr_type), (addr_len), TVB_SET_ADDRESS_data); \
@@ -123,7 +123,7 @@ set_address_hf(address *addr, address_type addr_type, int addr_len, const void *
addr->hf = addr_hf;
addr->len = addr_len;
}
-#define SET_ADDRESS_HF(addr, addr_type, addr_len, addr_data, addr_hf) \
+#define SET_ADDRESS_HF(addr, addr_type, addr_len, addr_data, addr_hf) \
set_address_hf((addr), (addr_type), (addr_len), (addr_data), (addr_hf))
/** Initialize an address from TVB data including an associated field.
@@ -142,7 +142,7 @@ set_address_hf(address *addr, address_type addr_type, int addr_len, const void *
* AT_IPv4 or sizeof(struct e_in6_addr) for AT_IPv6.
* @param addr_hf [in] The header field index to associate with the address.
*/
-#define TVB_SET_ADDRESS_HF(addr, addr_type, tvb, offset, addr_len, addr_hf) \
+#define TVB_SET_ADDRESS_HF(addr, addr_type, tvb, offset, addr_len, addr_hf) \
do { \
const void *TVB_SET_ADDRESS_data = (const void *) tvb_get_ptr(tvb, offset, addr_len); \
set_address_hf((addr), (addr_type), (addr_len), TVB_SET_ADDRESS_data, (addr_hf)); \
@@ -284,35 +284,35 @@ add_address_to_hash64(guint64 hash_val, const address *addr) {
/* Types of port numbers Wireshark knows about. */
typedef enum {
- PT_NONE, /* no port number */
- PT_SCTP, /* SCTP */
- PT_TCP, /* TCP */
- PT_UDP, /* UDP */
- PT_DCCP, /* DCCP */
- PT_IPX, /* IPX sockets */
- PT_NCP, /* NCP connection */
- PT_EXCHG, /* Fibre Channel exchange */
- PT_DDP, /* DDP AppleTalk connection */
- PT_SBCCS, /* FICON */
- PT_IDP, /* XNS IDP sockets */
- PT_TIPC, /* TIPC PORT */
- PT_USB, /* USB endpoint 0xffff means the host */
+ PT_NONE, /* no port number */
+ PT_SCTP, /* SCTP */
+ PT_TCP, /* TCP */
+ PT_UDP, /* UDP */
+ PT_DCCP, /* DCCP */
+ PT_IPX, /* IPX sockets */
+ PT_NCP, /* NCP connection */
+ PT_EXCHG, /* Fibre Channel exchange */
+ PT_DDP, /* DDP AppleTalk connection */
+ PT_SBCCS, /* FICON */
+ PT_IDP, /* XNS IDP sockets */
+ PT_TIPC, /* TIPC PORT */
+ PT_USB, /* USB endpoint 0xffff means the host */
PT_I2C,
- PT_IBQP, /* Infiniband QP number */
+ PT_IBQP, /* Infiniband QP number */
PT_BLUETOOTH
} port_type;
/* Types of circuit IDs Wireshark knows about. */
typedef enum {
- CT_NONE, /* no circuit type */
- CT_DLCI, /* Frame Relay DLCI */
- CT_ISDN, /* ISDN channel number */
- CT_X25, /* X.25 logical channel number */
- CT_ISUP, /* ISDN User Part CIC */
- CT_IAX2, /* IAX2 call id */
- CT_H223, /* H.223 logical channel number */
- CT_BICC, /* BICC Circuit identifier */
- CT_DVBCI /* DVB-CI session number|transport connection id */
+ CT_NONE, /* no circuit type */
+ CT_DLCI, /* Frame Relay DLCI */
+ CT_ISDN, /* ISDN channel number */
+ CT_X25, /* X.25 logical channel number */
+ CT_ISUP, /* ISDN User Part CIC */
+ CT_IAX2, /* IAX2 call id */
+ CT_H223, /* H.223 logical channel number */
+ CT_BICC, /* BICC Circuit identifier */
+ CT_DVBCI /* DVB-CI session number|transport connection id */
/* Could also have ATM VPI/VCI pairs */
} circuit_type;