aboutsummaryrefslogtreecommitdiffstats
path: root/gg_sniff
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2013-06-05 19:21:54 +0200
committerLaurent Ghigonis <laurent@p1sec.com>2013-06-05 19:21:54 +0200
commitca76478bcb7ec20329b4690ef8dd62662514a849 (patch)
tree76d64f1a0ba8f905eb0dad4547e06da60b1d85af /gg_sniff
parentlibglouglou: dnsreverse typo (diff)
downloadglouglou-ca76478bcb7ec20329b4690ef8dd62662514a849.tar.xz
glouglou-ca76478bcb7ec20329b4690ef8dd62662514a849.zip
indent fix, pass 2
no functional change
Diffstat (limited to 'gg_sniff')
-rw-r--r--gg_sniff/gg_sniff.h2
-rw-r--r--gg_sniff/pcap.c30
2 files changed, 16 insertions, 16 deletions
diff --git a/gg_sniff/gg_sniff.h b/gg_sniff/gg_sniff.h
index 0b8d85c..01fa468 100644
--- a/gg_sniff/gg_sniff.h
+++ b/gg_sniff/gg_sniff.h
@@ -1,5 +1,5 @@
/* pcap.c */
int ggsniff_pcap_init(struct event_base *, struct gg_client *,
- struct ggnet *, char *, int, char *);
+ struct ggnet *, char *, int, char *);
void ggsniff_pcap_shutdown(void);
diff --git a/gg_sniff/pcap.c b/gg_sniff/pcap.c
index 2e31769..91e76c9 100644
--- a/gg_sniff/pcap.c
+++ b/gg_sniff/pcap.c
@@ -62,25 +62,25 @@ struct _cap_t {
int ptruncated;
};
-static pcap_t *my_pcap_open_live(const char *, int, int, int,
- char *, u_int, u_int);
-static void ip_handle(struct ip *, const u_char *, u_int);
-static void conn_del(struct ggnet_conn *);
-static void ether_handle(struct ether_header *, const u_char *, u_int);
-static pcap_handler lookup_phandler(int);
-static void phandler_ether(u_char *,
- const struct pcap_pkthdr *, const u_char *);
+static pcap_t *my_pcap_open_live(const char *, int, int, int,
+ char *, u_int, u_int);
+static void ip_handle(struct ip *, const u_char *, u_int);
+static void conn_del(struct ggnet_conn *);
+static void ether_handle(struct ether_header *, const u_char *, u_int);
+static pcap_handler lookup_phandler(int);
+static void phandler_ether(u_char *,
+ const struct pcap_pkthdr *, const u_char *);
#if defined(__OpenBSD__)
-static void phandler_loop(u_char *,
- const struct pcap_pkthdr *, const u_char *);
+static void phandler_loop(u_char *,
+ const struct pcap_pkthdr *, const u_char *);
#endif
#if defined(__linux__)
-static void phandler_sll(u_char *,
- const struct pcap_pkthdr *, const u_char *);
+static void phandler_sll(u_char *,
+ const struct pcap_pkthdr *, const u_char *);
#endif
-static void cb_pcap(int, short, void *);
-static void cb_conntimer(int, short, void *);
-static void cb_nodename(struct ggnet *, struct ggnet_node *);
+static void cb_pcap(int, short, void *);
+static void cb_conntimer(int, short, void *);
+static void cb_nodename(struct ggnet *, struct ggnet_node *);
static struct phandler phandlers[] = {
{ phandler_ether, DLT_EN10MB },