From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF48CC433ED for ; Sat, 10 Apr 2021 14:20:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C68CD611AE for ; Sat, 10 Apr 2021 14:20:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234886AbhDJOVN (ORCPT ); Sat, 10 Apr 2021 10:21:13 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:39771 "EHLO out1-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234836AbhDJOVF (ORCPT ); Sat, 10 Apr 2021 10:21:05 -0400 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id CDFE15C01BE; Sat, 10 Apr 2021 10:20:50 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sat, 10 Apr 2021 10:20:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=talbothome.com; h=message-id:subject:from:to:date:in-reply-to:references :content-type:mime-version:content-transfer-encoding; s=fm2; bh= G1F2fDHqZXAnu7GAO+4YC0JgSWJLXjPEuJvtZBCYYps=; b=kbCdDicWkkLVWGY/ HpDrZY9IiNCSGXhbmQI9s6KcIwpkq8nwHqGkn/48Ck9M6Uiee2c0tET9SSqCHsIm Pvm5KDwtFRXBYPOjJF2wgmgTSZf6Mj7RD/bWjNncLZ/+wsmtMBJhtcu5phaiyqbt FsmnJbYdheDZ9YMlSWBl1ZJa/AVYYDJtJrt1JR50RfceioCtczn7PjrncDiPdQpV Vk/O0E6KEIijJWR6pvo5nZOPEMJpEB+3hJ2LQR1wvFGB6NQXU4Qw+aObF8UVuPMW Jo7T/PgG1UAJp03bveaxbLoObTLawgqJ8xIDpaZKAukMZ6ku7SFBTsSHwaAOzQak IzxbGw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=G1F2fDHqZXAnu7GAO+4YC0JgSWJLXjPEuJvtZBCYY ps=; b=ZAtC5gFBmwlVAHhfCjRoujsoAxKqXYCt03M7AzugEwhnxuZit8kt6onrB BSyKwWl5t9QkXQW1uQC1GM3w53v9BpdGZ4VFQ4GKdWuESKNiQHlPiJYQJZ517lpB QEgpmXyFGZ8WbG7UpYygTlevc2wPeSCr+ElPn7hGMgLVIBaeYc6N07TrCFRngrHV 7kJ9xLvsnKZXXHCFAIw61idby+L7v2TA65k8ZLD5rfyAsicWRY8qZ7GaGSMaTx4j JtYTJROvGrzkXMuHyBb8cTQ8Gx3KVzQFD/oVaCul2+kiyF74y9EiyM+VafyVgAp4 8SBXkCSrlKW7tjTWSeYg2fxuzM1Bg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudekfedgjeeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefkuffhvfffjghftggfggfgsehtje ertddtreejnecuhfhrohhmpeevhhhrihhsucfvrghlsghothcuoegthhhrihhssehtrghl sghothhhohhmvgdrtghomheqnecuggftrfgrthhtvghrnhepgefhtdfhgfeklefgueevte dtfeejjefhvdetheevudfgkeeghefhleelvdeuieegnecukfhppeejvddrleehrddvgeef rdduheeinecuvehluhhsthgvrhfuihiivgepudenucfrrghrrghmpehmrghilhhfrhhomh eptghhrhhishesthgrlhgsohhthhhomhgvrdgtohhm X-ME-Proxy: Received: from SpaceballstheLaptop.talbothome.com (unknown [72.95.243.156]) by mail.messagingengine.com (Postfix) with ESMTPA id 9D0B01080064; Sat, 10 Apr 2021 10:20:50 -0400 (EDT) Message-ID: <178dd29027e6abb4a205e25c02f06769848cbb76.camel@talbothome.com> Subject: [PATCH 3/9] Ensure Compatibility with AT&T From: Chris Talbot To: ofono@ofono.org, netdev@vger.kernel.org, debian-on-mobile-maintainers@alioth-lists.debian.net, librem-5-dev@lists.community.puri.sm Date: Sat, 10 Apr 2021 10:20:50 -0400 In-Reply-To: References: <051ae8ae27f5288d64ec6ef2bd9f77c06b829b52.camel@talbothome.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.38.3-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This patch fixes two issues to ensure compatibility with AT&T: 1) Explicity close connections to the mmsc 2) Allow MMS Proxies that are domain names --- gweb/gweb.c | 3 ++- src/service.c | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gweb/gweb.c b/gweb/gweb.c index f72e137..995d12f 100644 --- a/gweb/gweb.c +++ b/gweb/gweb.c @@ -1309,7 +1309,8 @@ static guint do_request(GWeb *web, const char *url, session->address = g_strdup(session->host); memset(&hints, 0, sizeof(struct addrinfo)); - hints.ai_flags = AI_NUMERICHOST; + /* Comment out next line to have AT&T MMS proxy work */ + //hints.ai_flags = AI_NUMERICHOST; hints.ai_family = session->web->family; if (session->addr != NULL) { diff --git a/src/service.c b/src/service.c index c7ef255..a3b90c5 100644 --- a/src/service.c +++ b/src/service.c @@ -2527,6 +2527,9 @@ void mms_service_bearer_notify(struct mms_service *service, mms_bool_t active, g_web_set_debug(service->web, (GWebDebugFunc)debug_print, NULL); + /* Explicitly close connections to work with AT&T */ + g_web_set_close_connection(service->web,TRUE); + /* Sometimes no proxy is reported as string instead of NULL */ if (g_strcmp0(proxy, "") != 0) g_web_set_proxy(service->web, proxy); -- 2.30.2 From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============5230865993982630076==" MIME-Version: 1.0 From: Chris Talbot Subject: [PATCH 3/9] Ensure Compatibility with AT&T Date: Sat, 10 Apr 2021 10:20:50 -0400 Message-ID: <178dd29027e6abb4a205e25c02f06769848cbb76.camel@talbothome.com> In-Reply-To: List-Id: To: ofono@ofono.org --===============5230865993982630076== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable This patch fixes two issues to ensure compatibility with AT&T: 1) Explicity close connections to the mmsc 2) Allow MMS Proxies that are domain names --- gweb/gweb.c | 3 ++- src/service.c | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gweb/gweb.c b/gweb/gweb.c index f72e137..995d12f 100644 --- a/gweb/gweb.c +++ b/gweb/gweb.c @@ -1309,7 +1309,8 @@ static guint do_request(GWeb *web, const char *url, session->address =3D g_strdup(session->host); = memset(&hints, 0, sizeof(struct addrinfo)); - hints.ai_flags =3D AI_NUMERICHOST; + /* Comment out next line to have AT&T MMS proxy work */ + //hints.ai_flags =3D AI_NUMERICHOST; hints.ai_family =3D session->web->family; = if (session->addr !=3D NULL) { diff --git a/src/service.c b/src/service.c index c7ef255..a3b90c5 100644 --- a/src/service.c +++ b/src/service.c @@ -2527,6 +2527,9 @@ void mms_service_bearer_notify(struct mms_service *service, mms_bool_t active, = g_web_set_debug(service->web, (GWebDebugFunc)debug_print, NULL); = + /* Explicitly close connections to work with AT&T */ + g_web_set_close_connection(service->web,TRUE); + /* Sometimes no proxy is reported as string instead of NULL */ if (g_strcmp0(proxy, "") !=3D 0) g_web_set_proxy(service->web, proxy); -- = 2.30.2 --===============5230865993982630076==--