summaryrefslogtreecommitdiffstats
path: root/src/shared/net-util.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* net-util: match on the driver as exposed by ethtool if DRIVER not setTom Gundersen2014-02-211-3/+8
| | | | Also fix a copy-paste error that broke matching on interface name.
* .network/.netdev/.link: allow to match on architectureTom Gundersen2014-02-211-0/+4
|
* net-util: match - allow globbingTom Gundersen2014-02-201-2/+3
| | | | For now support globbing for interface name and path.
* network/link: Match - filter on kernel cmdline, host and virtTom Gundersen2014-02-201-0/+54
|
* shared: net - use u32ctz to compute prefixlenTom Gundersen2014-01-301-10/+1
|
* sd-dhcp-client/net-util: make netmask_to_prefixlen genericTom Gundersen2014-01-301-0/+15
| | | | | This was originally included in the dhcp-client at my request, but it is not really dhcp-specific and useful outside of it, so let's pull it out.
* net-util: verify the address familyTom Gundersen2014-01-301-6/+14
| | | | | Error out if the address family is already set to something incompatible with the address being parsed.
* Revert "net-util: add support for Type=ethernet"Tom Gundersen2014-01-041-1/+1
| | | | | | | This reverts commit 4cd1214db6cf4b262e8ce6381bc710091b375c96. This may still be fixed in the kernel, revert this for now until we see how it all shakes out.
* net-util: add support for Type=ethernetTom Gundersen2014-01-031-1/+1
| | | | | When DEVTYPE is not set for a nic, it means it is a wired/ethernet device.
* networkd: improve loggingTom Gundersen2014-01-021-35/+10
| | | | Remove redundant messages, add some debugging ones and make wording more uniform.
* conf-parser: distinguish between multiple sections with the same nameTom Gundersen2013-11-251-0/+3
| | | | | | | | | | | | | | | | | | | | | | | Pass on the line on which a section was decleared to the parsers, so they can distinguish between multiple sections (if they chose to). Currently no parsers take advantage of this, but a follow-up patch will do that to distinguish [Address] Address=192.168.0.1/24 Label=one [Address] Address=192.168.0.2/24 Label=two from [Address] Address=192.168.0.1/24 Label=one Address=192.168.0.2/24 Label=two
* udev: net_setup_link - don't use Description as AliasTom Gundersen2013-11-251-1/+41
| | | | | | Use Description only internally, and allow Alias to be set as a separate option. For instance SNMP uses ifalias for a specific purpose, so let's not write to it by default.
* net-util: add inet address/family parsingTom Gundersen2013-11-091-0/+28
|
* net-util: don't use libudevTom Gundersen2013-11-051-19/+15
| | | | Should fix linking with old toolchain.
* net-config: start split out matching and parsing logicTom Gundersen2013-11-041-0/+169
Move this to src/share/net-util.c, so it can be used elsewhere.