Annotation of embedaddon/arping/HACKING.md, revision 1.1
1.1 ! misho 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: 4. Check `git log --reverse arping-2.oldversion..HEAD` for notable changes.
! 20: 5. Create tag: `git tag -s arping-2.newversion`
! 21: 6. Push to github: `git push --tags`
! 22: 7. Make tarball: `./extra/mktarball arping-2.newversion`
! 23: 8. Sign archive: `gpg -a -b arping-2.10.tar.gz`
! 24: 9. Upload to http://www.habets.pp.se/synscan/files/
! 25: 10. Update webpage.
! 26: 11. Send email to synscan-announce@googlegroups.com
! 27:
! 28: ## Fuzzing
! 29:
! 30: ```shell
! 31: CC=/path/to/afl-gcc ./configure
! 32: make
! 33: /path/to/afl-fuzz -i fuzz/pingip/ -o fuzz/out/ ./src/fuzz_pingip
! 34: ```
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>