Skip to content

Commit 9bd1da2

Browse files
committed
add: [pibs] skeleton for generating backscatter stats
1 parent a68dc52 commit 9bd1da2

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

bin/Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
all: pibs pibs-stat
2+
3+
pibs-stat: pibs-stat.o libpibs.o memutils.o synseen.o
4+
gcc -Wall -o pibs-stat pibs-stat.o libpibs.o memutils.o synseen.o -lwiretap `pkg-config --libs glib-2.0` -lpcap -lhiredis -ggdb
5+
6+
7+
pibs-stat.o: pibs-stat.c
8+
gcc -D HASHDEBUG=0 -Wall -c pibs-stat.c `pkg-config --cflags glib-2.0` -I /usr/include/wireshark/wiretap -I /usr/include/wireshark/wsutil -I /usr/include/wireshark `pkg-config --libs glib-2.0` -I /usr/local/include/hiredis -ggdb
9+
110
pibs: pibs.o memutils.o synseen.o libpibs.o
211
gcc -Wall -o pibs pibs.o memutils.o synseen.o libpibs.o -lwiretap `pkg-config --libs glib-2.0` -lpcap -lhiredis -ggdb
312

bin/pibs-stat.c

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* pibs - Passive Identification of BackScatter
3+
*
4+
* Copyright (C) 2019 Gerard Wagener
5+
* Copyright (C) 2019 CIRCL Computer Incident Response Center Luxembourg
6+
* (SMILE gie).
7+
*
8+
* This program is free software: you can redistribute it and/or modify
9+
* it under the terms of the GNU Affero General Public License as published by
10+
* the Free Software Foundation, either version 3 of the License, or
11+
* (at your option) any later version.
12+
*
13+
* This program is distributed in the hope that it will be useful,
14+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
15+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16+
* GNU Affero General Public License for more details.
17+
*
18+
* You should have received a copy of the GNU Affero General Public License
19+
* along with this program. If not, see <http://www.gnu.org/licenses/>.
20+
*/
21+
#include "pibs.h"
22+
int main(int argc, char* argv[])
23+
{
24+
pibs_t* pibs;
25+
pibs = init();
26+
27+
return EXIT_SUCCESS;
28+
}

0 commit comments

Comments
 (0)