public inbox for newlib-cvs@sourceware.org
help / color / mirror / Atom feed
From: Sebastian Huber <sh@sourceware.org>
To: newlib-cvs@sourceware.org
Subject: [newlib-cygwin] arp: Implement sticky ARP mode for interfaces.
Date: Mon, 11 Jul 2022 11:55:40 +0000 (GMT)	[thread overview]
Message-ID: <20220711115540.8B7F0385C32C@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=cf2ba7d7f8044b6fa449b769a68d1b05390b589d

commit cf2ba7d7f8044b6fa449b769a68d1b05390b589d
Author: Konrad Sewiłło-Jopek <kjopek@gmail.com>
Date:   Fri May 27 11:02:57 2022 +0000

    arp: Implement sticky ARP mode for interfaces.
    
    Provide sticky ARP flag for network interface which marks it as the
    "sticky" one similarly to what we have for bridges. Once interface is
    marked sticky, any address resolved using the ARP will be saved as a
    static one in the ARP table. Such functionality may be used to prevent
    ARP spoofing or to decrease latencies in Ethernet networks.
    
    The drawbacks include potential limitations in usage of ARP-based
    load-balancers and high-availability solutions such as carp(4).
    
    The implemented option is disabled by default, therefore should not
    impact the default behaviour of the networking stack.
    
    Sponsored by:           Conclusive Engineering sp. z o.o.
    Reviewed By:            melifaro, pauamma_gundo.com
    Differential Revision: https://reviews.freebsd.org/D35314
    MFC after:              2 weeks

Diff:
---
 newlib/libc/sys/rtems/include/net/if.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/newlib/libc/sys/rtems/include/net/if.h b/newlib/libc/sys/rtems/include/net/if.h
index e90d4d240..3f3b8a3b5 100644
--- a/newlib/libc/sys/rtems/include/net/if.h
+++ b/newlib/libc/sys/rtems/include/net/if.h
@@ -160,6 +160,7 @@ struct if_data {
 #define	IFF_PPROMISC	0x20000		/* (n) user-requested promisc mode */
 #define	IFF_MONITOR	0x40000		/* (n) user-requested monitor mode */
 #define	IFF_STATICARP	0x80000		/* (n) static ARP */
+#define	IFF_STICKYARP	0x100000	/* (n) sticky ARP */
 #define	IFF_DYING	0x200000	/* (n) interface is winding down */
 #define	IFF_RENAMING	0x400000	/* (n) interface is being renamed */
 #define	IFF_NOGROUP	0x800000	/* (n) interface is not part of any groups */


                 reply	other threads:[~2022-07-11 11:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220711115540.8B7F0385C32C@sourceware.org \
    --to=sh@sourceware.org \
    --cc=newlib-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).