From owner-freebsd-wireless@freebsd.org Tue Jul 21 21:31:23 2020 Return-Path: Delivered-To: freebsd-wireless@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 004F336864A for ; Tue, 21 Jul 2020 21:31:23 +0000 (UTC) (envelope-from notjanedeere@gmail.com) Received: from mail-qv1-xf2b.google.com (mail-qv1-xf2b.google.com [IPv6:2607:f8b0:4864:20::f2b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BBBc93PNxz4GB2 for ; Tue, 21 Jul 2020 21:31:21 +0000 (UTC) (envelope-from notjanedeere@gmail.com) Received: by mail-qv1-xf2b.google.com with SMTP id u8so112265qvj.12 for ; Tue, 21 Jul 2020 14:31:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=DPKYYWKTieK78LVemT0TlR+NbbbR5m5zDnuNc4cWLO8=; b=FoiKUuntabGSF5EDcXh+orCnQFVChWbnksAybOChoVwmHTlaUa0xkFPTCk3Sd7dECr k6nF+Dob3FcZThgzQMsS/RMnpfQzjhktX302i42spHcZe1CmTip1y/8yheEpdkGyIrun XZmUbdXTNc2sXzwBql4YfLyxCUsiTN+juF3h1RHsPtsiVdRvikyCVOJ1OTGZTvAorzGh /4S34/+C3sMNZuUmder0cV1UbQsqxB6NE4DQekqtl3yO1wcB7K3YDHbt7DVONpkZG2LX DEuUn9eJ+1lmIv5DWbp1tQoR3IbSctAnzOMJhUsBWpzCrR9XR8NLNl/Pv4Ts5MYKZ9VJ pyMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=DPKYYWKTieK78LVemT0TlR+NbbbR5m5zDnuNc4cWLO8=; b=WKjM8dEO11hu0bhozUgDjRkSXg7j5hTy1AKpBpjnbxuPpV9axaGwb2ufM4c6k8QePx 4LjQ1oxGNNyWV7Hw61iuVo4cBNihJL4xZAu6ukAMitMTSeOje941Hr+1SKWG7Jko+Xkf lTMTxLYbvN9OomZ1gowHvvFkTKpr8wJ01PPPSySYZ9IRD69owhEZYVgj39mjrrXdAbRu uLVdsF446T9V985pS39GYZApEcEjWn88GazgnhoqaemBp2akJMK2TFZf6oB3mW2hPrhs F1GKB7h1I1Ug16LRXxL0V9GfSA/Vnn0cTptnXJeAI0lCyoneFOOnEtGLt60EmDSoJWSM JA0Q== X-Gm-Message-State: AOAM533SptOQYECXFGXIJ2OU48qgZ04gdL1p4PIqR0xbOQv2jJTGqB1+ OqVkv2JDHIjwY+8ib3bb3lTRuFoa X-Google-Smtp-Source: ABdhPJyjLl0JEc3TXva5r2gNYdBvrP1OdYFZit7mF5XCO/zdDIGApn87+fLjiQeOk4G02fYZ7hDuww== X-Received: by 2002:a0c:f548:: with SMTP id p8mr28393218qvm.149.1595367080287; Tue, 21 Jul 2020 14:31:20 -0700 (PDT) Received: from [10.5.0.2] ([162.219.176.188]) by smtp.gmail.com with ESMTPSA id d53sm22994317qtc.47.2020.07.21.14.31.19 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 21 Jul 2020 14:31:19 -0700 (PDT) Subject: Re: regdomain.xml To: freebsd-wireless@freebsd.org References: From: Aaron Message-ID: Date: Tue, 21 Jul 2020 17:31:19 -0400 User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Rspamd-Queue-Id: 4BBBc93PNxz4GB2 X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=FoiKUunt; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of notjanedeere@gmail.com designates 2607:f8b0:4864:20::f2b as permitted sender) smtp.mailfrom=notjanedeere@gmail.com X-Spamd-Result: default: False [-3.19 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; NEURAL_HAM_MEDIUM(-0.99)[-0.993]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-wireless@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.98)[-0.977]; RCVD_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::f2b:from]; NEURAL_HAM_SHORT(-0.22)[-0.219]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim] X-BeenThere: freebsd-wireless@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: "Discussions of 802.11 stack, tools device driver development." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Jul 2020 21:31:23 -0000 >>>> What do others think? What should we do? >>> I vote for recreating it as a CSV file. Would then be easier to work with >>> and easy to convert to other formats -- json/xml/... >> Lol, if anything we'd likely use a format that we already use inside the >> tree, so json or xml. I don't MIND xml, but I mind how it's laid out right >> now . It makes extending things a pain in the rear. > Don't overlook ucl here, which can even do fancy stuff like file > inclusion (which may or may not do object merging, based on how your > ucl files are written) and is now used in a couple places of the tree. > You could perhaps section off /usr/share/regdomain and do all kinds of > fun stuff that reduces the labor involved.v UCL looks interesting, what level of adoption does it have?  If it's common enough ... A single CSV file would be a catastrophe, there are several different sections to the regdomain.xml file, it would have to be several.  JSON or XML work, but I certainly won't be editing them manually.  Likely all programmatic through Python, perhaps later we write a shell script to make future changes easier? Agree the current format is poor, will propose changes once I've dug further into how the file is being used and what it's failing to do currently.  Still gathering information.