aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2012-12-04 16:02:38 +0100
committerLaurent Ghigonis <laurent@p1sec.com>2012-12-04 16:02:38 +0100
commitc36783896abcacdc477b67587c888316c27a2050 (patch)
treed56cae6f0127d3624b8708302c68ea63f306b8a7
parentfactorise all ethernet handling in ether_handle() (diff)
downloadglouglou-c36783896abcacdc477b67587c888316c27a2050.tar.xz
glouglou-c36783896abcacdc477b67587c888316c27a2050.zip
code indent
-rw-r--r--gg_sniff/pcap.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/gg_sniff/pcap.c b/gg_sniff/pcap.c
index 25e4a7c..52416e5 100644
--- a/gg_sniff/pcap.c
+++ b/gg_sniff/pcap.c
@@ -62,23 +62,23 @@ 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 ether_handle(struct ether_header *, const u_char *, u_int);
+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 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 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_pcap(int, short, void *);
+static void cb_conntimer(int, short, void *);
static struct phandler phandlers[] = {
{ phandler_ether, DLT_EN10MB },