summaryrefslogtreecommitdiff
path: root/proto.h
AgeCommit message (Expand)AuthorFilesLines
2015-10-19netsniff-ng: proto: Make raw hex/ascii print function globally availableTobias Klauser1-0/+2
2015-02-23proto: Make protocol->key member constTobias Klauser1-1/+1
2014-06-16proto: Remove unnecessary include of hash.hTobias Klauser1-1/+0
2013-03-15all: import netsniff-ng 0.5.8-rc0 sourceDaniel Borkmann1-0/+34
class='oid'>322a8b034003c0d46d39af85bf24fee27b902f48 (diff)
batman-adv: hash_add() has to discriminate on the return value
hash_add() returns 0 on success while returns -1 either on error and on entry already present. The caller could use such information to select its behaviour. For this reason it is useful that hash_add() returns -1 in case on error and returns 1 in case of entry already present. Signed-off-by: Antonio Quartulli <ordex@autistici.org> Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Diffstat (limited to 'net')