/* read a message from the sending pipe in the standard format
(3 digit message length (excluding length and indicator field),
1 byte message indicator and the rest is the message) */
-int
+static int
pipe_read_block(int pipe, char *indicator, int len, char *msg) {
int required;
int newly;
}
/* save filters in a filter file */
-gboolean
+static gboolean
write_filters_file(FILE *f, gboolean only_marked)
{
struct write_filter_data data;
# final_registration_ncp2222()
print """
-void
+static void
final_registration_ncp2222(void)
{
int i;
#include <epan/reassemble.h>
#include <epan/emem.h>
+#include "packet-atalk.h"
#include "packet-afp.h"
/* Tables for reassembly of fragments. */
#ifndef __PACKET_ATALK_H__
#define __PACKET_ATALK_H__
-/*
- * Structure used to represent a DDP address; gives the layout of the
- * data pointed to by an AT_ATALK "address" structure.
- */
-struct atalk_ddp_addr {
- guint16 net;
- guint8 node;
- guint8 port;
-};
-
-/*
- * DDP packet types.
- */
-#define DDP_RTMPDATA 0x01
-#define DDP_NBP 0x02
-#define DDP_ATP 0x03
-#define DDP_AEP 0x04
-#define DDP_RTMPREQ 0x05
-#define DDP_ZIP 0x06
-#define DDP_ADSP 0x07
-#define DDP_EIGRP 0x58
-
-/*
- * Routine to take a DDP address and generate a string.
- */
-extern gchar *atalk_addr_to_str(const struct atalk_ddp_addr *addrp);
-
extern void capture_llap(packet_counts *ld);
#endif
};
-int
+static int
sam_dissect_SAM_SECURITY_DESCRIPTOR_data(tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *tree,
guint8 *drep)
return offset;
}
-int
+static int
sam_dissect_SAM_SECURITY_DESCRIPTOR(tvbuff_t *tvb, int offset,
packet_info *pinfo, proto_tree *parent_tree,
guint8 *drep)
* (i.e., to the RPC record mark field).
*/
-int
+static int
find_rpc_over_tcp_reply_start(tvbuff_t *tvb, int offset)
{
* if no valid RPC header is found.
*/
-int
+static int
find_and_dissect_rpc_fragment(tvbuff_t *tvb, int offset, packet_info *pinfo,
proto_tree *tree, rec_dissector_t dissector,
gboolean is_heur,
PSP_FAILED
} psp_return_t;
-psp_return_t
+static psp_return_t
process_specified_packets(capture_file *cf, packet_range_t *range,
const char *string1, const char *string2,
gboolean (*callback)(capture_file *, frame_data *,
/* we know this file is part of the set, so add it */
-fileset_entry *
+static fileset_entry *
fileset_add_file(const char *dirname, const char *fname, gboolean current)
{
int fh, result;
/* compare two list entries by creation date/time */
-gint
+static gint
fileset_compare_creation(gconstpointer a, gconstpointer b)
{
const fileset_entry *entry_a = a;
/* get the current list entry, or NULL */
-GList *
+static GList *
fileset_get_current(void)
{
GList *le;
/* delete a single entry */
-void fileset_entry_delete(gpointer data, gpointer user_data _U_)
+static void fileset_entry_delete(gpointer data, gpointer user_data _U_)
{
fileset_entry *entry = data;
* Mountain View, California 94043
*/
+#include "g711.h"
+
/*
* g711.c
*
}
/* A-law to u-law conversion */
-unsigned char
-alaw2ulaw(
- unsigned char aval)
-{
- aval &= 0xff;
- return ((aval & 0x80) ? (0xFF ^ _a2u[aval ^ 0xD5]) :
- (0x7F ^ _a2u[aval ^ 0x55]));
-}
+/* unsigned char
+ * alaw2ulaw(
+ * unsigned char aval)
+ * {
+ * aval &= 0xff;
+ * return ((aval & 0x80) ? (0xFF ^ _a2u[aval ^ 0xD5]) :
+ * (0x7F ^ _a2u[aval ^ 0x55]));
+ * }
+ */
/* u-law to A-law conversion */
-unsigned char
-ulaw2alaw(
- unsigned char uval)
-{
- uval &= 0xff;
- return ((uval & 0x80) ? (0xD5 ^ (_u2a[0xFF ^ uval] - 1)) :
- (0x55 ^ (_u2a[0x7F ^ uval] - 1)));
-}
+/* unsigned char
+ * ulaw2alaw(
+ * unsigned char uval)
+ * {
+ * uval &= 0xff;
+ * return ((uval & 0x80) ? (0xD5 ^ (_u2a[0xFF ^ uval] - 1)) :
+ * (0x55 ^ (_u2a[0x7F ^ uval] - 1)));
+ * }
+ */
/* update the menu */
-void
+static void
update_menu_recent_capture_file(GtkWidget *submenu_recent_files) {
guint cnt = 0;
/* remove the capture filename from the "Recent Files" menu */
-void
+static void
remove_menu_recent_capture_file(GtkWidget *widget, gpointer unused _U_) {
GtkWidget *submenu_recent_files;
gchar *widget_cf_name;
}
}
-void
+static void
menu_open_recent_file_cmd_cb(GtkWidget *widget, gpointer data _U_) {
gpointer dialog;
}
/* add the capture filename (with an absolute path) to the "Recent Files" menu */
-void
+static void
add_menu_recent_capture_file_absolute(gchar *cf_name) {
GtkWidget *submenu_recent_files;
GList *menu_item_list;
#include "packet-range.h"
/* (re-)calculate the packet counts (except the user specified range) */
-void packet_range_calc(packet_range_t *range) {
+static void packet_range_calc(packet_range_t *range) {
guint32 current_count;
guint32 mark_low;
guint32 mark_high;