79a12a36fd
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1562 6952d904-891a-0410-993b-d76249ca496b
20 lines
867 B
Diff
20 lines
867 B
Diff
diff -Naur snmplib.orig/snmpUDPDomain.c snmplib/snmpUDPDomain.c
|
|
--- snmplib.orig/snmpUDPDomain.c 2007-10-11 22:46:30.000000000 +0200
|
|
+++ snmplib/snmpUDPDomain.c 2009-07-10 23:41:37.000000000 +0200
|
|
@@ -104,12 +110,12 @@
|
|
char tmp[64];
|
|
to = (struct sockaddr_in *) &(addr_pair->remote_addr);
|
|
if (to == NULL) {
|
|
- sprintf(tmp, "UDP: [%s]->unknown",
|
|
+ sprintf(tmp, "UDP: unknown->[%s]",
|
|
inet_ntoa(addr_pair->local_addr));
|
|
} else {
|
|
- sprintf(tmp, "UDP: [%s]->", inet_ntoa(addr_pair->local_addr));
|
|
- sprintf(tmp + strlen(tmp), "[%s]:%hd",
|
|
+ sprintf(tmp, "UDP: [%s]:%hu->",
|
|
inet_ntoa(to->sin_addr), ntohs(to->sin_port));
|
|
+ sprintf(tmp + strlen(tmp), "[%s]", inet_ntoa(addr_pair->local_addr));
|
|
}
|
|
return strdup(tmp);
|
|
}
|