diff options
-rw-r--r-- | include/net/ip_vs.h | 2 | ||||
-rw-r--r-- | net/netfilter/ipvs/ip_vs_core.c | 2 | ||||
-rw-r--r-- | net/netfilter/ipvs/ip_vs_proto.c | 6 | ||||
-rw-r--r-- | net/netfilter/ipvs/ip_vs_sched.c | 2 | ||||
-rw-r--r-- | net/netfilter/ipvs/ip_vs_xmit.c | 10 |
5 files changed, 11 insertions, 11 deletions
diff --git a/include/net/ip_vs.h b/include/net/ip_vs.h index ee75ccdf5188..aba0bb2da92d 100644 --- a/include/net/ip_vs.h +++ b/include/net/ip_vs.h | |||
@@ -165,7 +165,7 @@ static inline const char *ip_vs_dbg_addr(int af, char *buf, size_t buf_len, | |||
165 | int len; | 165 | int len; |
166 | #ifdef CONFIG_IP_VS_IPV6 | 166 | #ifdef CONFIG_IP_VS_IPV6 |
167 | if (af == AF_INET6) | 167 | if (af == AF_INET6) |
168 | len = snprintf(&buf[*idx], buf_len - *idx, "[%pI6]", | 168 | len = snprintf(&buf[*idx], buf_len - *idx, "[%pI6c]", |
169 | &addr->in6) + 1; | 169 | &addr->in6) + 1; |
170 | else | 170 | else |
171 | #endif | 171 | #endif |
diff --git a/net/netfilter/ipvs/ip_vs_core.c b/net/netfilter/ipvs/ip_vs_core.c index 58918e20f9d5..4edb65462abe 100644 --- a/net/netfilter/ipvs/ip_vs_core.c +++ b/net/netfilter/ipvs/ip_vs_core.c | |||
@@ -1487,7 +1487,7 @@ ip_vs_in_icmp_v6(struct sk_buff *skb, int *related, unsigned int hooknum) | |||
1487 | if (ic == NULL) | 1487 | if (ic == NULL) |
1488 | return NF_DROP; | 1488 | return NF_DROP; |
1489 | 1489 | ||
1490 | IP_VS_DBG(12, "Incoming ICMPv6 (%d,%d) %pI6->%pI6\n", | 1490 | IP_VS_DBG(12, "Incoming ICMPv6 (%d,%d) %pI6c->%pI6c\n", |
1491 | ic->icmp6_type, ntohs(icmpv6_id(ic)), | 1491 | ic->icmp6_type, ntohs(icmpv6_id(ic)), |
1492 | &iph->saddr, &iph->daddr); | 1492 | &iph->saddr, &iph->daddr); |
1493 | 1493 | ||
diff --git a/net/netfilter/ipvs/ip_vs_proto.c b/net/netfilter/ipvs/ip_vs_proto.c index 50d82186da87..939f7fbe9b46 100644 --- a/net/netfilter/ipvs/ip_vs_proto.c +++ b/net/netfilter/ipvs/ip_vs_proto.c | |||
@@ -280,17 +280,17 @@ ip_vs_tcpudp_debug_packet_v6(struct ip_vs_protocol *pp, | |||
280 | if (ih == NULL) | 280 | if (ih == NULL) |
281 | sprintf(buf, "TRUNCATED"); | 281 | sprintf(buf, "TRUNCATED"); |
282 | else if (ih->nexthdr == IPPROTO_FRAGMENT) | 282 | else if (ih->nexthdr == IPPROTO_FRAGMENT) |
283 | sprintf(buf, "%pI6->%pI6 frag", &ih->saddr, &ih->daddr); | 283 | sprintf(buf, "%pI6c->%pI6c frag", &ih->saddr, &ih->daddr); |
284 | else { | 284 | else { |
285 | __be16 _ports[2], *pptr; | 285 | __be16 _ports[2], *pptr; |
286 | 286 | ||
287 | pptr = skb_header_pointer(skb, offset + sizeof(struct ipv6hdr), | 287 | pptr = skb_header_pointer(skb, offset + sizeof(struct ipv6hdr), |
288 | sizeof(_ports), _ports); | 288 | sizeof(_ports), _ports); |
289 | if (pptr == NULL) | 289 | if (pptr == NULL) |
290 | sprintf(buf, "TRUNCATED %pI6->%pI6", | 290 | sprintf(buf, "TRUNCATED %pI6c->%pI6c", |
291 | &ih->saddr, &ih->daddr); | 291 | &ih->saddr, &ih->daddr); |
292 | else | 292 | else |
293 | sprintf(buf, "%pI6:%u->%pI6:%u", | 293 | sprintf(buf, "%pI6c:%u->%pI6c:%u", |
294 | &ih->saddr, ntohs(pptr[0]), | 294 | &ih->saddr, ntohs(pptr[0]), |
295 | &ih->daddr, ntohs(pptr[1])); | 295 | &ih->daddr, ntohs(pptr[1])); |
296 | } | 296 | } |
diff --git a/net/netfilter/ipvs/ip_vs_sched.c b/net/netfilter/ipvs/ip_vs_sched.c index 08dbdd5bc18f..d6bf20d6cdbe 100644 --- a/net/netfilter/ipvs/ip_vs_sched.c +++ b/net/netfilter/ipvs/ip_vs_sched.c | |||
@@ -159,7 +159,7 @@ void ip_vs_scheduler_err(struct ip_vs_service *svc, const char *msg) | |||
159 | svc->fwmark, msg); | 159 | svc->fwmark, msg); |
160 | #ifdef CONFIG_IP_VS_IPV6 | 160 | #ifdef CONFIG_IP_VS_IPV6 |
161 | } else if (svc->af == AF_INET6) { | 161 | } else if (svc->af == AF_INET6) { |
162 | IP_VS_ERR_RL("%s: %s [%pI6]:%d - %s\n", | 162 | IP_VS_ERR_RL("%s: %s [%pI6c]:%d - %s\n", |
163 | svc->scheduler->name, | 163 | svc->scheduler->name, |
164 | ip_vs_proto_name(svc->protocol), | 164 | ip_vs_proto_name(svc->protocol), |
165 | &svc->addr.in6, ntohs(svc->port), msg); | 165 | &svc->addr.in6, ntohs(svc->port), msg); |
diff --git a/net/netfilter/ipvs/ip_vs_xmit.c b/net/netfilter/ipvs/ip_vs_xmit.c index 56f6d5d81a77..1060bd52a165 100644 --- a/net/netfilter/ipvs/ip_vs_xmit.c +++ b/net/netfilter/ipvs/ip_vs_xmit.c | |||
@@ -335,7 +335,7 @@ __ip_vs_get_out_rt_v6(struct sk_buff *skb, struct ip_vs_dest *dest, | |||
335 | local = __ip_vs_is_local_route6(rt); | 335 | local = __ip_vs_is_local_route6(rt); |
336 | if (!((local ? IP_VS_RT_MODE_LOCAL : IP_VS_RT_MODE_NON_LOCAL) & | 336 | if (!((local ? IP_VS_RT_MODE_LOCAL : IP_VS_RT_MODE_NON_LOCAL) & |
337 | rt_mode)) { | 337 | rt_mode)) { |
338 | IP_VS_DBG_RL("Stopping traffic to %s address, dest: %pI6\n", | 338 | IP_VS_DBG_RL("Stopping traffic to %s address, dest: %pI6c\n", |
339 | local ? "local":"non-local", daddr); | 339 | local ? "local":"non-local", daddr); |
340 | dst_release(&rt->dst); | 340 | dst_release(&rt->dst); |
341 | return NULL; | 341 | return NULL; |
@@ -343,8 +343,8 @@ __ip_vs_get_out_rt_v6(struct sk_buff *skb, struct ip_vs_dest *dest, | |||
343 | if (local && !(rt_mode & IP_VS_RT_MODE_RDR) && | 343 | if (local && !(rt_mode & IP_VS_RT_MODE_RDR) && |
344 | !((ort = (struct rt6_info *) skb_dst(skb)) && | 344 | !((ort = (struct rt6_info *) skb_dst(skb)) && |
345 | __ip_vs_is_local_route6(ort))) { | 345 | __ip_vs_is_local_route6(ort))) { |
346 | IP_VS_DBG_RL("Redirect from non-local address %pI6 to local " | 346 | IP_VS_DBG_RL("Redirect from non-local address %pI6c to local " |
347 | "requires NAT method, dest: %pI6\n", | 347 | "requires NAT method, dest: %pI6c\n", |
348 | &ipv6_hdr(skb)->daddr, daddr); | 348 | &ipv6_hdr(skb)->daddr, daddr); |
349 | dst_release(&rt->dst); | 349 | dst_release(&rt->dst); |
350 | return NULL; | 350 | return NULL; |
@@ -352,8 +352,8 @@ __ip_vs_get_out_rt_v6(struct sk_buff *skb, struct ip_vs_dest *dest, | |||
352 | if (unlikely(!local && (!skb->dev || skb->dev->flags & IFF_LOOPBACK) && | 352 | if (unlikely(!local && (!skb->dev || skb->dev->flags & IFF_LOOPBACK) && |
353 | ipv6_addr_type(&ipv6_hdr(skb)->saddr) & | 353 | ipv6_addr_type(&ipv6_hdr(skb)->saddr) & |
354 | IPV6_ADDR_LOOPBACK)) { | 354 | IPV6_ADDR_LOOPBACK)) { |
355 | IP_VS_DBG_RL("Stopping traffic from loopback address %pI6 " | 355 | IP_VS_DBG_RL("Stopping traffic from loopback address %pI6c " |
356 | "to non-local address, dest: %pI6\n", | 356 | "to non-local address, dest: %pI6c\n", |
357 | &ipv6_hdr(skb)->saddr, daddr); | 357 | &ipv6_hdr(skb)->saddr, daddr); |
358 | dst_release(&rt->dst); | 358 | dst_release(&rt->dst); |
359 | return NULL; | 359 | return NULL; |