... | ... |
@@ -152,23 +152,23 @@ static int msend_retry(mfile *m) |
152 | 152 |
lprintf(0, "[error] %s: can't alloc state area %s\n", __func__, t->hostname); |
153 | 153 |
continue; |
154 | 154 |
} |
155 |
- switch(moption.loglevel){ |
|
156 |
- case 2: |
|
155 |
+ if(m->sendto){ |
|
156 |
+ if(!memcmp(&(m->addr.sin_addr), &(t->ad), sizeof(t->ad))){ |
|
157 | 157 |
if(*r == MAKUO_RECVSTATE_NONE){ |
158 |
- lprintf(2, "%s: %s %s(%s)\n", |
|
159 |
- __func__, |
|
160 |
- strrstate(*r), |
|
161 |
- inet_ntoa(t->ad), |
|
162 |
- t->hostname); |
|
158 |
+ lprintf(2, "%s: %s %s(%s)\n", __func__, strrstate(*r), inet_ntoa(t->ad), t->hostname); |
|
163 | 159 |
} |
164 |
- break; |
|
165 |
- default: |
|
166 |
- lprintf(3, "%s: %s %s(%s)\n", |
|
167 |
- __func__, |
|
168 |
- strrstate(*r), |
|
169 |
- inet_ntoa(t->ad), |
|
170 |
- t->hostname); |
|
171 |
- break; |
|
160 |
+ } |
|
161 |
+ }else{ |
|
162 |
+ switch(moption.loglevel){ |
|
163 |
+ case 2: |
|
164 |
+ if(*r == MAKUO_RECVSTATE_NONE){ |
|
165 |
+ lprintf(2, "%s: %s %s(%s)\n", __func__, strrstate(*r), inet_ntoa(t->ad), t->hostname); |
|
166 |
+ } |
|
167 |
+ break; |
|
168 |
+ default: |
|
169 |
+ lprintf(3, "%s: %s %s(%s)\n", __func__, strrstate(*r), inet_ntoa(t->ad), t->hostname); |
|
170 |
+ break; |
|
171 |
+ } |
|
172 | 172 |
} |
173 | 173 |
} |
174 | 174 |
} |