View | Details | Raw Unified | Return to bug 190964 | Differences between
and this patch

Collapse All | Expand All

(-)contrib/ipfilter/lib/printhost.c (-1 / +1 lines)
Lines 23-31 Link Here
23
	if ((family == -1) || !*addr)
23
	if ((family == -1) || !*addr)
24
		PRINTF("any");
24
		PRINTF("any");
25
	else {
25
	else {
26
#ifdef  USE_INET6
26
		void *ptr = addr;
27
		void *ptr = addr;
27
28
28
#ifdef  USE_INET6
29
		PRINTF("%s", inet_ntop(family, ptr, ipbuf, sizeof(ipbuf)));
29
		PRINTF("%s", inet_ntop(family, ptr, ipbuf, sizeof(ipbuf)));
30
#else
30
#else
31
		ipa.s_addr = *addr;
31
		ipa.s_addr = *addr;
(-)contrib/ipfilter/lib/printhostmask.c (-1 / +1 lines)
Lines 25-33 Link Here
25
	if ((family == -1) || ((!addr || !*addr) && (!mask || !*mask)))
25
	if ((family == -1) || ((!addr || !*addr) && (!mask || !*mask)))
26
		PRINTF("any");
26
		PRINTF("any");
27
	else {
27
	else {
28
#ifdef  USE_INET6
28
		void *ptr = addr;
29
		void *ptr = addr;
29
30
30
#ifdef  USE_INET6
31
		PRINTF("%s", inet_ntop(family, ptr, ipbuf, sizeof(ipbuf)));
31
		PRINTF("%s", inet_ntop(family, ptr, ipbuf, sizeof(ipbuf)));
32
#else
32
#else
33
		ipa.s_addr = *addr;
33
		ipa.s_addr = *addr;
(-)contrib/ipfilter/lib/save_v1trap.c (-1 / +1 lines)
Lines 178-184 Link Here
178
		if (ctx->fd >= 0) {
178
		if (ctx->fd >= 0) {
179
			ctx->sin.sin_family = AF_INET;
179
			ctx->sin.sin_family = AF_INET;
180
			ctx->sin.sin_port = htons(162);
180
			ctx->sin.sin_port = htons(162);
181
			if (connect(ctx->fd, &ctx->sin,
181
			if (connect(ctx->fd, (struct sockaddr *)&ctx->sin,
182
				    sizeof(ctx->sin)) != 0) {
182
				    sizeof(ctx->sin)) != 0) {
183
					snmpv1_destroy(ctx);
183
					snmpv1_destroy(ctx);
184
					return NULL;
184
					return NULL;
(-)contrib/ipfilter/lib/save_v2trap.c (-1 / +1 lines)
Lines 181-187 Link Here
181
		if (ctx->fd >= 0) {
181
		if (ctx->fd >= 0) {
182
			ctx->sin.sin_family = AF_INET;
182
			ctx->sin.sin_family = AF_INET;
183
			ctx->sin.sin_port = htons(162);
183
			ctx->sin.sin_port = htons(162);
184
			if (connect(ctx->fd, &ctx->sin,
184
			if (connect(ctx->fd, (struct sockaddr *)&ctx->sin,
185
				    sizeof(ctx->sin)) != 0) {
185
				    sizeof(ctx->sin)) != 0) {
186
					snmpv2_destroy(ctx);
186
					snmpv2_destroy(ctx);
187
					return NULL;
187
					return NULL;

Return to bug 190964