aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/udp.c
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-10-31 03:53:57 -0400
committerDavid S. Miller <davem@davemloft.net>2008-10-31 03:53:57 -0400
commit673d57e72398edfedc93fb50ff58048077c9d587 (patch)
tree4c6a83072ac64ef63ad73574c3e1c0a683524163 /net/ipv4/udp.c
parentcffee385d7f367e80b288abf4261256477f7760e (diff)
net: replace NIPQUAD() in net/ipv4/ net/ipv6/
Using NIPQUAD() with NIPQUAD_FMT, %d.%d.%d.%d or %u.%u.%u.%u can be replaced with %pI4 Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/udp.c')
-rw-r--r--net/ipv4/udp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index f760b86e7530..bcb5def2b09e 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -1263,13 +1263,13 @@ int __udp4_lib_rcv(struct sk_buff *skb, struct udp_table *udptable,
1263 return 0; 1263 return 0;
1264 1264
1265short_packet: 1265short_packet:
1266 LIMIT_NETDEBUG(KERN_DEBUG "UDP%s: short packet: From " NIPQUAD_FMT ":%u %d/%d to " NIPQUAD_FMT ":%u\n", 1266 LIMIT_NETDEBUG(KERN_DEBUG "UDP%s: short packet: From %pI4:%u %d/%d to %pI4:%u\n",
1267 proto == IPPROTO_UDPLITE ? "-Lite" : "", 1267 proto == IPPROTO_UDPLITE ? "-Lite" : "",
1268 NIPQUAD(saddr), 1268 &saddr,
1269 ntohs(uh->source), 1269 ntohs(uh->source),
1270 ulen, 1270 ulen,
1271 skb->len, 1271 skb->len,
1272 NIPQUAD(daddr), 1272 &daddr,
1273 ntohs(uh->dest)); 1273 ntohs(uh->dest));
1274 goto drop; 1274 goto drop;
1275 1275
@@ -1278,11 +1278,11 @@ csum_error:
1278 * RFC1122: OK. Discards the bad packet silently (as far as 1278 * RFC1122: OK. Discards the bad packet silently (as far as
1279 * the network is concerned, anyway) as per 4.1.3.4 (MUST). 1279 * the network is concerned, anyway) as per 4.1.3.4 (MUST).
1280 */ 1280 */
1281 LIMIT_NETDEBUG(KERN_DEBUG "UDP%s: bad checksum. From " NIPQUAD_FMT ":%u to " NIPQUAD_FMT ":%u ulen %d\n", 1281 LIMIT_NETDEBUG(KERN_DEBUG "UDP%s: bad checksum. From %pI4:%u to %pI4:%u ulen %d\n",
1282 proto == IPPROTO_UDPLITE ? "-Lite" : "", 1282 proto == IPPROTO_UDPLITE ? "-Lite" : "",
1283 NIPQUAD(saddr), 1283 &saddr,
1284 ntohs(uh->source), 1284 ntohs(uh->source),
1285 NIPQUAD(daddr), 1285 &daddr,
1286 ntohs(uh->dest), 1286 ntohs(uh->dest),
1287 ulen); 1287 ulen);
1288drop: 1288drop: