@@ -119,10 +119,9 @@ static int set_sig_addr(struct sk_buff *skb, struct nf_conn *ct,
119119 (ntohl (addr .ip ) & 0xff000000 ) == 0x7f000000 )
120120 i = 0 ;
121121
122- pr_debug ("nf_nat_ras: set signal address "
123- "%u.%u.%u.%u:%hu->%u.%u.%u.%u:%hu\n" ,
124- NIPQUAD (addr .ip ), port ,
125- NIPQUAD (ct -> tuplehash [!dir ].tuple .dst .u3 .ip ),
122+ pr_debug ("nf_nat_ras: set signal address %pI4:%hu->%pI4:%hu\n" ,
123+ & addr .ip , port ,
124+ & ct -> tuplehash [!dir ].tuple .dst .u3 .ip ,
126125 info -> sig_port [!dir ]);
127126 return set_h225_addr (skb , data , 0 , & taddr [i ],
128127 & ct -> tuplehash [!dir ].
@@ -131,10 +130,9 @@ static int set_sig_addr(struct sk_buff *skb, struct nf_conn *ct,
131130 } else if (addr .ip == ct -> tuplehash [dir ].tuple .dst .u3 .ip &&
132131 port == info -> sig_port [dir ]) {
133132 /* GK->GW */
134- pr_debug ("nf_nat_ras: set signal address "
135- "%u.%u.%u.%u:%hu->%u.%u.%u.%u:%hu\n" ,
136- NIPQUAD (addr .ip ), port ,
137- NIPQUAD (ct -> tuplehash [!dir ].tuple .src .u3 .ip ),
133+ pr_debug ("nf_nat_ras: set signal address %pI4:%hu->%pI4:%hu\n" ,
134+ & addr .ip , port ,
135+ & ct -> tuplehash [!dir ].tuple .src .u3 .ip ,
138136 info -> sig_port [!dir ]);
139137 return set_h225_addr (skb , data , 0 , & taddr [i ],
140138 & ct -> tuplehash [!dir ].
@@ -162,10 +160,9 @@ static int set_ras_addr(struct sk_buff *skb, struct nf_conn *ct,
162160 if (get_h225_addr (ct , * data , & taddr [i ], & addr , & port ) &&
163161 addr .ip == ct -> tuplehash [dir ].tuple .src .u3 .ip &&
164162 port == ct -> tuplehash [dir ].tuple .src .u .udp .port ) {
165- pr_debug ("nf_nat_ras: set rasAddress "
166- "%u.%u.%u.%u:%hu->%u.%u.%u.%u:%hu\n" ,
167- NIPQUAD (addr .ip ), ntohs (port ),
168- NIPQUAD (ct -> tuplehash [!dir ].tuple .dst .u3 .ip ),
163+ pr_debug ("nf_nat_ras: set rasAddress %pI4:%hu->%pI4:%hu\n" ,
164+ & addr .ip , ntohs (port ),
165+ & ct -> tuplehash [!dir ].tuple .dst .u3 .ip ,
169166 ntohs (ct -> tuplehash [!dir ].tuple .dst .u .udp .port ));
170167 return set_h225_addr (skb , data , 0 , & taddr [i ],
171168 & ct -> tuplehash [!dir ].tuple .dst .u3 ,
@@ -257,15 +254,15 @@ static int nat_rtp_rtcp(struct sk_buff *skb, struct nf_conn *ct,
257254 }
258255
259256 /* Success */
260- pr_debug ("nf_nat_h323: expect RTP %u.%u.%u.%u :%hu->%u.%u.%u.%u :%hu\n" ,
261- NIPQUAD ( rtp_exp -> tuple .src .u3 .ip ) ,
257+ pr_debug ("nf_nat_h323: expect RTP %pI4 :%hu->%pI4 :%hu\n" ,
258+ & rtp_exp -> tuple .src .u3 .ip ,
262259 ntohs (rtp_exp -> tuple .src .u .udp .port ),
263- NIPQUAD ( rtp_exp -> tuple .dst .u3 .ip ) ,
260+ & rtp_exp -> tuple .dst .u3 .ip ,
264261 ntohs (rtp_exp -> tuple .dst .u .udp .port ));
265- pr_debug ("nf_nat_h323: expect RTCP %u.%u.%u.%u :%hu->%u.%u.%u.%u :%hu\n" ,
266- NIPQUAD ( rtcp_exp -> tuple .src .u3 .ip ) ,
262+ pr_debug ("nf_nat_h323: expect RTCP %pI4 :%hu->%pI4 :%hu\n" ,
263+ & rtcp_exp -> tuple .src .u3 .ip ,
267264 ntohs (rtcp_exp -> tuple .src .u .udp .port ),
268- NIPQUAD ( rtcp_exp -> tuple .dst .u3 .ip ) ,
265+ & rtcp_exp -> tuple .dst .u3 .ip ,
269266 ntohs (rtcp_exp -> tuple .dst .u .udp .port ));
270267
271268 return 0 ;
@@ -307,10 +304,10 @@ static int nat_t120(struct sk_buff *skb, struct nf_conn *ct,
307304 return -1 ;
308305 }
309306
310- pr_debug ("nf_nat_h323: expect T.120 %u.%u.%u.%u :%hu->%u.%u.%u.%u :%hu\n" ,
311- NIPQUAD ( exp -> tuple .src .u3 .ip ) ,
307+ pr_debug ("nf_nat_h323: expect T.120 %pI4 :%hu->%pI4 :%hu\n" ,
308+ & exp -> tuple .src .u3 .ip ,
312309 ntohs (exp -> tuple .src .u .tcp .port ),
313- NIPQUAD ( exp -> tuple .dst .u3 .ip ) ,
310+ & exp -> tuple .dst .u3 .ip ,
314311 ntohs (exp -> tuple .dst .u .tcp .port ));
315312
316313 return 0 ;
@@ -361,10 +358,10 @@ static int nat_h245(struct sk_buff *skb, struct nf_conn *ct,
361358 return -1 ;
362359 }
363360
364- pr_debug ("nf_nat_q931: expect H.245 %u.%u.%u.%u :%hu->%u.%u.%u.%u :%hu\n" ,
365- NIPQUAD ( exp -> tuple .src .u3 .ip ) ,
361+ pr_debug ("nf_nat_q931: expect H.245 %pI4 :%hu->%pI4 :%hu\n" ,
362+ & exp -> tuple .src .u3 .ip ,
366363 ntohs (exp -> tuple .src .u .tcp .port ),
367- NIPQUAD ( exp -> tuple .dst .u3 .ip ) ,
364+ & exp -> tuple .dst .u3 .ip ,
368365 ntohs (exp -> tuple .dst .u .tcp .port ));
369366
370367 return 0 ;
@@ -455,10 +452,10 @@ static int nat_q931(struct sk_buff *skb, struct nf_conn *ct,
455452 }
456453
457454 /* Success */
458- pr_debug ("nf_nat_ras: expect Q.931 %u.%u.%u.%u :%hu->%u.%u.%u.%u :%hu\n" ,
459- NIPQUAD ( exp -> tuple .src .u3 .ip ) ,
455+ pr_debug ("nf_nat_ras: expect Q.931 %pI4 :%hu->%pI4 :%hu\n" ,
456+ & exp -> tuple .src .u3 .ip ,
460457 ntohs (exp -> tuple .src .u .tcp .port ),
461- NIPQUAD ( exp -> tuple .dst .u3 .ip ) ,
458+ & exp -> tuple .dst .u3 .ip ,
462459 ntohs (exp -> tuple .dst .u .tcp .port ));
463460
464461 return 0 ;
@@ -524,11 +521,10 @@ static int nat_callforwarding(struct sk_buff *skb, struct nf_conn *ct,
524521 }
525522
526523 /* Success */
527- pr_debug ("nf_nat_q931: expect Call Forwarding "
528- "%u.%u.%u.%u:%hu->%u.%u.%u.%u:%hu\n" ,
529- NIPQUAD (exp -> tuple .src .u3 .ip ),
524+ pr_debug ("nf_nat_q931: expect Call Forwarding %pI4:%hu->%pI4:%hu\n" ,
525+ & exp -> tuple .src .u3 .ip ,
530526 ntohs (exp -> tuple .src .u .tcp .port ),
531- NIPQUAD ( exp -> tuple .dst .u3 .ip ) ,
527+ & exp -> tuple .dst .u3 .ip ,
532528 ntohs (exp -> tuple .dst .u .tcp .port ));
533529
534530 return 0 ;
0 commit comments