Check-in [d639e0a548]
Overview
SHA1:d639e0a5482de86a211063635e745ca94957c5c7
Date: 2012-01-09 23:12:36
User: rmiller
Comment:Patch per Matthias Bernhardt.
Timelines: family | ancestors | descendants | both | trunk
Downloads: Tarball | ZIP archive
Other Links: files | file ages | folders | manifest
Tags And Properties
Context
2012-01-10
22:14
[7c39ff9950] Leaf: few minor cosmetic changes (user: rmiller, tags: trunk)
2012-01-09
23:12
[d639e0a548] Patch per Matthias Bernhardt. (user: rmiller, tags: trunk)
2011-03-06
23:30
[49947c3157] remove pbl_set_verdict. It was a waste of code lines. (user: rmiller, tags: trunk)
Changes

Modified packetbl.c from [194fb5b236] to [8779e8d279].

177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
	currtime = time(NULL);

	ipaddr_check = packet_info_to_ip(ip);
	if (packet_cache_len > 0) {
		cache_hash = packet_cache_hash(ip) % packet_cache_len;
	}
	buf = get_ip_string(&ip);
	if (cache_hash>0 && cache_hash<packet_cache_len && packet_cache != NULL) {
		if (packet_cache[cache_hash].ipaddr==ipaddr_check 
				&& packet_cache[cache_hash].expires>currtime) {
			retval = packet_cache[cache_hash].action;
			switch (retval) {
				case NF_DROP:
					actionstr="reject";
					statistics.cachereject++;







|







177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
	currtime = time(NULL);

	ipaddr_check = packet_info_to_ip(ip);
	if (packet_cache_len > 0) {
		cache_hash = packet_cache_hash(ip) % packet_cache_len;
	}
	buf = get_ip_string(&ip);
	if (packet_cache != NULL) {
		if (packet_cache[cache_hash].ipaddr==ipaddr_check 
				&& packet_cache[cache_hash].expires>currtime) {
			retval = packet_cache[cache_hash].action;
			switch (retval) {
				case NF_DROP:
					actionstr="reject";
					statistics.cachereject++;