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=-0.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no 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 1263FC2D0E7 for ; Wed, 25 Mar 2020 20:56:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E8C9E2070A for ; Wed, 25 Mar 2020 20:56:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727358AbgCYU40 (ORCPT ); Wed, 25 Mar 2020 16:56:26 -0400 Received: from mail-wm1-f65.google.com ([209.85.128.65]:54718 "EHLO mail-wm1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727253AbgCYU4Z (ORCPT ); Wed, 25 Mar 2020 16:56:25 -0400 Received: by mail-wm1-f65.google.com with SMTP id c81so4193483wmd.4; Wed, 25 Mar 2020 13:56:23 -0700 (PDT) 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:cc; bh=guf04qcrEdBtRuF9SYoOu8Wy++qyg5NjSOd4++zMt3w=; b=FkdW08p5U01xuUKRNj2Kc2MjlKQEt8pkODn2r3dnsRUUtRWbYXOyLh82VXo06AIVPj U1SsacRQ8EcAonpqzeIX0DkaZk95vUsM2N/UQTtfV4pBorSGVoeuv07tcrLvXOVFsU2A dAe7e4JQr5hnDgHCOKkGl7QztbS6QcMbg4EXgaCmki/etzOVmZYBEt3kxgYxCk9GnR7y xVUsLE4vPYAjUbRg9gfdw1e0ir5hKtJIWwt0D4MlxD+Y89MHPTZIHNjVMWtdozOiQMVs WZXE4l+X8Zde4gq0f7bI3++an9zX188EeD5aIooEaPIKKYRkLs3JUsO5eeipCUpmbkvi hbHw== X-Gm-Message-State: ANhLgQ0tGE1dDS1Z4PEBUyEd3yiKPAPukVsbyQnr/aSfZ8uiMaocIRZq kgqTO0bEtgGQBEgVFZjLPcISA1pzcgaEEkDqz80= X-Google-Smtp-Source: ADFU+vsuklc/U39/jTWLAg3YOMhHl/913hCJxpZdrFmhPp2wnNDcEG4716gE0gaM7qkGx7wcU+7IS1lLPwgrpVXCweo= X-Received: by 2002:a1c:2842:: with SMTP id o63mr5329530wmo.73.1585169782681; Wed, 25 Mar 2020 13:56:22 -0700 (PDT) MIME-Version: 1.0 References: <20200325055745.10710-1-joe@wand.net.nz> <20200325055745.10710-6-joe@wand.net.nz> In-Reply-To: From: Joe Stringer Date: Wed, 25 Mar 2020 13:55:59 -0700 Message-ID: Subject: Re: [PATCHv2 bpf-next 5/5] selftests: bpf: add test for sk_assign To: Lorenz Bauer Cc: Joe Stringer , bpf , Networking , Daniel Borkmann , Alexei Starovoitov , Eric Dumazet , Martin Lau Content-Type: text/plain; charset="UTF-8" Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Wed, Mar 25, 2020 at 3:35 AM Lorenz Bauer wrote: > > On Wed, 25 Mar 2020 at 05:58, Joe Stringer wrote: > > > > From: Lorenz Bauer > > > > Attach a tc direct-action classifier to lo in a fresh network > > namespace, and rewrite all connection attempts to localhost:4321 > > to localhost:1234 (for port tests) and connections to unreachable > > IPv4/IPv6 IPs to the local socket (for address tests). > > Can you extend this to cover UDP as well? I'm working on a follow-up series for UDP, we need this too.