From: Sean Hefty Date: Wed, 8 Dec 2010 17:54:32 +0000 (-0800) Subject: refresh X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=52dc4288c97e6796ad8a28fdd87a6ec599772afc;p=~shefty%2Fibacm.git refresh --- diff --git a/meta b/meta index 4f62dcf..58a840d 100644 --- a/meta +++ b/meta @@ -1,6 +1,6 @@ Version: 1 -Previous: a4c66e638a12cb43bf180895247846c3173ea422 -Head: 833bd4190a48092e4433ea2a389c8d4910b61404 +Previous: b2a86d8013239bb730630c6becbbb44bbe907664 +Head: dad535804c7de5fe130ed9c744513a02ce145dbb Applied: logging: 549692c49922dce3911d97dcc6d0a2fc583ab5f7 acm_snoop: dd5542fbaa1c5a92367d0552ef3525d5ea0a4638 @@ -17,8 +17,7 @@ Applied: acme_dest: b7ec8fce4adac1b6e970529e41ff1c936f4be27b show_err: 47d8e33e2f36df1e3b163fcf7e8b0b56604fb944 mult_dest: 1c8469be405d19304d47fcaf95e7d4aec574a6fc - addrinfo: 7744a2280e5e691d93c2f61c0f24e5d8270666cc - refresh-temp: 833bd4190a48092e4433ea2a389c8d4910b61404 + addrinfo: dad535804c7de5fe130ed9c744513a02ce145dbb Unapplied: 1.0.4: dc3f68d964641c9ffea14558d6a236c4216a89ae Hidden: diff --git a/patches/addrinfo b/patches/addrinfo index fa3235f..ed53c1c 100644 --- a/patches/addrinfo +++ b/patches/addrinfo @@ -1,5 +1,5 @@ Bottom: ad882cbf5ccb5b39d50b3d141607e262852a2abd -Top: 0edd0ef0f737d3e2c9d2efa715be0562fe412a07 +Top: f7dc2be4209894e2f33282c013570cad8f85550b Author: Sean Hefty Date: 2010-12-07 13:44:44 -0800 @@ -52,7 +52,7 @@ index 91d959d..e5256a0 100644 address can be an IP address, system network name, or LID, as indicated by the addr_format option. diff --git a/src/acme.c b/src/acme.c -index 6aa256a..d982b0d 100644 +index 6aa256a..7632ffa 100644 --- a/src/acme.c +++ b/src/acme.c @@ -67,10 +67,10 @@ extern char **parse(char *args, int *count); @@ -69,7 +69,7 @@ index 6aa256a..d982b0d 100644 printf(" [-v] - verify ACM response against SA query response\n"); printf(" [-c] - read ACM cached data only\n"); printf("usage 2: %s\n", program); -@@ -513,6 +513,40 @@ static int verify_resolve(struct ibv_path_record *path) +@@ -513,6 +513,39 @@ static int verify_resolve(struct ibv_path_record *path) return ret; } @@ -77,21 +77,20 @@ index 6aa256a..d982b0d 100644 +{ + static char addr[64]; + struct addrinfo hint, *res; -+ char *ai; ++ const char *ai; + int ret; + + if (!arg || addr_type != 'u') { + return arg; + } + -+ if ((inet_pton(AF_INET, arg, addr) > 0) || -+ (inet_pton(AF_INET6, arg, addr) > 0) { ++ if ((inet_pton(AF_INET, arg, addr) > 0) || (inet_pton(AF_INET6, arg, addr) > 0)) { + return arg; + } + + memset(&hint, 0, sizeof hint); + hint.ai_protocol = IPPROTO_TCP; -+ ret = getaddrinfo(arg, NULL, &hints, &res); ++ ret = getaddrinfo(arg, NULL, &hint, &res); + if (ret) { + return arg; + } @@ -110,3 +109,13 @@ index 6aa256a..d982b0d 100644 static int resolve(char *program, char *dest_arg) { char **dest_list; +@@ -531,7 +564,8 @@ static int resolve(char *program, char *dest_arg) + return -1; + } + +- for (dest_addr = dest_list[i]; dest_addr; dest_addr = dest_list[++i]) { ++ for (dest_addr = get_dest(dest_list[i]); dest_addr; ++ dest_addr = get_dest(dest_list[++i])) { + printf("Destination: %s\n", dest_addr); + switch (addr_type) { + case 'i': diff --git a/patches/refresh-temp b/patches/refresh-temp deleted file mode 100644 index 881ad63..0000000 --- a/patches/refresh-temp +++ /dev/null @@ -1,48 +0,0 @@ -Bottom: 0edd0ef0f737d3e2c9d2efa715be0562fe412a07 -Top: f7dc2be4209894e2f33282c013570cad8f85550b -Author: Sean Hefty -Date: 2010-12-08 09:54:32 -0800 - -Refresh of addrinfo - ---- - -diff --git a/src/acme.c b/src/acme.c -index d982b0d..7632ffa 100644 ---- a/src/acme.c -+++ b/src/acme.c -@@ -517,21 +517,20 @@ static char *get_dest(char *arg) - { - static char addr[64]; - struct addrinfo hint, *res; -- char *ai; -+ const char *ai; - int ret; - - if (!arg || addr_type != 'u') { - return arg; - } - -- if ((inet_pton(AF_INET, arg, addr) > 0) || -- (inet_pton(AF_INET6, arg, addr) > 0) { -+ if ((inet_pton(AF_INET, arg, addr) > 0) || (inet_pton(AF_INET6, arg, addr) > 0)) { - return arg; - } - - memset(&hint, 0, sizeof hint); - hint.ai_protocol = IPPROTO_TCP; -- ret = getaddrinfo(arg, NULL, &hints, &res); -+ ret = getaddrinfo(arg, NULL, &hint, &res); - if (ret) { - return arg; - } -@@ -565,7 +564,8 @@ static int resolve(char *program, char *dest_arg) - return -1; - } - -- for (dest_addr = dest_list[i]; dest_addr; dest_addr = dest_list[++i]) { -+ for (dest_addr = get_dest(dest_list[i]); dest_addr; -+ dest_addr = get_dest(dest_list[++i])) { - printf("Destination: %s\n", dest_addr); - switch (addr_type) { - case 'i':