Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add missing #if's to fix build without bpf(4). | 2020-08-28 | 1 | -2/+3 | |
| | | | | ok deraadt@ | ||||
* | Leave default ifq_maxlen handling to ifq_init() | 2020-08-21 | 1 | -2/+1 | |
| | | | | | | | | | | | | 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 | ||||
* | vether(4) is pretty dummy. It contains nothing requires to be protected. | 2020-08-09 | 1 | -10/+7 | |
| | | | | | | | So set `IFXF_MPSAFE' bit. This allows to discard outgoing packets without kernel lock. ok kn@ | ||||
* | Add missing `IFXF_CLONED' flag to clone interfaces. | 2020-07-28 | 1 | -1/+2 | |
| | | | | ok mpi@ | ||||
* | Change users of IFQ_SET_MAXLEN() and IFQ_IS_EMPTY() to use the "new" API. | 2020-07-10 | 1 | -2/+2 | |
| | | | | ok dlg@ tobhe@ | ||||
* | Change users of IFQ_DEQUEUE(), IFQ_ENQUEUE() and IFQ_LEN() to use the | 2020-07-10 | 1 | -2/+2 | |
| | | | | | | "new" API. ok dlg@ tobhe@ | ||||
* | Creating a cloned interface could return ENOMEM due to temporary | 2018-01-09 | 1 | -5/+2 | |
| | | | | | | memory shortage. As it is invoked from a system call, it should not fail and wait instead. OK visa@ mpi@ | ||||
* | move counting if_opackets next to counting if_obytes in if_enqueue. | 2017-01-22 | 1 | -2/+1 | |
| | | | | | | | 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@ | ||||
* | For virtual Ethernet drivers that don't have a technical limit of the | 2016-11-29 | 1 | -1/+2 | |
| | | | | | | | | 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@ | ||||
* | We're always ready! So send IFQ_SET_READY() to the bitbucket. | 2016-04-13 | 1 | -2/+1 | |
| | |||||
* | remove old lint annotations | 2015-12-05 | 1 | -2/+1 | |
| | |||||
* | arp_ifinit() is no longer required. | 2015-10-25 | 1 | -4/+1 | |
| | |||||
* | Pass output packets to bpf(4). This is helpful when debugging stack | 2015-05-23 | 1 | -5/+12 | |
| | | | | | | issues. ok reyk@ | ||||
* | Remove some includes include-what-you-use claims don't | 2015-03-14 | 1 | -2/+1 | |
| | | | | | | | have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@ | ||||
* | unifdef INET in net code as a precursor to removing the pretend option. | 2014-12-19 | 1 | -7/+1 | |
| | | | | | long live the one true internet. ok henning mikeb | ||||
* | length argument for some free() calls; ok doug | 2014-11-23 | 1 | -2/+2 | |
| | |||||
* | add a size argument to free. will be used soon, but for now default to 0. | 2014-07-12 | 1 | -2/+2 | |
| | | | | after discussions with beck deraadt kettenis. | ||||
* | Uniformize drivers doing nothing with their multicast filters to make | 2013-10-19 | 1 | -18/+2 | |
| | | | | | | them ignore the SIOC{ADD,DEL}MULTI ioctls. ok reyk@, claudio@ | ||||
* | no need for a lot of code to include proc.h | 2013-03-28 | 1 | -2/+1 | |
| | |||||
* | Remove various read-only *maxlen variables and use IFQ_MAXLEN directly. | 2013-03-26 | 1 | -2/+2 | |
| | | | | ok beck@, mikeb@ | ||||
* | use ifmedia_delete_instance() when destroying a vether | 2011-07-22 | 1 | -1/+2 | |
| | | | | from Martin Pelikan | ||||
* | ugly spacing | 2010-04-02 | 1 | -6/+4 | |
| | |||||
* | Special-case SIOCADDMULTI and SIOCDELMULTI ioctls, based on code from if_tun. | 2010-04-02 | 1 | -1/+22 | |
| | | | | | | Makes IPv6 work with if_vether. ok deraadt | ||||
* | allow this to compile in the never-gonna-happen world without INET | 2010-04-02 | 1 | -1/+3 | |
| | |||||
* | dont maintain a list of vether devices inside the driver if they are never | 2010-03-23 | 1 | -13/+1 | |
| | | | | | | looked up. can vether get any smaller? ok deraadt@ claudio@ | ||||
* | delete more left-over stuff from vether development | 2010-01-12 | 1 | -9/+1 | |
| | |||||
* | the bridge does bpf for us, so we do not need bpf.h | 2010-01-12 | 1 | -8/+1 | |
| | |||||
* | delete the unused debug macros | 2010-01-12 | 1 | -7/+1 | |
| | |||||
* | do not need rndvar.h anymore | 2010-01-12 | 1 | -3/+1 | |
| | |||||
* | Unify the various fake ethernet generators as ether_fakeaddr() which | 2010-01-12 | 1 | -13/+2 | |
| | | | | | | 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 | ||||
* | Add a lot of bpf and counter manipulation to the bridge. The bridge | 2009-11-22 | 1 | -24/+6 | |
| | | | | | | | | 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 | ||||
* | improve the bpf path. packets we send out via the bridge are seen, but | 2009-11-18 | 1 | -6/+10 | |
| | | | | | those that come in the bridge are still invisible. the bridge is going to have to bpf those for us. | ||||
* | set IFCAP_VLAN_MTU; from brad | 2009-11-18 | 1 | -1/+4 | |
| | |||||
* | count packets; from claudio | 2009-11-12 | 1 | -3/+7 | |
| | |||||
* | s/MPLS_DEBUG/VETHER_DEBUG | 2009-11-09 | 1 | -2/+2 | |
| | | | | OK deraadt | ||||
* | vether(4) is a virtual ethernet device driver which can be used | 2009-11-09 | 1 | -0/+232 | |
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 |