Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Apr 2018 16:09:14 +0200
From:      "Kristof Provost" <kristof@sigsegv.be>
To:        "Nick Wolff" <darkfiberiru@gmail.com>
Cc:        "Lee Brown" <leeb@ratnaling.org>, freebsd-net <freebsd-net@freebsd.org>
Subject:   Re: QOS/TOS in carp/freebsd in general
Message-ID:  <30947CBE-7931-4F8D-9C78-98D9624712EA@sigsegv.be>
In-Reply-To: <CACxAneDzxsGjrsN1j%2BGV42Jq0zp83YGOLU4526d=ZfWs=27R1A@mail.gmail.com>
References:  <CACxAneCODxbgA3qWDqtt%2B_dOZfEmUrCnw_T8eEovZK8a6c5GtQ@mail.gmail.com> <20180416082736.GB48822@tom-desk.erg.abdn.ac.uk> <CAFPNf5-wiiF876NuYFwfOVDD53zODQ=fZkk0UdaxLQRXO420UQ@mail.gmail.com> <CACxAneDzxsGjrsN1j%2BGV42Jq0zp83YGOLU4526d=ZfWs=27R1A@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 25 Apr 2018, at 15:53, Nick Wolff wrote:
> On Mon, Apr 16, 2018, 6:55 PM Lee Brown <leeb@ratnaling.org> wrote:
>> setdscp cs7 from me to 224.0.0.18
>>
>
> You can do this in ipfw but not in pf as far as I'm aware.

You can do this in pf too.

      set-tos ⟨string⟩ | ⟨number⟩
            Enforces a TOS for matching IP packets.  TOS may be given as 
one of
            critical, inetcontrol, lowdelay, netcontrol, throughput, 
reliability,
            or one of the DiffServ Code Points: ef, af11 ... af43, cs0 
... cs7;
            or as either hex or decimal.

(Although right now only for IPv4. I’ll hopefully commit the v6 bits 
soon.)

Regards,
Kristof
From owner-freebsd-net@freebsd.org  Wed Apr 25 14:12:24 2018
Return-Path: <owner-freebsd-net@freebsd.org>
Delivered-To: freebsd-net@mailman.ysv.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
 by mailman.ysv.freebsd.org (Postfix) with ESMTP id CC660FA7159
 for <freebsd-net@mailman.ysv.freebsd.org>;
 Wed, 25 Apr 2018 14:12:24 +0000 (UTC)
 (envelope-from julian@freebsd.org)
Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16])
 (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
 (Client CN "vps1.elischer.org",
 Issuer "CA Cert Signing Authority" (not verified))
 by mx1.freebsd.org (Postfix) with ESMTPS id 6529A6FDA8
 for <freebsd-net@freebsd.org>; Wed, 25 Apr 2018 14:12:24 +0000 (UTC)
 (envelope-from julian@freebsd.org)
Received: from Julian-MBP3.local (220-253-154-11.dyn.iinet.net.au
 [220.253.154.11]) (authenticated bits=0)
 by vps1.elischer.org (8.15.2/8.15.2) with ESMTPSA id w3PECEWJ071168
 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO);
 Wed, 25 Apr 2018 07:12:18 -0700 (PDT)
 (envelope-from julian@freebsd.org)
Subject: Re: kldload ibcore.ko fails in snapshot:
 FreeBSD-12.0-CURRENT-amd64-20180329-r331740-disc1
To: Hans Petter Selasky <hps@selasky.org>,
 "Somayajulu, David" <David.Somayajulu@cavium.com>,
 "freebsd-net@freebsd.org" <freebsd-net@freebsd.org>
References: <BN6PR07MB3122A34BF6462952F5C53CEFEE890@BN6PR07MB3122.namprd07.prod.outlook.com>
 <53cea7bc-c3e5-26c3-30d8-42438e67f19f@selasky.org>
From: Julian Elischer <julian@freebsd.org>
Message-ID: <32be98b1-4abe-3de4-ec62-c3282bc3cad2@freebsd.org>
Date: Wed, 25 Apr 2018 22:12:09 +0800
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:52.0)
 Gecko/20100101 Thunderbird/52.7.0
MIME-Version: 1.0
In-Reply-To: <53cea7bc-c3e5-26c3-30d8-42438e67f19f@selasky.org>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Content-Language: en-US
X-BeenThere: freebsd-net@freebsd.org
X-Mailman-Version: 2.1.25
Precedence: list
List-Id: Networking and TCP/IP with FreeBSD <freebsd-net.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-net>,
 <mailto:freebsd-net-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-net/>;
List-Post: <mailto:freebsd-net@freebsd.org>
List-Help: <mailto:freebsd-net-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-net>,
 <mailto:freebsd-net-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Wed, 25 Apr 2018 14:12:25 -0000

On 24/4/18 3:15 pm, Hans Petter Selasky wrote:
> On 04/24/18 01:33, Somayajulu, David wrote:
>> Hi All,
>> kldload ibcore.ko
>> fails in the above snapshot with the following error.
>>
>> # kldload -v /usr/obj/usr/src/amd64.amd64/sys/modules/ibcore/ibcore.ko
>> kldload: an error occurred while loading module 
>> /usr/obj/usr/src/amd64.amd64/sys/modules/ibcore/ibcore.ko. Please 
>> check dmesg(8) for more details.
>>
>> /var/log/messages indicates the following.
>>
>> Apr 23 16:28:07 bsd25_12 kernel: link_elf_obj: symbol if_index 
>> undefined
>> Apr 23 16:28:07 bsd25_12 kernel: linker_load_file: 
>> /usr/obj/usr/src/amd64.amd64/sys/modules/ibcore/ibcore.ko - 
>> unsupported file type
>>
>> What am I missing?
>>
>
> Hi,
>
> It looks like ibcore.ko was built w/o DEBUG_FLAGS="-DVIMAGE=1"

that shouldn't be in debug flags..   Not sure WHERE it should be, but 
I think that isn't it.
(may work though)


>
> --HPS
>
> _______________________________________________
> freebsd-net@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?30947CBE-7931-4F8D-9C78-98D9624712EA>