OpenBSD CVS

CVS log for src/sys/net/if_vether.c


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

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.36 / (download) - annotate - [select for diffs], Fri Aug 28 12:01:48 2020 UTC (3 years, 9 months ago) by mvs
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, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, HEAD
Changes since 1.35: +3 -2 lines
Diff to previous 1.35 (colored)

Add missing #if's to fix build without bpf(4).

ok deraadt@

Revision 1.35 / (download) - annotate - [select for diffs], Fri Aug 21 22:59:27 2020 UTC (3 years, 9 months ago) by kn
Branch: MAIN
Changes since 1.34: +1 -2 lines
Diff to previous 1.34 (colored)

Leave default ifq_maxlen handling to ifq_init()

Most clonable interface drivers (except bridge, enc, loop, pppx,
switch, trunk and vlan) initialise the send queue's length to IFQ_MAXLEN
during *_clone_create() even though ifq_init(), which is eventually called
through if_attach(), does the same.

Remove all early "ifq_set_maxlen(&ifq->if_snd, IFQ_MAXLEN);" lines to leave
it to ifq_init() and have clonable drivers a tad more in sync.

OK mvs

Revision 1.34 / (download) - annotate - [select for diffs], Sun Aug 9 14:33:49 2020 UTC (3 years, 10 months ago) by mvs
Branch: MAIN
Changes since 1.33: +7 -10 lines
Diff to previous 1.33 (colored)

vether(4) is pretty dummy. It contains nothing requires to be protected.
So set `IFXF_MPSAFE' bit. This allows to discard outgoing packets without
kernel lock.

ok kn@

Revision 1.33 / (download) - annotate - [select for diffs], Tue Jul 28 09:52:32 2020 UTC (3 years, 10 months ago) by mvs
Branch: MAIN
Changes since 1.32: +2 -1 lines
Diff to previous 1.32 (colored)

Add missing `IFXF_CLONED' flag to clone interfaces.

ok mpi@

Revision 1.32 / (download) - annotate - [select for diffs], Fri Jul 10 13:26:42 2020 UTC (3 years, 11 months ago) by patrick
Branch: MAIN
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

Change users of IFQ_SET_MAXLEN() and IFQ_IS_EMPTY() to use the "new" API.

ok dlg@ tobhe@

Revision 1.31 / (download) - annotate - [select for diffs], Fri Jul 10 13:22:22 2020 UTC (3 years, 11 months ago) by patrick
Branch: MAIN
Changes since 1.30: +2 -2 lines
Diff to previous 1.30 (colored)

Change users of IFQ_DEQUEUE(), IFQ_ENQUEUE() and IFQ_LEN() to use the
"new" API.

ok dlg@ tobhe@

Revision 1.30 / (download) - annotate - [select for diffs], Tue Jan 9 15:24:24 2018 UTC (6 years, 5 months ago) by bluhm
Branch: MAIN
CVS Tags: OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4, OPENBSD_6_3_BASE, OPENBSD_6_3
Changes since 1.29: +2 -5 lines
Diff to previous 1.29 (colored)

Creating a cloned interface could return ENOMEM due to temporary
memory shortage.  As it is invoked from a system call, it should
not fail and wait instead.
OK visa@ mpi@

Revision 1.29 / (download) - annotate - [select for diffs], Sun Jan 22 10:17:39 2017 UTC (7 years, 4 months ago) by dlg
Branch: MAIN
CVS Tags: OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.28: +1 -2 lines
Diff to previous 1.28 (colored)

move counting if_opackets next to counting if_obytes in if_enqueue.

this means packets are consistently counted in one place, unlike the
many and various ways that drivers thought they should do it.

ok mpi@ deraadt@

Revision 1.28 / (download) - annotate - [select for diffs], Tue Nov 29 10:09:57 2016 UTC (7 years, 6 months ago) by reyk
Branch: MAIN
Changes since 1.27: +2 -1 lines
Diff to previous 1.27 (colored)

For virtual Ethernet drivers that don't have a technical limit of the
hardmtu, pick a value of 65435 that leaves space for some
encapsulation and almost a complete max-IP packet.  After some
discussion we picked this arbitrary value.

OK dlg@

