]> git.pld-linux.org Git - packages/net-snmp.git/blob - net-snmp-src-dst-confusion.patch
- make "load" readonly if defined in main config, like sysDescription behaves
[packages/net-snmp.git] / net-snmp-src-dst-confusion.patch
1 --- branches/V5-4-patches/net-snmp/snmplib/snmpUDPDomain.c      2009/01/28 09:29:09     17366
2 +++ branches/V5-4-patches/net-snmp/snmplib/snmpUDPDomain.c      2009/01/28 10:10:06     17367
3 @@ -110,12 +110,12 @@
4         char tmp[64];
5          to = (struct sockaddr_in *) &(addr_pair->remote_addr);
6          if (to == NULL) {
7 -            sprintf(tmp, "UDP: [%s]->unknown",
8 +            sprintf(tmp, "UDP: unknown->[%s]",
9                      inet_ntoa(addr_pair->local_addr));
10          } else {
11 -            sprintf(tmp, "UDP: [%s]->", inet_ntoa(addr_pair->local_addr));
12 -            sprintf(tmp + strlen(tmp), "[%s]:%hd",
13 +            sprintf(tmp, "UDP: [%s]:%hu->",
14                      inet_ntoa(to->sin_addr), ntohs(to->sin_port));
15 +            sprintf(tmp + strlen(tmp), "[%s]", inet_ntoa(addr_pair->local_addr));
16          }
17          return strdup(tmp);
18      }
This page took 0.047606 seconds and 3 git commands to generate.