summaryrefslogtreecommitdiff
path: root/src/network/networkd-lldp-tx.c
Commit message (Collapse)AuthorAgeFilesLines
* network: assert on dereferenced pointerLuca Boccassi2021-10-071-1/+3
| | | | CID#1462762
* network: use sd-lldp-txYu Watanabe2021-09-281-351/+65
|
* sd-lldp: introduce SD_LLDP_OUI_IANA_MUD macroYu Watanabe2021-09-281-5/+3
|
* network: disable event sources before unref themYu Watanabe2021-09-241-1/+1
|
* tree-wide: port everything over to new sd-id128 compund literal blissLennart Poettering2021-08-201-2/+1
|
* network: further unification of MUD url parsersYu Watanabe2021-07-141-20/+0
| | | | Follow-up for 89fa9a6b7b2505aa2ce18febf1e28e79510dfec2.
* networkd: add shared parser for mud urlsZbigniew Jędrzejewski-Szmek2021-07-091-23/+4
| | | | The same buggy code was triplicated…
* tree-wide: make cunescape*() functions return ssize_tZbigniew Jędrzejewski-Szmek2021-07-091-4/+4
| | | | | Strictly speaking, we are returning the size of a memory chunk of arbitrary size, so ssize_t is more appropriate than int.
* ether-addr-util: drop redundant "addr" from struct hw_addr_dataYu Watanabe2021-06-101-1/+1
| | | | Also, this makes always specifiy "struct" for hw_addr_data.
* network: fix indentationYu Watanabe2021-04-131-1/+1
|
* networkd: lldp: use string tableYu Watanabe2021-02-121-40/+11
|
* tree-wide: use error codes in xxx_from_string()Yu Watanabe2021-02-121-1/+1
|
* license: LGPL-2.1+ -> LGPL-2.1-or-laterYu Watanabe2020-11-091-1/+1
|
* network: store full hardware address in Link structTimo Rothenpieler2020-10-281-1/+1
| | | | | | This passes the legacy ethernet address to functions in a lot of places, which all will need migrated to handle arbitrary size hardware addresses eventually.
* network: check feature is enabled in xxx_configure()Yu Watanabe2020-10-071-1/+1
|
* tree-wide: prefer AF_xyz over PF_xyzLennart Poettering2020-09-091-1/+1
| | | | | | This really doesn't matter given that AF_xyz and PF_xyz are equivalent in all ways, but we almost always use AF_xyz, hence stick to it universally and convert the remaining PF_ to AF_
* tree-wide: make use of new relative time events in sd-event.hLennart Poettering2020-07-281-5/+3
|
* network: downgrade log level in conf parsersYu Watanabe2020-07-171-3/+3
|
* networkd: don't do lldp rx nor tx on bond devicesLennart Poettering2020-04-231-1/+5
| | | | Fixes: #15146
* LLDP: Add support to transmit MUD URLSusant Sahani2020-04-081-1/+76
|
* tree-wide: drop string.h when string-util.h or friends are includedYu Watanabe2019-11-041-1/+0
|
* tree-wide: drop netinet/ether.h from socket-util.h and sd-netlink.hYu Watanabe2019-07-241-0/+1
|
* network: move link_lldp_emit_enabled() to networkd-lldp-tx.cYu Watanabe2019-05-111-0/+17
|
* util: drop missing.h from socket-util.hYu Watanabe2018-12-061-0/+1
|
* util-lib: split out env file parsing code into env-file.cLennart Poettering2018-12-021-1/+1
| | | | | | It's quite complex, let's split this out. No code changes, just some file rearranging.
* fileio: automatically add NULL sentinel to parse_env_file()Lennart Poettering2018-11-141-1/+1
| | | | Let's modernize things a bit.
* fileio: drop "newline" parameter for env file parsersLennart Poettering2018-11-141-1/+1
| | | | | | | Now that we don't (mis-)use the env file parser to parse kernel command lines there's no need anymore to override the used newline character set. Let's hence drop the argument and just "\n\r" always. This nicely simplifies our code.
* tree-wide: remove Lennart's copyright linesLennart Poettering2018-06-141-3/+0
| | | | | | | | | | | These lines are generally out-of-date, incomplete and unnecessary. With SPDX and git repository much more accurate and fine grained information about licensing and authorship is available, hence let's drop the per-file copyright notice. Of course, removing copyright lines of others is problematic, hence this commit only removes my own lines and leaves all others untouched. It might be nicer if sooner or later those could go away too, making git the only and accurate source of authorship information.
* tree-wide: drop 'This file is part of systemd' blurbLennart Poettering2018-06-141-2/+0
| | | | | | | | | | | | | | | | This part of the copyright blurb stems from the GPL use recommendations: https://www.gnu.org/licenses/gpl-howto.en.html The concept appears to originate in times where version control was per file, instead of per tree, and was a way to glue the files together. Ultimately, we nowadays don't live in that world anymore, and this information is entirely useless anyway, as people are very welcome to copy these files into any projects they like, and they shouldn't have to change bits that are part of our copyright header for that. hence, let's just get rid of this old cruft, and shorten our codebase a bit.
* fileio: accept FILE* in addition to path in parse_env_file()Lennart Poettering2018-05-241-1/+1
| | | | | | | Most our other parsing functions do this, let's do this here too, internally we accept that anyway. Also, the closely related load_env_file() and load_env_file_pairs() also do this, so let's be systematic.
* tree-wide: drop license boilerplateZbigniew Jędrzejewski-Szmek2018-04-061-13/+0
| | | | | | | | | | Files which are installed as-is (any .service and other unit files, .conf files, .policy files, etc), are left as is. My assumption is that SPDX identifiers are not yet that well known, so it's better to retain the extended header to avoid any doubt. I also kept any copyright lines. We can probably remove them, but it'd nice to obtain explicit acks from all involved authors before doing that.
* tree-wide: use TAKE_PTR() and TAKE_FD() macrosYu Watanabe2018-04-051-2/+1
|
* Add SPDX license identifiers to source files under the LGPLZbigniew Jędrzejewski-Szmek2017-11-191-0/+1
| | | | | This follows what the kernel is doing, c.f. https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5fd54ace4721fc5ce2bb5aef6318fcf17f421460.
* networkd: clean up main header file a bitTom Gundersen2016-11-141-1/+1
| | | | | Rename networkd.h to networkd-manager.h, to more accurately describe what it contains.
* networkd: reworkd LLDP emission to allow control of propagation levelLennart Poettering2016-05-091-18/+84
| | | | | | | | | This allows selecting the propagation level of emitted LLDP packets (specifically: the destination MAC address of the packets). This is useful because it allows generating LLDP packets that optionally cross certain types of bridges. See 802.11ab-2009, Table 7-1 for details.
* networkd: rework headers to avoid circular includesZbigniew Jędrzejewski-Szmek2016-04-291-1/+4
| | | | | | | | | | | | | | | | | | | | Header files were organized in a way where the includer would add various typedefs used by the includee before including it, resulting in a tangled web of dependencies between files. Replace this with the following logic: networkd.h / \ networkd-link.h \ networkd-ipv4ll.h--\__\ networkd-fdb.h \ networkd-network.h netword-netdev-*.h networkd-route.h \ networkd-netdev.h If a pointer to a structure defined in a different header file is needed, use a typedef line instead of including the whole header.
* sd-lldp: drop LLDP ethernet export from sd-lldp.hLennart Poettering2016-04-121-2/+4
| | | | | We only use it for the Tx code anyway, hence sd-lldp.h shouldn't expose it, as it only implements Rx.
* lldp: replace if with assert_ccZbigniew Jędrzejewski-Szmek2016-04-071-2/+1
| | | | | | | LLDP_TX_HOLD or one of the other variables might be changed in the future resulting in a silent error here if the if was just removed. Replacement for #2983.
* lldp: move public macros to sd-lldp.h and namespace themBeniamino Galvani2016-03-241-16/+15
| | | | | | lldp.h contains definitions of LLDP types, subtypes and capabilities which should be exposed in public headers. Get rid of the file and move those definitions to sd-lldp.h with the SD_ prefix.
* networkd: add basic LLDP transmission supportLennart Poettering2016-02-211-0/+347
Let's add some minimalistic LLDP sender support. The idea is that this is either on or off, and all fields determined automatically rather than configured explicitly.