summaryrefslogtreecommitdiff
path: root/gr-blocks/lib/tuntap_pdu_impl.cc
Commit message (Collapse)AuthorAgeFilesLines
* gr-blocks: remove pdu blocksJacob Gilbert2021-03-181-171/+0
| | | | | | | | | | | | | | | | | | | | | | | | The following have been moved to the new gr::pdu module or to gr::network and are no longer needed in gr::blocks: - pdu (noblock) - pdu_filter block - pdu_remove block - pdu_set block - pdu_to_tagged_stream block - random_pdu block - socket_pdu block - stream_pdu_base (noblock) - tagged_stream_to_pdu block - tcp_connection (noblock) - tuntap_pdu block The digital and FEC modules had a large number of references to the PDU blocks that were moved from gr-blocks to gr-pdu, this updates these changes in example flowgraphs and a few python files. The usage-manual update will be propagated to the wiki so that future exports will remain up to date. Signed-off-by: Jacob Gilbert <jacob.gilbert@protonmail.com>
* gr-blocks: tuntap_pdu: change char array size to fix warning on strncpyJeff Long2021-02-111-4/+6
| | | | Signed-off-by: Jeff Long <willcode4@gmail.com>
* Replace all calls to `get_initial_sptr` with `make_block_sptr`Thomas Habets2020-07-301-1/+1
| | | | | | | | | | | | | | First batch of changes: ``` find […] -print0 | xargs -0 sed -i -r '/get_initial_sptr/{:nxt N;/;/!b nxt;s/get_initial_sptr\(\s*new ([^(]+)(.*)\)\)/make_block_sptr<\1>\2)/}' ``` Then: * Back out `sptr_magic.h` edits * Change some `friend` clauses * clang-format the whole thing * Update checksums in the pybind11 bindings files
* msg_handler: Use lambdas to set msg handlersJohannes Demel2020-06-041-2/+1
| | | | | With this commit, all calls to `set_msg_handler` in `gr-blocks` use lambdas. This helps to use `std::function` instead of `boost::function`.
* msg_handler: Switch from boost::function to std::functionJohannes Demel2020-06-041-1/+2
| | | | | | | This commit is a first stab at moving from `boost::function` to `std::function`. For now, it does only update gr-blocks. Also, this requires more testing. If others can confirm that this change works, I'll continue to update all modules.
* gr-blocks: Updated tuntap_pdu_impl.cc to fix strncpy warningAlekh Gupta2020-05-051-3/+2
|
* gr-blocks: Fixed strncpy warning in tuntap_pdu_implalekhgupta14412020-05-051-0/+1
|
* blocks: replace stderr logging by calls to GR's logging faciltiesMarcus Müller2020-04-131-6/+8
|
* Update license header to SPDX formatdevnulling2020-01-271-13/+1
|
* clang-format: Ordering all the includesMarcus Müller2019-08-091-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | clang-format: ordering includes in gnuradio-runtime clang-format: ordering includes in gr-filter clang-format: ordering includes in gr-fft clang-format: ordering includes in gr-audio clang-format: ordering includes in gr-analog clang-format: ordering includes in gr-fec clang-format: ordering includes in gr-wavelet clang-format: ordering includes in gr-zeromq clang-format: ordering includes in gr-vocoder clang-format: ordering includes in gr-video-sdl clang-format: ordering includes in gr-trellis clang-format: ordering includes in gr-blocks clang-format: ordering includes in gr-digital clang-format: ordering includes in gr-uhd clang-format: ordering includes in gr-dtv clang-format: ordering includes in gr-channels clang-format: ordering includes in gr-qtgui clang_format.py: re-enable include reordering
* Tree: clang-format without the include sortingMarcus Müller2019-08-091-119/+116
|
* tuntap_pdu_impl.cc: Don't leak socket handle..Philip Balister2018-10-051-2/+5
| | | | | | * Addresses Coverity 1375160 Signed-off-by: Philip Balister <philip@balister.org>
* blocks: avoid potential static initialization order fiascoMarcus Müller2018-03-301-4/+4
|
* blocks: don't pmt::mp("string") for every single PDUMarcus Müller2018-02-231-4/+4
| | | | | | | | | Replaced the usage of `#define PDU_PORT_ID pmt::mp("pdus")` – that was the actual way to *enforce* rehashing on every single use. Now, static const member of namespace `gr::blocks::pdu` as `s_pdu_port_id`. Should speed up the PDU blocks a bit. Removes run-time malloc'ing. Good thing.
* tuntap_pdu: use MTU+14 byte receive buffer for TAP to be able to receive MTU ↵Miklos Maroti2017-09-221-1/+1
| | | | sized IP frames
* blocks: fixed issue #853: set MTU on tun/tap network interface in TUNTAP PDU ↵Sean Nowlan2016-01-131-0/+33
| | | | block xtor
* Addresses Defects 1046385 & 1046340: Buffer not NULL-terminatedBen Hilburn2015-08-281-1/+1
| | | | | This was rather harmless. The only result was that the OS copied a character that would then get overwritten as a NULL buffer termination.
* gr-blocks: Make tap/tun configurable, fix GRC spec to be consistent with ↵Paul Garver2015-01-241-5/+12
| | | | default flag of IFF_TAP
* Removing trailing/extra whitespaces before release.Tom Rondeau2014-07-071-2/+2
| | | | We should be more careful about letting these into the code in the future. In emacs, we can use (add-hook 'before-save-hook 'delete-trailing-whitespace).
* runtime: converting runtime core to gr namespace, gnuradio include dir.Tom Rondeau2013-04-291-5/+5
|
* blocks: added gr::blocks::pdu namespace for PDU functionsJohnathan Corgan2013-02-281-1/+1
|
* blocks: added gr::blocks::tuntap_pduJohnathan Corgan2013-02-271-0/+139
Linux only