OpenBSD CVS

CVS log for src/sys/sys/sockio.h


[BACK] Up to [local] / src / sys / sys

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.84 / (download) - annotate - [select for diffs], Thu Nov 11 10:03:10 2021 UTC (2 years, 6 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, HEAD
Changes since 1.83: +1 -8 lines
Diff to previous 1.83 (colored)

Retire switch(4) it never really was production ready and the OpenFlow
API implemented is a deadend.
OK akoshibe@ yasuoka@ deraadt@ kn@ patrick@ sthen@

Revision 1.83 / (download) - annotate - [select for diffs], Wed Nov 13 11:54:01 2019 UTC (4 years, 6 months ago) by tobhe
Branch: MAIN
CVS Tags: OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7
Changes since 1.82: +3 -3 lines
Diff to previous 1.82 (colored)

Fix get/set datapath comments.

ok markus@

Revision 1.82 / (download) - annotate - [select for diffs], Fri Apr 19 04:21:33 2019 UTC (5 years, 1 month ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_6_6_BASE, OPENBSD_6_6
Changes since 1.81: +4 -1 lines
Diff to previous 1.81 (colored)

add SIOCSRXHPRIO and SIOCGRXHPRIO for configuring rx prio handling

this is the complement of txprio handling, and helps support RFC 2983.

ok claudio@

Revision 1.81 / (download) - annotate - [select for diffs], Wed Apr 10 09:49:50 2019 UTC (5 years, 2 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_6_5_BASE, OPENBSD_6_5
Changes since 1.80: +2 -1 lines
Diff to previous 1.80 (colored)

add SIOCGIFSFFPAGE, for getting sfp/qsfp module info from nics.

Revision 1.80 / (download) - annotate - [select for diffs], Tue Feb 26 03:19:11 2019 UTC (5 years, 3 months ago) by dlg
Branch: MAIN
Changes since 1.79: +10 -1 lines
Diff to previous 1.79 (colored)

add some generic ioctls for configuring mpls pseudowire parameters.

these will replace the monstor mpw ioctl, and will be used by an
upcoming mpls ip tunnel interface driver.

discussed with claudio@ at a2k19
ok mpi@

Revision 1.79 / (download) - annotate - [select for diffs], Wed Jan 23 08:23:18 2019 UTC (5 years, 4 months ago) by dlg
Branch: MAIN
Changes since 1.78: +2 -1 lines
Diff to previous 1.78 (colored)

add a SIOCGPWE3 ioctl for interfaces to advertise pwe3 capability

im going to turn mpw into an ethernet interface, which includes
changing its if_type to IFT_ETHER. currently ldpd looks for if_type
IFT_MPLSTUNNEL to decide if an interface is a pseudowire, ie, it's
going to break. the ioctl will let ldpd ask the interface if it is
pseudowire capable as an alternative.

ok claudio@

Revision 1.78 / (download) - annotate - [select for diffs], Thu Nov 29 00:11:23 2018 UTC (5 years, 6 months ago) by dlg
Branch: MAIN
Changes since 1.77: +4 -1 lines
Diff to previous 1.77 (colored)

allow configuration of ecn propagation on tunnel interfaces.

ok claudio@

Revision 1.77 / (download) - annotate - [select for diffs], Mon Nov 12 23:32:42 2018 UTC (5 years, 6 months ago) by dlg
Branch: MAIN
Changes since 1.76: +4 -1 lines
Diff to previous 1.76 (colored)

add ioctl commands for the setting of prio fields in tx headers

this will be used by encap interfaces where their headers have
fields to store a priority, eg, the dot1p bit of vlan/svlan headers,
or the ip tos or tclass field int the outer ip header in gre, gif,
etherip, and vxlan.

ok claudio@

Revision 1.76 / (download) - annotate - [select for diffs], Wed May 30 18:15:47 2018 UTC (6 years ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.75: +2 -1 lines
Diff to previous 1.75 (colored)

Add SIOCGIFGLIST to fetch a list of interface groups on the system.
From Jan Klemkow, ok mpi@ tb@, ok/bugfix bluhm@

Revision 1.75 / (download) - annotate - [select for diffs], Tue Feb 20 03:43:07 2018 UTC (6 years, 3 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.74: +4 -1 lines
Diff to previous 1.74 (colored)

add ioctls to toggle partitioning a vnetid into a netid and flowid

this maps to key entropy in cisco tunnel terminology, and will be
used in gre and egre to interoperate with their tunnels.

Revision 1.74 / (download) - annotate - [select for diffs], Mon Feb 19 00:21:31 2018 UTC (6 years, 3 months ago) by dlg
Branch: MAIN
Changes since 1.73: +4 -1 lines
Diff to previous 1.73 (colored)

add ioctls for tunnels to configure whether they allow fragmentation or not.

discussed with cladio@ at a2k18

Revision 1.73 / (download) - annotate - [select for diffs], Thu Feb 8 13:15:32 2018 UTC (6 years, 4 months ago) by mpi
Branch: MAIN
Changes since 1.72: +2 -1 lines
Diff to previous 1.72 (colored)

Add a new '-protected' option for bridge members.

Bridge members that are part of the same protected domain, refered by
a number between 1 and 31, cannot talk to each others.  This is useful
to isolate VMs or untrusted networks at layer 2.

Members can be part of multiple protected domain making it possible to
create complex protected setups.

ok ccardenas@, claudio@, dlg@, henning@

Revision 1.72 / (download) - annotate - [select for diffs], Tue Oct 24 09:36:13 2017 UTC (6 years, 7 months ago) by jsg
Branch: MAIN
Changes since 1.71: +1 -13 lines
Diff to previous 1.71 (colored)

remove defines for ioctls the kernel doesn't recognise
ok mpi@

Revision 1.71 / (download) - annotate - [select for diffs], Tue Oct 24 08:57:10 2017 UTC (6 years, 7 months ago) by mpi
Branch: MAIN
Changes since 1.70: +1 -7 lines
Diff to previous 1.70 (colored)

Remove support for never used ioctls originating from KAME.

ok florian@, claudio@, bluhm@

Revision 1.70 / (download) - annotate - [select for diffs], Tue Jun 27 22:18:24 2017 UTC (6 years, 11 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2
Changes since 1.69: +1 -4 lines
Diff to previous 1.69 (colored)

remove the obsolete timeslot ioctl

Revision 1.69 / (download) - annotate - [select for diffs], Mon Nov 28 10:12:49 2016 UTC (7 years, 6 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.68: +7 -9 lines
Diff to previous 1.68 (colored)

Rename "flowmax" to "maxflow" and give each switch(4) ioctl a
dedicated number.  Both changes for consistency.

OK rzalamena@

Revision 1.68 / (download) - annotate - [select for diffs], Fri Sep 2 10:01:36 2016 UTC (7 years, 9 months ago) by goda
Branch: MAIN
Changes since 1.67: +12 -1 lines
Diff to previous 1.67 (colored)

Add switch(4) support to ifconfig

ok deraadt@ yasuoka@ reyk@ henning@

Revision 1.67 / (download) - annotate - [select for diffs], Sun Aug 28 07:22:11 2016 UTC (7 years, 9 months ago) by reyk
Branch: MAIN
Changes since 1.66: +1 -8 lines
Diff to previous 1.66 (colored)

Remove obsolete gre(4) ioctls GRESADDRS, GRESADDRD, GREGADDRS,
GREGADDRD, GRESPROTO, and GREGPROTO.  They have been replaced by
generic ioctls some time ago (eg. the "ifconfig gre0 tunnel") and
there is no need to keep the old ones around.  They are neither used
in base nor in ports.

OK sthen@

Revision 1.66 / (download) - annotate - [select for diffs], Wed Jun 15 19:39:34 2016 UTC (7 years, 11 months ago) by gerhard
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.65: +5 -1 lines
Diff to previous 1.65 (colored)

Add umb(4) - a driver for the Mobile Broadband Interface Model (MBIM)

The umb(4) driver provides support for USB MBIM devices.
Those devices establish connections via celluar networks such as
GPRS, UMTS, and LTE.

ok mpi@ sthen@
additional feedback from deraadt@ jmc@ stsp@ kettenis@

Revision 1.65 / (download) - annotate - [select for diffs], Fri Jun 10 20:33:29 2016 UTC (8 years ago) by vgross
Branch: MAIN
Changes since 1.64: +4 -1 lines
Diff to previous 1.64 (colored)

Add the "llprio" field to struct ifnet, and the corresponding keyword
to ifconfig.

"llprio" allows one to set the priority of packets that do not go through
pf(4), as the case is for arp(4) or bpf(4).

ok sthen@ mikeb@

Revision 1.64 / (download) - annotate - [select for diffs], Tue May 31 22:35:02 2016 UTC (8 years ago) by tedu
Branch: MAIN
Changes since 1.63: +1 -2 lines
Diff to previous 1.63 (colored)

remove OSIOCGIFCONF. it's dead. ok deraadt guenther mpi

Revision 1.63 / (download) - annotate - [select for diffs], Wed Mar 2 00:00:16 2016 UTC (8 years, 3 months ago) by dlg
Branch: MAIN
Changes since 1.62: +5 -1 lines
Diff to previous 1.62 (colored)

provide generic ioctls for managing an interfaces parent

in the future this will subsume the individual vlandev, carpdev,
pppoedev, foodev options for things like vlan, carp, pppoe, etc.

inspired by vnetid

ok mpi@ jmatthew@

Revision 1.62 / (download) - annotate - [select for diffs], Sat Oct 24 10:52:05 2015 UTC (8 years, 7 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.61: +4 -1 lines
Diff to previous 1.61 (colored)

Add pair(4), a vether-based virtual Ethernet driver to interconnect
rdomains and bridges on the local system.  This can be used to route
through local rdomains, to create L2 devices (like trunks) between
them, and many other things.

Discussed with many, with input from mpi@
OK sthen@ phessler@ yasuoka@ mikeb@

Revision 1.61 / (download) - annotate - [select for diffs], Fri Oct 23 01:19:04 2015 UTC (8 years, 7 months ago) by dlg
Branch: MAIN
Changes since 1.60: +3 -1 lines
Diff to previous 1.60 (colored)

tweak the vnetid so it can be optional and therefore cleared/deleted.

the abstract vnetid is promoted to a uin32_t, and adds a SIOCDVNETID
ioctl so it can be cleared.

this is all because i set an assignment on implementing a virtual
network interface and the students got confused when vnetid 0 didnt
show up in ifconfig output.

the vnetid in the vxlan(4) protocol is optional, but the current
code confuses 0 with no vnetid being set. this makes it clear.

ok reyk@ who also simplified my diff

Revision 1.60 / (download) - annotate - [select for diffs], Fri Sep 11 13:02:28 2015 UTC (8 years, 9 months ago) by stsp
Branch: MAIN
Changes since 1.59: +4 -3 lines
Diff to previous 1.59 (colored)

Make room for media types of the future. Extend the ifmedia word to 64 bits.
This changes numbers of the SIOCSIFMEDIA and SIOCGIFMEDIA ioctls and
grows struct ifmediareq.

Old ifconfig and dhclient binaries can still assign addresses, however
the 'media' subcommand stops working. Recompiling ifconfig and dhclient
with new headers before a reboot should not be necessary unless in very
special circumstances where non-default media settings must be used to
get link and console access is not available.

There may be some MD fallout but that will be cleared up later.

ok deraadt miod
with help and suggestions from several sharks attending l2k15

Revision 1.59 / (download) - annotate - [select for diffs], Tue Jul 21 04:14:52 2015 UTC (8 years, 10 months ago) by rzalamena
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.58: +7 -7 lines
Diff to previous 1.58 (colored)

Fix ioctl number conflict and sort ioctl numbers.

ok mpi@.

Revision 1.58 / (download) - annotate - [select for diffs], Mon Jul 20 22:16:41 2015 UTC (8 years, 10 months ago) by rzalamena
Branch: MAIN
Changes since 1.57: +4 -1 lines
Diff to previous 1.57 (colored)

Implemented MPLS pseudowire (mpw(4)) to be used with VPLS and VPWS.

ok mpi@, claudio@.

Revision 1.57 / (download) - annotate - [select for diffs], Wed Jan 21 02:23:14 2015 UTC (9 years, 4 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.56: +1 -5 lines
Diff to previous 1.56 (colored)

Delete option COMPAT_43: support for pre-sa_len binaries has been obsolete
for a couple decades.  Keep the OSIOCGIFCONF ioctl to support COMPAT_LINUX
but move the rest of the Linux-specific ioctl() handling into linux_socket.c
This lets struct osockaddr finally move from sys/socket.h to protocols/talkd.h

ok krw@ deraadt@ mpi@

Revision 1.56 / (download) - annotate - [select for diffs], Tue Jan 6 21:26:46 2015 UTC (9 years, 5 months ago) by stsp
Branch: MAIN
Changes since 1.55: +3 -1 lines
Diff to previous 1.55 (colored)

Remove the NOINET6 interface flag, a left-over from the times when IPv6
was enabled by default. Add AFATTACH/AFDETACH ioctls which enable/disable
an address family for an interface (currently used for IPv6 only).

New kernel needs new ifconfig for IPv6 configuration (address assignment
still works with old ifconfig making this easy to cross over).

Committing on behalf of henning@ who is currently lebensmittelvergiftet.
ok stsp, benno, mpi

Revision 1.55 / (download) - annotate - [select for diffs], Sun Jul 13 13:41:46 2014 UTC (9 years, 11 months ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.54: +1 -1 lines
Diff to previous 1.54 (colored)

someone send dlg a keyboard with a tab key please

Revision 1.54 / (download) - annotate - [select for diffs], Tue Jul 8 04:02:14 2014 UTC (9 years, 11 months ago) by dlg
Branch: MAIN
Changes since 1.53: +3 -1 lines
Diff to previous 1.53 (colored)

introduce the if_rxr api. it is intended to pull the rx ring accounting
out of the mbuf layer, and break the assumption that an interface will
only have a single ring per mbuf cluster size.

mpi@ is ok with moving this forward

Revision 1.53 / (download) - annotate - [select for diffs], Sun Oct 13 10:10:04 2013 UTC (10 years, 8 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.52: +7 -1 lines
Diff to previous 1.52 (colored)

Import vxlan(4), the virtual extensible local area network tunnel
interface.  VXLAN is a UDP-based tunnelling protocol for overlaying
virtualized layer 2 networks over layer 3 networks. The implementation
is based on draft-mahalingam-dutt-dcops-vxlan-04 and has been tested
with other implementations in the wild.

put it in deraadt@

Revision 1.52 / (download) - annotate - [select for diffs], Fri Aug 16 12:29:18 2013 UTC (10 years, 9 months ago) by mpi
Branch: MAIN
Changes since 1.51: +4 -4 lines
Diff to previous 1.51 (colored)

Replace the misleading SIOC{G,S}IFGENERIC ioctls by SIOCG{G,S}PPPPARAMS.

This is another ABI break but no port rely on them as verified by naddy@.

ok claudio@, mikeb@, henning@

Revision 1.51 / (download) - annotate - [select for diffs], Thu Aug 15 09:18:37 2013 UTC (10 years, 9 months ago) by mpi
Branch: MAIN
Changes since 1.50: +3 -2 lines
Diff to previous 1.50 (colored)

Stop defining SIOC{S,G}ETVLAN as SIOC{S,G}IFGENERIC because they
are two differents ioctls manipulating structures of a different
size.

In particular this prevents vlan(4) to handle pppoe(4)-specific
ioctls and vice versa, that could lead to smashing the stack of
the caller.

Issue originally found by David Hill when compiling ifconfig
with clang.

Note that this is an ABI break but we're riding a biger dragon
right now.

ok mikeb@, kettenis@, sthen@

Revision 1.50 / (download) - annotate - [select for diffs], Fri Nov 23 20:12:03 2012 UTC (11 years, 6 months ago) by sthen
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3
Changes since 1.49: +3 -1 lines
Diff to previous 1.49 (colored)

Add SIOCGIFHARDMTU to allow retrieving the driver's maximum supported MTU
looks fine reyk@ ok mikeb@

Revision 1.49 / (download) - annotate - [select for diffs], Sat Nov 26 23:38:18 2011 UTC (12 years, 6 months ago) by haesbaert
Branch: MAIN
CVS Tags: OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1
Changes since 1.48: +2 -3 lines
Diff to previous 1.48 (colored)

Tie the 802.1p (CoS) value in vlan(4) with the new prio scheme in pf.

When transmitting through vlan(4), it will now use the prio value in
pf packet header. When receiving, we save the incoming Cos in the same
place, this gives us the hability to preserve the CoS value across two
different vlan interfaces.

This kills the SIOC[GS]VLANPRIO ioctls and removes the corresponding
buttons from ifconfig(8).

ok henning@ claudio@ mcbride@

Revision 1.48 / (download) - annotate - [select for diffs], Sat Jul 3 04:44:51 2010 UTC (13 years, 11 months ago) by guenther
Branch: MAIN
CVS Tags: OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.47: +5 -5 lines
Diff to previous 1.47 (colored)

Fix the naming of interfaces and variables for rdomains and rtables
and make it possible to bind sockets (including listening sockets!)
to rtables and not just rdomains.  This changes the name of the
system calls, socket option, and ioctl.  After building with this
you should remove the files /usr/share/man/cat2/[gs]etrdomain.0.

Since this removes the existing [gs]etrdomain() system calls, the
libc major is bumped.

Written by claudio@, criticized^Wcritiqued by me

Revision 1.47 / (download) - annotate - [select for diffs], Sat Jun 26 19:49:54 2010 UTC (13 years, 11 months ago) by claudio
Branch: MAIN
Changes since 1.46: +4 -1 lines
Diff to previous 1.46 (colored)

Implement a simple keepalive mechanism in gre(4) that is compatible with
the one used by Cisco. It sends a return gre packet inside a gre packet
to the other side and expects it to return.
OK deraadt, reyk additional testing by sthen

Revision 1.46 / (download) - annotate - [select for diffs], Sat Nov 21 14:08:14 2009 UTC (14 years, 6 months ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.45: +4 -1 lines
Diff to previous 1.45 (colored)

Add a way to bind the tunnel endpoint of a gif/gre interface into a
different rdomain than the default one. This allows to do MPLS VPNs
without the MPLS madness.  OK deraadt@, henning@

Revision 1.45 / (download) - annotate - [select for diffs], Fri Jun 5 00:05:22 2009 UTC (15 years ago) by claudio
Branch: MAIN
CVS Tags: OPENBSD_4_6_BASE, OPENBSD_4_6
Changes since 1.44: +4 -1 lines
Diff to previous 1.44 (colored)

Initial support for routing domains. This allows to bind interfaces to
alternate routing table and separate them from other interfaces in distinct
routing tables. The same network can now be used in any doamin at the same
time without causing conflicts.
This diff is mostly mechanical and adds the necessary rdomain checks accross
net and netinet. L2 and IPv4 are mostly covered still missing pf and IPv6.
input and tested by jsg@, phessler@ and reyk@. "put it in" deraadt@

Revision 1.44 / (download) - annotate - [select for diffs], Thu Jun 4 19:07:21 2009 UTC (15 years ago) by henning
Branch: MAIN
Changes since 1.43: +4 -1 lines
Diff to previous 1.43 (colored)

allow IPvShit to be turned off completely per-interface.
ifconfig em0 -inet6
deletes all v6 addresses including link-local and prevents new ones from
being added.
ifconfig em0 inet6 <addr>
re-enables v6, brings the link local back and adds optional <addr>
ok theo reyk

Revision 1.43 / (download) - annotate - [select for diffs], Sun Feb 15 22:15:12 2009 UTC (15 years, 3 months ago) by gollo
Branch: MAIN
CVS Tags: OPENBSD_4_5_BASE, OPENBSD_4_5
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored)

move pflows ioctl to new numbers. Fixes a problem with wi(4)
spotted by mcbride@

Theo@: "This diff is correct. Please commit it right away"

Revision 1.42 / (download) - annotate - [select for diffs], Fri Dec 12 22:07:33 2008 UTC (15 years, 6 months ago) by claudio
Branch: MAIN
Changes since 1.41: +4 -1 lines
Diff to previous 1.41 (colored)

Introduce a if_priority that will be added to RTP_STATIC when routes are
added without an expilict priority. This allows to specify less prefered
interfaces that will only take over if the primary interface loses link.
OK deraadt@

Revision 1.41 / (download) - annotate - [select for diffs], Tue Sep 9 13:56:39 2008 UTC (15 years, 9 months ago) by henning
Branch: MAIN
Changes since 1.40: +4 -1 lines
Diff to previous 1.40 (colored)

welcome pflow(4), a netflow v5 compatible flow export interface.
flows export data gathered from pf states.
initial implementation by Joerg Goltermann <jg@osn.de>, guidance and many
changes by me. 'put it in' theo

Revision 1.40 / (download) - annotate - [select for diffs], Tue May 6 13:33:50 2008 UTC (16 years, 1 month ago) by pyr
Branch: MAIN
CVS Tags: OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.39: +4 -1 lines
Diff to previous 1.39 (colored)

bring in the mpe interface - for ``MPLS Provider Edge'' - this is a work
in progress and some bits need to be cleaned up but will be in-tree for
convenience.

ok claudio@, norby@

Revision 1.39 / (download) - annotate - [select for diffs], Thu Jun 14 18:31:50 2007 UTC (17 years ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.38: +4 -1 lines
Diff to previous 1.38 (colored)

Add a new "rtlabel" option to ifconfig. It allows to specify a route label
which will be used for new interface routes. For example,
	ifconfig em0 10.1.1.0 255.255.255.0 rtlabel RING_1
will set the new interface address and attach the route label RING_1 to
the corresponding route.

manpage bits from jmc@
ok claudio@ henning@

Revision 1.38 / (download) - annotate - [select for diffs], Sun Dec 3 13:41:19 2006 UTC (17 years, 6 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1
Changes since 1.37: +7 -3 lines
Diff to previous 1.37 (colored)

Add Rapid Spanning Tree Protocol support (802.1d-2004) based on work
by Andrew Thompson (thompsa@freebsd.org). The local changes include
adoption to our bridge code, reduced stack usage and many other bits.
If stp is enabled, RSTP will now be used by default.

Thanks for help from Andrew.

This code has been in snaps for while now, commit encouraged by deraadt@

Revision 1.37 / (download) - annotate - [select for diffs], Fri Jun 2 19:53:12 2006 UTC (18 years ago) by mpf
Branch: MAIN
CVS Tags: OPENBSD_4_0_BASE, OPENBSD_4_0
Changes since 1.36: +3 -1 lines
Diff to previous 1.36 (colored)

Introduce attributes to interface groups.
As a first user, move the global carp(4) demotion counter
into the interface group. Thus we have the possibility
to define which carp interfaces are demoted together.

Put the demotion counter into the reserved field of the carp header.
With this, we can have carp act smarter if multiple errors occur.
It now always takes over other carp peers, that are advertising
with a higher demote count.  As a side effect, we can also have
group failovers without the need of running in preempt mode.
The protocol change does not break compability with older
implementations.

Collaborative work with mcbride@

OK mcbride@, henning@

Revision 1.36 / (download) - annotate - [select for diffs], Thu Jan 5 14:57:24 2006 UTC (18 years, 5 months ago) by norby
Branch: MAIN
CVS Tags: OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.35: +4 -1 lines
Diff to previous 1.35 (colored)

Make it possible to set a default vlan priority for vlan interfaces.

ok claudio@ brad@

Revision 1.35 / (download) - annotate - [select for diffs], Sun Jun 12 00:41:33 2005 UTC (19 years ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8
Changes since 1.34: +2 -1 lines
Diff to previous 1.34 (colored)

add SIOCGIFGMEMB ioctl, returns a list of all interfaces who are member of
the given group, markus ok

Revision 1.34 / (download) - annotate - [select for diffs], Thu May 26 22:37:35 2005 UTC (19 years ago) by henning
Branch: MAIN
Changes since 1.33: +1 -4 lines
Diff to previous 1.33 (colored)

remove last races of SIOCADDRT and SIOCDELRT, the 4.3BSD routing table ioctls
theo ok

Revision 1.33 / (download) - annotate - [select for diffs], Wed Mar 30 02:55:37 2005 UTC (19 years, 2 months ago) by tedu
Branch: MAIN
Changes since 1.32: +2 -1 lines
Diff to previous 1.32 (colored)

add lladdr command to ifconfig to set MAC address.  diffs from freebsd via
Kyunghwan KIM (prs 2117 and 2118) and Fredrik Widlund.  ok deraadt

Revision 1.32 / (download) - annotate - [select for diffs], Fri Jan 14 11:49:01 2005 UTC (19 years, 5 months ago) by henning
Branch: MAIN
CVS Tags: OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.31: +1 -6 lines
Diff to previous 1.31 (colored)

remove old ifgroups ioctls
the old ifgroups haven't been in use ever really, and the new
implementation is 3 months old today. theo ok (3 months ago)

Revision 1.31 / (download) - annotate - [select for diffs], Tue Dec 14 13:41:01 2004 UTC (19 years, 6 months ago) by mickey
Branch: MAIN
Changes since 1.30: +4 -1 lines
Diff to previous 1.30 (colored)

move the ioctls w/ all the other ifaces; mcbride@ ok

Revision 1.30 / (download) - annotate - [select for diffs], Tue Dec 14 01:59:07 2004 UTC (19 years, 6 months ago) by mickey
Branch: MAIN
Changes since 1.29: +4 -1 lines
Diff to previous 1.29 (colored)

move ioctls together w/ all other ifaces; mcbride@ ok

Revision 1.29 / (download) - annotate - [select for diffs], Mon Oct 11 10:13:49 2004 UTC (19 years, 8 months ago) by henning
Branch: MAIN
Changes since 1.28: +9 -4 lines
Diff to previous 1.28 (colored)

ifgroups reqrite
there is now a TAILQ with all interface groups as members, and
in struct ofnet there is only a pointer to the group structure stored
and not its name.
mostly hacked at c2k4 and somewhere over the atlantic ocean
ok markus mcbride

Revision 1.28 / (download) - annotate - [select for diffs], Mon Sep 20 17:51:07 2004 UTC (19 years, 8 months ago) by miod
Branch: MAIN
Changes since 1.27: +2 -2 lines
Diff to previous 1.27 (colored)

addres -> address

Revision 1.27 / (download) - annotate - [select for diffs], Sat Jun 26 07:00:58 2004 UTC (19 years, 11 months ago) by alex
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.26: +4 -1 lines
Diff to previous 1.26 (colored)

Add ioctl call SIOCSIFTIMESLOT/SIOCGIDTIMESLOT.
ok mcbride@

Revision 1.26 / (download) - annotate - [select for diffs], Fri Jun 25 18:24:23 2004 UTC (19 years, 11 months ago) by pb
Branch: MAIN
Changes since 1.25: +5 -1 lines
Diff to previous 1.25 (colored)

introduce "interface groups"

by "ifconfig fxp0 group foobar" "ifconfig xl0 group foobar"
these two interfaces are in one group.
Every interface has its if-family as default group.

idea/design from henning@, based on some work/disucssion from Joris Vink.

henning@, mcbride@ ok.

Revision 1.15.2.6 / (download) - annotate - [select for diffs], Sat Jun 5 23:13:10 2004 UTC (20 years ago) by niklas
Branch: SMP
Changes since 1.15.2.5: +3 -0 lines
Diff to previous 1.15.2.5 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored)

Merge with the trunk

Revision 1.25 / (download) - annotate - [select for diffs], Sat May 29 17:54:45 2004 UTC (20 years ago) by jcs
Branch: MAIN
CVS Tags: SMP_SYNC_B, SMP_SYNC_A
Changes since 1.24: +4 -1 lines
Diff to previous 1.24 (colored)

introduce SIOCSIFDESCR and SIOCGIFDESCR to maintain interface
descriptions, configurable with ifconfig

help from various, ok deraadt@

Revision 1.15.2.5 / (download) - annotate - [select for diffs], Thu Feb 19 11:01:34 2004 UTC (20 years, 3 months ago) by niklas
Branch: SMP
Changes since 1.15.2.4: +6 -1 lines
Diff to previous 1.15.2.4 (colored) to branchpoint 1.15 (colored)

Merge of current from two weeks agointo the SMP branch

Revision 1.24 / (download) - annotate - [select for diffs], Mon Dec 8 09:09:03 2003 UTC (20 years, 6 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.23: +2 -1 lines
Diff to previous 1.23 (colored)

add IOCIFGCLONERS; ifconfig -C; from netbsd; ok henning, deraadt

Revision 1.23 / (download) - annotate - [select for diffs], Wed Dec 3 13:27:36 2003 UTC (20 years, 6 months ago) by markus
Branch: MAIN
Changes since 1.22: +5 -1 lines
Diff to previous 1.22 (colored)

support for network interface "cloning", e.g. gif(4) via ifconfig(8)

Revision 1.15.2.4 / (download) - annotate - [select for diffs], Sat Jun 7 11:09:08 2003 UTC (21 years ago) by ho
Branch: SMP
Changes since 1.15.2.3: +2 -6 lines
Diff to previous 1.15.2.3 (colored) to branchpoint 1.15 (colored)

Sync SMP branch to -current

Revision 1.22 / (download) - annotate - [select for diffs], Mon Jun 2 23:28:21 2003 UTC (21 years ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.21: +2 -6 lines
Diff to previous 1.21 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.20.2.1 / (download) - annotate - [select for diffs], Mon May 19 22:32:36 2003 UTC (21 years ago) by tedu
Branch: UBC
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored) next main 1.21 (colored)

sync

Revision 1.15.2.3 / (download) - annotate - [select for diffs], Fri Mar 28 00:41:30 2003 UTC (21 years, 2 months ago) by niklas
Branch: SMP
Changes since 1.15.2.2: +1 -0 lines
Diff to previous 1.15.2.2 (colored) to branchpoint 1.15 (colored)

Sync the SMP branch with 3.3

Revision 1.21 / (download) - annotate - [select for diffs], Mon Dec 9 10:11:52 2002 UTC (21 years, 6 months ago) by markus
Branch: MAIN
CVS Tags: UBC_SYNC_A, OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.20: +2 -1 lines
Diff to previous 1.20 (colored)

allow setting of ifcost with brconfig.  enables selection of preferred
port/path to root bridge among several LANs.   unlike ifpriority, which
allows you to select designated port if serveral interfaces belong
to the same LAN;  ok jason@

Revision 1.15.2.2 / (download) - annotate - [select for diffs], Wed Mar 6 02:17:13 2002 UTC (22 years, 3 months ago) by niklas
Branch: SMP
Changes since 1.15.2.1: +4 -1 lines
Diff to previous 1.15.2.1 (colored) to branchpoint 1.15 (colored)

Merge in trunk

Revision 1.20 / (download) - annotate - [select for diffs], Sat Dec 15 08:40:56 2001 UTC (22 years, 6 months ago) by jason
Branch: MAIN
CVS Tags: UBC_SYNC_B, UBC_BASE, OPENBSD_3_2_BASE, OPENBSD_3_2, OPENBSD_3_1_BASE, OPENBSD_3_1
Branch point for: UBC
Changes since 1.19: +4 -1 lines
Diff to previous 1.19 (colored)

add support for creating span ports so that one can snoop a bridge
from another interface/machine/network.

Revision 1.15.2.1 / (download) - annotate - [select for diffs], Mon May 14 22:45:04 2001 UTC (23 years, 1 month ago) by niklas
Branch: SMP
Changes since 1.15: +32 -21 lines
Diff to previous 1.15 (colored)

merge in approximately 2.9 into SMP branch

Revision 1.19 / (download) - annotate - [select for diffs], Tue Feb 20 13:50:53 2001 UTC (23 years, 3 months ago) by itojun
Branch: MAIN
CVS Tags: OPENBSD_3_0_BASE, OPENBSD_3_0, OPENBSD_2_9_BASE, OPENBSD_2_9
Changes since 1.18: +4 -1 lines
Diff to previous 1.18 (colored)

provide SIOC[SG]LIFPHYADDR, which greatly simplify userland manipulation.
sync with kame.  old ioctls are kept but not really recommended.

Revision 1.18 / (download) - annotate - [select for diffs], Sun Dec 31 00:14:59 2000 UTC (23 years, 5 months ago) by angelos
Branch: MAIN
Changes since 1.17: +1 -6 lines
Diff to previous 1.17 (colored)

ioctl's no longer needed.

Revision 1.17 / (download) - annotate - [select for diffs], Tue Dec 12 03:41:23 2000 UTC (23 years, 6 months ago) by jason
Branch: MAIN
Changes since 1.16: +29 -19 lines
Diff to previous 1.16 (colored)

Add support for 802.1D spanning tree protocol.
NOTE: this requires recompiling brconfig with updated include files.

Revision 1.16 / (download) - annotate - [select for diffs], Wed Apr 26 18:37:37 2000 UTC (24 years, 1 month ago) by chris
Branch: MAIN
CVS Tags: OPENBSD_2_8_BASE, OPENBSD_2_8, OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.15: +4 -1 lines
Diff to previous 1.15 (colored)

SIOCSIFGENERIC/SIOCGIFGENERIC

Revision 1.15 / (download) - annotate - [select for diffs], Tue Jan 25 22:06:28 2000 UTC (24 years, 4 months ago) by jason
Branch: MAIN
CVS Tags: SMP_BASE
Branch point for: SMP
Changes since 1.14: +5 -1 lines
Diff to previous 1.14 (colored)

add ethernet MAC filtering capability
also includes split of bridgeintr() with some optimizations for quicker
frame handling

Revision 1.14 / (download) - annotate - [select for diffs], Sat Jan 8 05:40:39 2000 UTC (24 years, 5 months ago) by angelos
Branch: MAIN
Changes since 1.13: +8 -1 lines
Diff to previous 1.13 (colored)

Forgot to commit this (GRE ioctls)

Revision 1.13 / (download) - annotate - [select for diffs], Mon Dec 27 04:15:34 1999 UTC (24 years, 5 months ago) by angelos
Branch: MAIN
Changes since 1.12: +4 -2 lines
Diff to previous 1.12 (colored)

Some more enc ioctls.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Dec 26 09:18:21 1999 UTC (24 years, 5 months ago) by angelos
Branch: MAIN
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored)

Rename enc ioctls to something less ambiguous

Revision 1.11 / (download) - annotate - [select for diffs], Sun Dec 26 09:12:46 1999 UTC (24 years, 5 months ago) by angelos
Branch: MAIN
Changes since 1.10: +4 -2 lines
Diff to previous 1.10 (colored)

Add ioctls for enc bridge.

Revision 1.10 / (download) - annotate - [select for diffs], Wed Dec 8 06:50:24 1999 UTC (24 years, 6 months ago) by itojun
Branch: MAIN
CVS Tags: kame_19991208
Changes since 1.9: +11 -1 lines
Diff to previous 1.9 (colored)

bring in KAME IPv6 code, dated 19991208.
replaces NRL IPv6 layer.  reuses NRL pcb layer.  no IPsec-on-v6 support.
see sys/netinet6/{TODO,IMPLEMENTATION} for more details.

GENERIC configuration should work fine as before.  GENERIC.v6 works fine
as well, but you'll need KAME userland tools to play with IPv6 (will be
bringed into soon).

Revision 1.9 / (download) - annotate - [select for diffs], Fri Mar 19 02:46:55 1999 UTC (25 years, 2 months ago) by jason
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6, OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.8: +3 -1 lines
Diff to previous 1.8 (colored)

Add the ability to mark an interface as "non-learning"

Revision 1.8 / (download) - annotate - [select for diffs], Fri Mar 12 02:40:43 1999 UTC (25 years, 3 months ago) by jason
Branch: MAIN
Changes since 1.7: +3 -1 lines
Diff to previous 1.7 (colored)

big overhaul:
o SNAP encapsulated IP filtering
o static address cache entries
o address deletion from cache
o dynamic & full cache flush
o filter packets based on each interface, not on the bridge as a whole
o KNF nits
o allow addition of ~IFF_UP interfaces
o man page & user level fixes to match the above

Revision 1.7 / (download) - annotate - [select for diffs], Fri Mar 5 21:10:55 1999 UTC (25 years, 3 months ago) by jason
Branch: MAIN
Changes since 1.6: +4 -1 lines
Diff to previous 1.6 (colored)

Make address cache expiration actually work and provide a knob
for adjusting the timeout.

Revision 1.6 / (download) - annotate - [select for diffs], Mon Mar 1 04:44:43 1999 UTC (25 years, 3 months ago) by jason
Branch: MAIN
Changes since 1.5: +5 -3 lines
Diff to previous 1.5 (colored)

completely (almost) revamped ioctl's:
o new ioctls for getting/setting cache size (default == 100)
o changed SIOCBRDGRT -> SIOCBRDGRTS
o changed SIOCBRDGIDX -> SIOCBRDGIFS

Revision 1.5 / (download) - annotate - [select for diffs], Fri Feb 26 17:01:33 1999 UTC (25 years, 3 months ago) by jason
Branch: MAIN
Changes since 1.4: +6 -1 lines
Diff to previous 1.4 (colored)

Ethernet bridge/IP firewall driver.

Revision 1.4 / (download) - annotate - [select for diffs], Thu Sep 3 13:00:03 1998 UTC (25 years, 9 months ago) by jason
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.3: +4 -1 lines
Diff to previous 1.3 (colored)

Missed from if_media: add SIOC{G,S}IFMEDIA

Revision 1.3 / (download) - annotate - [select for diffs], Wed Mar 25 07:37:26 1998 UTC (26 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)

add SIOCGIFDATA; fetches ifdata structure attached to each interface

Revision 1.2 / (download) - annotate - [select for diffs], Sun Mar 3 12:12:21 1996 UTC (28 years, 3 months ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_2_2_BASE, OPENBSD_2_2, OPENBSD_2_1_BASE, OPENBSD_2_1, OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.1: +1 -0 lines
Diff to previous 1.1 (colored)

From NetBSD: 960217 merge

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:53:29 1995 UTC (28 years, 8 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:53:29 1995 UTC (28 years, 8 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.