diff for duplicates of <20200622183253.GQ2491@localhost.localdomain> diff --git a/a/1.txt b/N1/1.txt index ff703de..a7af869 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -117,7 +117,7 @@ Marcelo > >>> ssize_t rv; > >>> > >>> rv = read(s, data, sizeof(data)); -> >>> if (rv = -1) { +> >>> if (rv == -1) { > >>> perror("read"); > >>> return -1; > >>> } @@ -138,39 +138,39 @@ Marcelo > >>> return err; > >>> > >>> ls = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); -> >>> if (ls = -1) { +> >>> if (ls == -1) { > >>> perror("socket"); > >>> return -1; > >>> } > >>> > >>> optval = 1; > >>> if (setsockopt(ls, SOL_SOCKET, SO_REUSEADDR, -> >>> (void *)&optval, sizeof(optval)) = -1) { +> >>> (void *)&optval, sizeof(optval)) == -1) { > >>> perror("setsockopt reuseaddr"); > >>> return -1; > >>> } > >>> > >>> /* Comment this out and it will work. */ > >>> if (setsockopt(ls, IPPROTO_IPV6, IPV6_V6ONLY, &optval, -> >>> sizeof(optval)) = -1) { +> >>> sizeof(optval)) == -1) { > >>> perror("setsockopt ipv6 only"); > >>> return -1; > >>> } > >>> > >>> err = bind(ls, ai->ai_addr, ai->ai_addrlen); -> >>> if (err = -1) { +> >>> if (err == -1) { > >>> perror("bind"); > >>> return -1; > >>> } > >>> > >>> err = listen(ls, 5); -> >>> if (err = -1) { +> >>> if (err == -1) { > >>> perror("listen"); > >>> return -1; > >>> } > >>> > >>> s = accept(ls, NULL, NULL); -> >>> if (s = -1) { +> >>> if (s == -1) { > >>> perror("accept"); > >>> return -1; > >>> } @@ -195,13 +195,13 @@ Marcelo > >>> return err; > >>> > >>> s = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); -> >>> if (s = -1) { +> >>> if (s == -1) { > >>> perror("socket"); > >>> return -1; > >>> } > >>> > >>> err = connect(s, ai->ai_addr, ai->ai_addrlen); -> >>> if (err = -1) { +> >>> if (err == -1) { > >>> perror("connect"); > >>> return -1; > >>> } diff --git a/a/content_digest b/N1/content_digest index 41cc995..40aa9f7 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -4,7 +4,7 @@ "ref\04B68D06C-00F4-42C3-804A-B5531AABCE21@lurchi.franken.de\0" "From\0Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>\0" "Subject\0Re: Strange problem with SCTP+IPv6\0" - "Date\0Mon, 22 Jun 2020 18:32:53 +0000\0" + "Date\0Mon, 22 Jun 2020 15:32:53 -0300\0" "To\0Michael Tuexen <Michael.Tuexen@lurchi.franken.de>\0" "Cc\0minyard@acm.org" Xin Long <lucien.xin@gmail.com> @@ -133,7 +133,7 @@ "> >>> ssize_t rv;\n" "> >>> \n" "> >>> rv = read(s, data, sizeof(data));\n" - "> >>> if (rv = -1) {\n" + "> >>> if (rv == -1) {\n" "> >>> perror(\"read\");\n" "> >>> return -1;\n" "> >>> }\n" @@ -154,39 +154,39 @@ "> >>> return err;\n" "> >>> \n" "> >>> ls = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);\n" - "> >>> if (ls = -1) {\n" + "> >>> if (ls == -1) {\n" "> >>> perror(\"socket\");\n" "> >>> return -1;\n" "> >>> }\n" "> >>> \n" "> >>> optval = 1;\n" "> >>> if (setsockopt(ls, SOL_SOCKET, SO_REUSEADDR,\n" - "> >>> (void *)&optval, sizeof(optval)) = -1) {\n" + "> >>> (void *)&optval, sizeof(optval)) == -1) {\n" "> >>> perror(\"setsockopt reuseaddr\");\n" "> >>> return -1;\n" "> >>> }\n" "> >>> \n" "> >>> /* Comment this out and it will work. */\n" "> >>> if (setsockopt(ls, IPPROTO_IPV6, IPV6_V6ONLY, &optval,\n" - "> >>> sizeof(optval)) = -1) {\n" + "> >>> sizeof(optval)) == -1) {\n" "> >>> perror(\"setsockopt ipv6 only\");\n" "> >>> return -1;\n" "> >>> }\n" "> >>> \n" "> >>> err = bind(ls, ai->ai_addr, ai->ai_addrlen);\n" - "> >>> if (err = -1) {\n" + "> >>> if (err == -1) {\n" "> >>> perror(\"bind\");\n" "> >>> return -1;\n" "> >>> }\n" "> >>> \n" "> >>> err = listen(ls, 5);\n" - "> >>> if (err = -1) {\n" + "> >>> if (err == -1) {\n" "> >>> perror(\"listen\");\n" "> >>> return -1;\n" "> >>> }\n" "> >>> \n" "> >>> s = accept(ls, NULL, NULL);\n" - "> >>> if (s = -1) {\n" + "> >>> if (s == -1) {\n" "> >>> perror(\"accept\");\n" "> >>> return -1;\n" "> >>> }\n" @@ -211,13 +211,13 @@ "> >>> return err;\n" "> >>> \n" "> >>> s = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol);\n" - "> >>> if (s = -1) {\n" + "> >>> if (s == -1) {\n" "> >>> perror(\"socket\");\n" "> >>> return -1;\n" "> >>> }\n" "> >>> \n" "> >>> err = connect(s, ai->ai_addr, ai->ai_addrlen);\n" - "> >>> if (err = -1) {\n" + "> >>> if (err == -1) {\n" "> >>> perror(\"connect\");\n" "> >>> return -1;\n" "> >>> }\n" @@ -241,4 +241,4 @@ "> >>> \n" > -1eba98da938660256afbcde6e047418d94270b1da4b02e7a5c1634808c3ef773 +55da8b9151bb6491d43b6653b642362d4ecc56e4f297ccfd317a4f4cd6fe77cc
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.