Revision 1.27 / (download) - annotate - [select for diffs], Wed Apr 13 11:41:15 2016 UTC (8 years, 1 month ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.26: +1 -2 lines
Diff to previous 1.26 (colored)

We're always ready!  So send IFQ_SET_READY() to the bitbucket.

Revision 1.26 / (download) - annotate - [select for diffs], Sat Dec 5 10:07:55 2015 UTC (8 years, 6 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.25: +1 -2 lines
Diff to previous 1.25 (colored)

remove old lint annotations

Revision 1.25 / (download) - annotate - [select for diffs], Sun Oct 25 12:05:40 2015 UTC (8 years, 7 months ago) by mpi
Branch: MAIN
Changes since 1.24: +1 -4 lines
Diff to previous 1.24 (colored)

arp_ifinit() is no longer required.

Revision 1.24 / (download) - annotate - [select for diffs], Sat May 23 08:31:05 2015 UTC (9 years ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.23: +12 -5 lines
Diff to previous 1.23 (colored)

Pass output packets to bpf(4).  This is helpful when debugging stack
issues.

ok reyk@

Revision 1.23 / (download) - annotate - [select for diffs], Sat Mar 14 03:38:51 2015 UTC (9 years, 3 months ago) by jsg
Branch: MAIN
Changes since 1.22: +1 -2 lines
Diff to previous 1.22 (colored)

Remove some includes include-what-you-use claims don't
have any direct symbols used.  Tested for indirect use by compiling
amd64/i386/sparc64 kernels.

ok tedu@ deraadt@

Revision 1.22 / (download) - annotate - [select for diffs], Fri Dec 19 17:14:40 2014 UTC (9 years, 5 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.21: +1 -7 lines
Diff to previous 1.21 (colored)

unifdef INET in net code as a precursor to removing the pretend option.
long live the one true internet.
ok henning mikeb

Revision 1.21 / (download) - annotate - [select for diffs], Sun Nov 23 07:39:02 2014 UTC (9 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.20: +2 -2 lines
Diff to previous 1.20 (colored)

length argument for some free() calls; ok doug

Revision 1.20 / (download) - annotate - [select for diffs], Sat Jul 12 18:44:22 2014 UTC (9 years, 11 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.19: +2 -2 lines
Diff to previous 1.19 (colored)

add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.

Revision 1.19 / (download) - annotate - [select for diffs], Sat Oct 19 14:46:31 2013 UTC (10 years, 7 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.18: +2 -18 lines
Diff to previous 1.18 (colored)

Uniformize drivers doing nothing with their multicast filters to make
them ignore the SIOC{ADD,DEL}MULTI ioctls.

ok reyk@, claudio@

Revision 1.18 / (download) - annotate - [select for diffs], Thu Mar 28 16:45:16 2013 UTC (11 years, 2 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4
Changes since 1.17: +1 -2 lines
Diff to previous 1.17 (colored)

no need for a lot of code to include proc.h

Revision 1.17 / (download) - annotate - [select for diffs], Tue Mar 26 13:19:26 2013 UTC (11 years, 2 months ago) by mpi
Branch: MAIN
Changes since 1.16: +2 -2 lines
Diff to previous 1.16 (colored)

Remove various read-only *maxlen variables and use IFQ_MAXLEN directly.

ok beck@, mikeb@

Revision 1.16 / (download) - annotate - [select for diffs], Fri Jul 22 15:59:40 2011 UTC (12 years, 10 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0
Changes since 1.15: +2 -1 lines
Diff to previous 1.15 (colored)

use ifmedia_delete_instance() when destroying a vether
from Martin Pelikan

Revision 1.15 / (download) - annotate - [select for diffs], Fri Apr 2 21:45:49 2010 UTC (14 years, 2 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_9_BASE, OPENBSD_4_9, OPENBSD_4_8_BASE, OPENBSD_4_8
Changes since 1.14: +4 -6 lines
Diff to previous 1.14 (colored)

ugly spacing

Revision 1.14 / (download) - annotate - [select for diffs], Fri Apr 2 21:32:41 2010 UTC (14 years, 2 months ago) by stsp
Branch: MAIN
Changes since 1.13: +22 -1 lines
Diff to previous 1.13 (colored)

Special-case SIOCADDMULTI and SIOCDELMULTI ioctls, based on code from if_tun.
Makes IPv6 work with if_vether.

ok deraadt

Revision 1.13 / (download) - annotate - [select for diffs], Fri Apr 2 04:26:53 2010 UTC (14 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.12: +3 -1 lines
Diff to previous 1.12 (colored)

allow this to compile in the never-gonna-happen world without INET

Revision 1.12 / (download) - annotate - [select for diffs], Tue Mar 23 00:35:21 2010 UTC (14 years, 2 months ago) by dlg
Branch: MAIN
Changes since 1.11: +1 -13 lines
Diff to previous 1.11 (colored)

dont maintain a list of vether devices inside the driver if they are never
looked up. can vether get any smaller?

ok deraadt@ claudio@

Revision 1.11 / (download) - annotate - [select for diffs], Tue Jan 12 11:37:08 2010 UTC (14 years, 5 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_4_7_BASE, OPENBSD_4_7
Changes since 1.10: +1 -9 lines
Diff to previous 1.10 (colored)

delete more left-over stuff from vether development

Revision 1.10 / (download) - annotate - [select for diffs], Tue Jan 12 11:31:23 2010 UTC (14 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.9: +1 -8 lines
Diff to previous 1.9 (colored)

the bridge does bpf for us, so we do not need bpf.h

Revision 1.9 / (download) - annotate - [select for diffs], Tue Jan 12 11:29:35 2010 UTC (14 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.8: +1 -7 lines
Diff to previous 1.8 (colored)

delete the unused debug macros

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jan 12 11:28:09 2010 UTC (14 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.7: +1 -3 lines
Diff to previous 1.7 (colored)

do not need rndvar.h anymore

Revision 1.7 / (download) - annotate - [select for diffs], Tue Jan 12 03:41:29 2010 UTC (14 years, 5 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +2 -13 lines
Diff to previous 1.6 (colored)

Unify the various fake ethernet generators as ether_fakeaddr() which
is safe for both hardware devices and virtual devices
ok mpf, kettenis, moaning and groaning and slow acceptance from mcbride
XXX should loop checking for uniqueness after new henning diff goes in

Revision 1.6 / (download) - annotate - [select for diffs], Sun Nov 22 12:33:25 2009 UTC (14 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.5: +6 -24 lines
Diff to previous 1.5 (colored)

Add a lot of bpf and counter manipulation to the bridge.  The bridge
sneaks packets on and off network interfaces in some cases without
calling the interrupt, start, or output functions, and thus must do
these tasks which the drivers cannot do.  The gif and vether are
rather special.  Someone should re-check gre.
ok claudio

Revision 1.5 / (download) - annotate - [select for diffs], Wed Nov 18 02:11:53 2009 UTC (14 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +10 -6 lines
Diff to previous 1.4 (colored)

improve the bpf path.  packets we send out via the bridge are seen, but
those that come in the bridge are still invisible.  the bridge is going
to have to bpf those for us.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Nov 18 02:10:45 2009 UTC (14 years, 6 months ago) by deraadt
Branch: MAIN
Changes since 1.3: +4 -1 lines
Diff to previous 1.3 (colored)

set IFCAP_VLAN_MTU; from brad

Revision 1.3 / (download) - annotate - [select for diffs], Thu Nov 12 06:37:39 2009 UTC (14 years, 7 months ago) by deraadt
Branch: MAIN
Changes since 1.2: +7 -3 lines
Diff to previous 1.2 (colored)

count packets; from claudio

Revision 1.2 / (download) - annotate - [select for diffs], Mon Nov 9 20:38:33 2009 UTC (14 years, 7 months ago) by mpf
Branch: MAIN
Changes since 1.1: +2 -2 lines
Diff to previous 1.1 (colored)

s/MPLS_DEBUG/VETHER_DEBUG
OK deraadt

Revision 1.1 / (download) - annotate - [select for diffs], Mon Nov 9 03:16:05 2009 UTC (14 years, 7 months ago) by deraadt
Branch: MAIN

vether(4) is a virtual ethernet device driver which can be used
so that a bridge-etherip-tunnel host can join into the bridge itself.
It is ridiculous that this capability was missing from our network
stack portfolio, considering we have bgp and ospf daemons...
discussed at length with claudio

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.