extern int getcontact(struct natstr *np, natid them);
extern void putrel(struct natstr *np, natid them, int relate);
extern void putreject(struct natstr *np, natid them, int how, int what);
-extern void putcontact(struct natstr *np, natid them, int contact);
extern void agecontact(struct natstr *np);
extern int influx(struct natstr *np);
extern struct natstr *nat_reset(struct natstr *, natid, char *, char *,
np->nat_rejects[them] &= ~what;
}
-void
-putcontact(struct natstr *np, natid them, int contact)
-{
- if (CANT_HAPPEN(contact < 0))
- contact = 0;
- if (CANT_HAPPEN(contact > 255))
- contact = 255;
-
- if (np->nat_contact[them] < contact)
- np->nat_contact[them] = contact;
-}
-
int
influx(struct natstr *np)
{
*
* Known contributors to this file:
* Dave Pare, 1994
- * Markus Armbruster, 2005-2013
+ * Markus Armbruster, 2005-2016
*/
#include <config.h>
if (CANT_HAPPEN(!np))
return;
- putcontact(np, them, contact);
+
+ if (CANT_HAPPEN(contact < 0))
+ contact = 0;
+ if (CANT_HAPPEN(contact > 255))
+ contact = 255;
+
+ if (np->nat_contact[them] < contact)
+ np->nat_contact[them] = contact;
putnat(np);
}