Debian Codegraph @

HACKING.md

raw symbols SCIP
1 # Hacking on Arping
2
3 ## Coding style
4
5 * C99 to retain portability for the widest range of platforms
6 * Approximately [Linux kernel coding style][1], except:
7 * Line break before function name, in function definitions.
8 * Curly braces are mandatory.
9 * Place `*` next to the type, not the name. E.g. `char* p`
10
11 Don't make style-only changes, but fix the style on the line you're touching anyway.
12
13 [1]: https://github.com/torvalds/linux/blob/master/Documentation/process/coding-style.rst
14
15 ## Make release
16 1. Up version in configure.ac. Commit.
17 2. Run `./extra/mktarball HEAD`
18 3. Test that tarball.
19 1. make check
20 2. make distcheck
21 3. Some manual tests
22 4. Check `git log --reverse arping-2.oldversion..HEAD` for notable changes.
23 5. Create tag: `git tag -s arping-2.newversion`
24 6. Push to github: `git push --tags`
25 7. Make tarball: `./extra/mktarball arping-2.newversion`
26 8. Sign archive: `gpg -a -b arping-2.10.tar.gz`
27 9. Upload to http://www.habets.pp.se/synscan/files/
28 10. Update webpage.
29 11. Send email to [email protected]
30
31 ## Fuzzing
32
33 ```shell
34 CC=/path/to/afl-gcc ./configure
35 make
36 /path/to/afl-fuzz -i fuzz/pingip/ -o fuzz/out/ ./src/fuzz_pingip
37 ```