From owner-freebsd-pf@freebsd.org Sat Feb 29 13:28:00 2020 Return-Path: Delivered-To: freebsd-pf@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 5CB2325F4EB for ; Sat, 29 Feb 2020 13:28:00 +0000 (UTC) (envelope-from sean.yeh117@gmail.com) Received: from mail-pf1-x441.google.com (mail-pf1-x441.google.com [IPv6:2607:f8b0:4864:20::441]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) 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 48V6fN4C8Fz4fFf for ; Sat, 29 Feb 2020 13:27:56 +0000 (UTC) (envelope-from sean.yeh117@gmail.com) Received: by mail-pf1-x441.google.com with SMTP id l184so607977pfl.7 for ; Sat, 29 Feb 2020 05:27:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=iyPUOM0+CEZ9j/58N7hChvrhR1sN1RuBds1dO8mdMX8=; b=DYE8FSahKQHXUyBVTBQsarUBpYcSDC/qs8ZnxsSnFnMWCt+3sN/k37PrYdX48Xb8yN O3lAQPPASukYvoZTa4yhoattaWM4OZZF0YWXSO/AqmhKcC8viu+6Flu9eINma6xQEZw2 rWyc16Y3XbqaThkXHOK7SAEtbClpJNBWr0mMLBSpjWxl/4M6pkyMidqCLeRbW48bxe6D F7IY389PUsGdW+g+tcMtDu47dQwDx6oOVFxh4NiS939/N33SrbkFfwHSoQEaJMwI6c/w 3hdQL63VSak+ERTnaRq1o/38IwaTRot49CbplM8G0+V6JwEdXqIP9Mzom0IzqNYeuxU1 +R7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=iyPUOM0+CEZ9j/58N7hChvrhR1sN1RuBds1dO8mdMX8=; b=tf9bMx9ZBk1oVVGnnPWDdlnvbiI7HacbjJnM44GQ0fWc+2ey7BYgS5mYuO0fy+/A6h yBurzoStW4WtHcyc8trmShkmHtLSxw0kxmqyTE3bfZMg9PDcb21sDOgFVZsKni6WorAB eA43AGYbEWfVqNHSL3q3eArIxcn3oz4b7v3gVuMz8lWQfNpknvatwYQCc5FjJfvokAfu PeKu2M0uXvEh9LSZIhcv45NTnPWS+pg4CHPP5qPhy/KE6e9bdP3thUYQ9kYw6bV+ATCx Q4AiaJMs7YquEWa49bZhlj+/gQQXtV2cdY1Z5SzUDuspSIi3r+5HudP7O9rzD/Iw8Teo RNDw== X-Gm-Message-State: APjAAAXBPeVjQAT+MCa65ykox+1bn+igiyalukpVW4kEuAYr1D8nZr0+ XhViB7FlN1DofCuc0L7KnGk8Ba/HA6VfLqkq2pqPqvoh X-Google-Smtp-Source: APXvYqwmcmG9KEYEPVZTEiL1dhsTiWqKgMhfG8tXtdY1I4N+6HSuTn4PMvGWeYwQjTESU2Of5QbI8SlxHEeG4pKq+7U= X-Received: by 2002:a63:4282:: with SMTP id p124mr10140249pga.59.1582982874561; Sat, 29 Feb 2020 05:27:54 -0800 (PST) MIME-Version: 1.0 References: <1bb2143ad2233dcd646ed1b25a780928@udns.ultimatedns.net> In-Reply-To: <1bb2143ad2233dcd646ed1b25a780928@udns.ultimatedns.net> From: Sean Yeh Date: Sat, 29 Feb 2020 05:27:42 -0800 Message-ID: Subject: Re: ALTQ feature of PF in FreeBSD To: bsd-lists@bsdforge.com, freebsd-pf@freebsd.org X-Rspamd-Queue-Id: 48V6fN4C8Fz4fFf X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=DYE8FSah; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of seanyeh117@gmail.com designates 2607:f8b0:4864:20::441 as permitted sender) smtp.mailfrom=seanyeh117@gmail.com X-Spamd-Result: default: False [-3.00 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-pf@freebsd.org]; TO_DN_NONE(0.00)[]; IP_SCORE_FREEMAIL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[1.4.4.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.b.8.f.7.0.6.2.list.dnswl.org : 127.0.5.0]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; IP_SCORE(0.00)[ip: (-0.58), ipnet: 2607:f8b0::/32(-1.88), asn: 15169(-1.67), country: US(-0.05)]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: freebsd-pf@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Technical discussion and general questions about packet filter \(pf\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Feb 2020 13:28:00 -0000 Hi Chris (and FreeBSD-pf members), Thanks for the advice! Truth be told, I am quite lost right now. But before I give up, could you please point me in the right direction? 1) Figuring out if ALTQ is separable from pf is a little abstract to me. Is there a definitive experiment to perform to answer this question? Currently, I'm just looking and taking note of the differences between NetBSD's and FreeBSD's pf/altq code. What other steps should I be taking? 2) What are some indications that a port will fail/work? When I find a difference between NetBSD's and FreeBSD's code, I've already discovered several, what questions should I ask myself to determine whether or not the difference will be an issue or not. I'm sorry if these questions seem trivial or basic. I am truly appreciative of all your time and help. Best, Sean On Fri, Feb 28, 2020 at 8:37 PM Chris wrote: > On Fri, 28 Feb 2020 15:35:23 -0800 Sean Yeh sean.yeh117@gmail.com said > > > Hi FreeBSD-pf members, > > > > I hope you guys are enjoying your weekend! > > > > I was wondering if any of you happened to know if the code for the ALTQ > > feature of pf could be separated and used for NetBSD's pf function. I'm > > currently investigating methods to improve NetBSD's ALTQ feature, which > > hasn't been updated in 15+ years: > > https://wiki.netbsd.org/projects/project/altq/ > > > > According to the man pages of freeBSD's pf function, FreeBSD uses a > > modified pf of openBSD 4.5 pf function. Are there any complications tha= t > > you foresee trying to port FreeBSD's current ALTQ code into NetBSD? > In all honesty. If you have to ask. You will likely find it challenging. > ;) ;) > But *please* don't let that discourage you! > If you're a kernel hacker, and or have a good eye for patterns. You shoul= d > be able to find the similarities by different names to match them up. > But that doesn't mean that in the end it'll work. I haven't personally > made any comparisons. I'm only familiar with the FreeBSD variety. > > My 2=C2=A2 FWIW :) > > --Chris > FreeBSD 14.0-FUTURE #0.000 cray256 > > > > > Thank you for all your help, > > > > Sean > > _______________________________________________ > > freebsd-pf@freebsd.org mailing list > > https://lists.freebsd.org/mailman/listinfo/freebsd-pf > > To unsubscribe, send any mail to "freebsd-pf-unsubscribe@freebsd.org" > > >