1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-02 19:21:53 +03:00
systemd/man
Lennart Poettering 34437b4f9c sd-lldp: rework sd-lldp API
This reworks the sd-lldp substantially, simplifying things on one hand, and
extending the logic a bit on the other.

Specifically:

- Besides the sd_lldp object only one other object is maintained now,
  sd_lldp_neighbor. It's used both as storage for literal LLDP packets, and for
  maintainging info about peers in the database. Separation between packet, TLV
  and chassis data is not maintained anymore. This should be a major
  simplification.

- The sd-lldp API has been extended so that a couple of per-neighbor fields may
  be queried directly, without iterating through the object. Other fields that
  may appear multiple times, OTOH have to be iterated through.

- The maximum number of entries in the neighbor database is now configurable
  during runtime.

- The generation of callbacks from sd_lldp objects is more restricted:
  callbacks are only invoked when actual data changed.

- The TTL information is now hooked with a timer event, so that removals from
  the neighbor database due to TTLs now result in a callback event.

- Querying LLDP neighbor database will now return a strictly ordered array, to
  guarantee stability.

- A "capabilities" mask may now be configured, that selects what type of LLDP
  neighbor data is collected. This may be used to restrict collection of LLDP
  info about routers instead of all neighbors. This is now exposed via
  networkd's LLDP= setting.

- sd-lldp's API to serialize the collected data to text files has been removed.
  Instead, there's now an API to extract the raw binary data from LLDP neighbor
  objects, as well as one to convert this raw binary data back to an LLDP
  neighbor object. networkd will save this raw binary data to /run now, and the
  client side can simply parse the information.

- support for parsing the more exotic TLVs has been removed, since we are not
  using that. Instead there are now APIs to extract the raw data from TLVs.
  Given how easy it is to parse the TLVs clients should do so now directly
  instead of relying on our APIs for that.

- A lot of the APIs that parse out LLDP strings have been simplified so that
  they actually return strings, instead of char arrays with a length. To deal
  with possibly dangerous characters the strings are escaped if needed.

- APIs to extract and format the chassis and port IDs as strings has been
  added.

- lldp.h has been simplified a lot. The enums are anonymous now, since they
  were never used as enums, but simply as constants. Most definitions we don't
  actually use ourselves have eben removed.
2016-02-21 20:40:56 +01:00
..
.gitignore
binfmt.d.xml
bootchart.conf.xml
bootctl.xml
bootup.xml
busctl.xml remove bus-proxyd 2016-02-12 19:10:01 +01:00
coredump.conf.xml
coredumpctl.xml
crypttab.xml
custom-html.xsl
custom-man.xsl
daemon.xml
dnssec-trust-anchors.d.xml man: fix typos 2016-01-15 12:48:01 +01:00
file-hierarchy.xml doc: improved wording in some places 2016-01-28 11:13:17 +01:00
glib-event-glue.c
halt.xml
hostname.xml man/hostname: remove obsolete text 2016-02-06 17:54:48 -05:00
hostnamectl.xml man/hostnamectl: refer to transient hostname as "fallback" 2016-02-06 17:54:48 -05:00
hwdb.xml
journal-remote.conf.xml Add Seal option in the configuration file for journald-remote 2015-12-20 13:23:33 +01:00
journalctl.xml Merge pull request #2519 from msekletar/journalctl-device-log-current-boot-v2 2016-02-03 16:26:21 +01:00
journald.conf.xml
kernel-command-line.xml core: Add machine-id setting 2016-01-12 22:10:41 +00:00
kernel-install.xml
less-variables.xml
libsystemd-pkgconfig.xml
libudev.xml
locale.conf.xml
localectl.xml
localtime.xml
loginctl.xml
logind.conf.xml man: document that logind's RemoveIPC= option excepts all system users 2016-01-26 14:42:04 +01:00
machine-id.xml core: Add machine-id setting 2016-01-12 22:10:41 +00:00
machine-info.xml
machinectl.xml man: try to repair some nonsensical paragraph 2016-01-28 11:12:29 +01:00
Makefile
modules-load.d.xml
networkctl.xml
nss-myhostname.xml man: document that nss-myhostname handles *.localhost and *.localdomain too 2016-02-10 23:48:50 +01:00
nss-mymachines.xml
nss-resolve.xml
os-release.xml
pam_systemd.xml
resolved.conf.xml Merge pull request #2469 from keszybz/resolved-2 2016-01-30 15:04:56 +01:00
runlevel.xml
sd_booted.xml
sd_bus_creds_get_pid.xml core: drop Capabilities= setting 2016-02-13 11:59:34 +01:00
sd_bus_creds_new_from_pid.xml tree-wide: expose "p"-suffix unref calls in public APIs to make gcc cleanup easy 2015-11-27 19:19:36 +01:00
sd_bus_default.xml
sd_bus_error_add_map.xml
sd_bus_error.xml
sd_bus_message_append_array.xml
sd_bus_message_append_basic.xml
sd_bus_message_append_string_memfd.xml
sd_bus_message_append_strv.xml
sd_bus_message_append.xml
sd_bus_message_get_cookie.xml
sd_bus_message_get_monotonic_usec.xml
sd_bus_negotiate_fds.xml
sd_bus_new.xml tree-wide: expose "p"-suffix unref calls in public APIs to make gcc cleanup easy 2015-11-27 19:19:36 +01:00
sd_bus_path_encode.xml
sd_bus_request_name.xml
sd_event_add_child.xml man: fix typos 2015-12-26 20:37:17 +01:00
sd_event_add_defer.xml man: fix typos 2015-12-26 20:37:17 +01:00
sd_event_add_io.xml man/sd_event_{add_io,add_time,add_signal,now}: various small fixes 2016-01-19 12:18:24 -05:00
sd_event_add_signal.xml man/sd_event_{add_io,add_time,add_signal,now}: various small fixes 2016-01-19 12:18:24 -05:00
sd_event_add_time.xml sd-event: permit a USEC_INFINITY timeout as an alternative to a disabling an event source 2016-02-01 22:18:15 +01:00
sd_event_exit.xml man: fix typos 2015-12-26 20:37:17 +01:00
sd_event_get_fd.xml
sd_event_new.xml tree-wide: expose "p"-suffix unref calls in public APIs to make gcc cleanup easy 2015-11-27 19:19:36 +01:00
sd_event_now.xml Merge pull request #2373 from keszybz/man-api-build-3 2016-01-19 20:44:58 +01:00
sd_event_run.xml
sd_event_set_watchdog.xml
sd_event_source_get_event.xml
sd_event_source_get_pending.xml man: fix reference to sd_event_source_get_io_revents 2016-01-25 20:05:09 -05:00
sd_event_source_set_description.xml
sd_event_source_set_enabled.xml man: fix typos 2015-12-26 20:37:17 +01:00
sd_event_source_set_prepare.xml man: fix typos 2015-12-26 20:37:17 +01:00
sd_event_source_set_priority.xml man: fix typos 2015-12-26 20:37:17 +01:00
sd_event_source_set_userdata.xml
sd_event_source_unref.xml tree-wide: expose "p"-suffix unref calls in public APIs to make gcc cleanup easy 2015-11-27 19:19:36 +01:00
sd_event_wait.xml man: fix typos 2015-12-26 20:37:17 +01:00
sd_get_seats.xml
sd_id128_get_machine.xml
sd_id128_randomize.xml
sd_id128_to_string.xml
sd_is_fifo.xml
sd_journal_add_match.xml
sd_journal_enumerate_fields.xml sd-journal: add an API to enumerate known field names of the journal 2016-02-01 22:42:33 +01:00
sd_journal_get_catalog.xml
sd_journal_get_cursor.xml
sd_journal_get_cutoff_realtime_usec.xml
sd_journal_get_data.xml
sd_journal_get_fd.xml
sd_journal_get_realtime_usec.xml
sd_journal_get_usage.xml
sd_journal_has_runtime_files.xml sd-journal: introduce has_runtime_files and has_persistent_files 2016-02-01 11:59:27 +01:00
sd_journal_next.xml
sd_journal_open.xml
sd_journal_print.xml
sd_journal_query_unique.xml sd-journal: add an API to enumerate known field names of the journal 2016-02-01 22:42:33 +01:00
sd_journal_seek_head.xml
sd_journal_stream_fd.xml
sd_listen_fds.xml
sd_login_monitor_new.xml tree-wide: expose "p"-suffix unref calls in public APIs to make gcc cleanup easy 2015-11-27 19:19:36 +01:00
sd_machine_get_class.xml
sd_notify.xml man: fix typos 2015-12-26 20:37:17 +01:00
sd_pid_get_session.xml
sd_seat_get_active.xml man: fix typos 2015-12-26 20:37:17 +01:00
sd_session_is_active.xml
sd_uid_get_state.xml
sd_watchdog_enabled.xml
sd-bus-errors.xml
sd-bus.xml man: add stub sd-bus(3) 2016-01-25 20:20:58 -05:00
sd-daemon.xml
sd-event.xml man: fix typos 2015-12-26 20:37:17 +01:00
sd-id128.xml
sd-journal.xml sd-journal: add an API to enumerate known field names of the journal 2016-02-01 22:42:33 +01:00
sd-login.xml
shutdown.xml
standard-conf.xml
standard-options.xml
sysctl.d.xml
systemctl.xml man: follow up fixes for #2575 2016-02-10 19:49:40 -05:00
systemd-analyze.xml
systemd-ask-password-console.service.xml
systemd-ask-password.xml man: fix references to a few external man pages 2016-01-25 20:04:58 -05:00
systemd-backlight@.service.xml
systemd-binfmt.service.xml
systemd-bootchart.xml
systemd-cat.xml
systemd-cgls.xml
systemd-cgtop.xml
systemd-coredump.xml
systemd-cryptsetup-generator.xml
systemd-cryptsetup@.service.xml
systemd-debug-generator.xml
systemd-delta.xml
systemd-detect-virt.xml man: top-align cell text for large tables 2016-01-28 11:12:29 +01:00
systemd-escape.xml doc: improved wording in some places 2016-01-28 11:13:17 +01:00
systemd-firstboot.xml
systemd-fsck@.service.xml
systemd-fstab-generator.xml
systemd-getty-generator.xml
systemd-gpt-auto-generator.xml
systemd-halt.service.xml
systemd-hibernate-resume-generator.xml
systemd-hibernate-resume@.service.xml
systemd-hostnamed.service.xml
systemd-hwdb.xml
systemd-inhibit.xml
systemd-initctl.service.xml
systemd-journal-gatewayd.service.xml doc typo, src: systemd/src/journal-remote/journal-gatewayd.c 2016-01-11 16:38:35 +01:00
systemd-journal-remote.xml journal-remote: add an example to man 2016-01-24 16:12:13 +09:00
systemd-journal-upload.xml
systemd-journald.service.xml
systemd-localed.service.xml
systemd-logind.service.xml
systemd-machine-id-commit.service.xml
systemd-machine-id-setup.xml
systemd-machined.service.xml
systemd-modules-load.service.xml
systemd-networkd-wait-online.service.xml
systemd-networkd.service.xml
systemd-notify.xml
systemd-nspawn.xml nspawn: optionally run a stub init process as PID 1 2016-02-03 23:58:24 +01:00
systemd-path.xml doc: improved wording in some places 2016-01-28 11:13:17 +01:00
systemd-quotacheck.service.xml
systemd-random-seed.service.xml
systemd-remount-fs.service.xml
systemd-resolve.xml systemd-resolve: fix typo in man page 2016-02-19 14:42:38 +01:00
systemd-resolved.service.xml man: document that resolved cares about /etc/hosts 2016-02-11 16:25:22 +01:00
systemd-rfkill.service.xml
systemd-run.xml
systemd-sleep.conf.xml
systemd-socket-activate.xml Promote systemd-activate to /usr/bin/systemd-socket-activate 2016-02-14 20:33:32 -05:00
systemd-socket-proxyd.xml
systemd-suspend.service.xml
systemd-sysctl.service.xml
systemd-system-update-generator.xml
systemd-system.conf.xml
systemd-sysusers.xml
systemd-sysv-generator.xml
systemd-timedated.service.xml
systemd-timesyncd.service.xml
systemd-tmpfiles.xml
systemd-tty-ask-password-agent.xml
systemd-udevd.service.xml
systemd-update-done.service.xml
systemd-update-utmp.service.xml
systemd-user-sessions.service.xml
systemd-vconsole-setup.service.xml
systemd.automount.xml
systemd.device.xml
systemd.exec.xml core: drop Capabilities= setting 2016-02-13 11:59:34 +01:00
systemd.generator.xml man: clarify that generators are run before /var 2016-02-06 17:54:48 -05:00
systemd.journal-fields.xml
systemd.kill.xml
systemd.link.xml
systemd.mount.xml
systemd.netdev.xml networkd: VXLAN add support to configure port 2016-01-19 12:17:54 +05:30
systemd.network.xml sd-lldp: rework sd-lldp API 2016-02-21 20:40:56 +01:00
systemd.nspawn.xml nspawn: optionally run a stub init process as PID 1 2016-02-03 23:58:24 +01:00
systemd.path.xml
systemd.preset.xml
systemd.resource-control.xml cgroup: remove support for NetClass= directive 2016-02-10 16:38:56 +01:00
systemd.scope.xml
systemd.service.xml Merge pull request #2590 from zonque/bus-endpoint-removal 2016-02-11 21:58:46 -05:00
systemd.slice.xml
systemd.socket.xml
systemd.special.xml man: fix typos 2016-02-12 00:01:16 +01:00
systemd.swap.xml Typo fixes 2016-02-12 00:26:37 +01:00
systemd.target.xml
systemd.time.xml
systemd.timer.xml man: fix typos 2015-12-26 20:37:17 +01:00
systemd.unit.xml man: follow up fixes for #2575 2016-02-10 19:49:40 -05:00
systemd.xml basic/terminal-util: introduce SYSTEMD_COLORS environment variable 2016-01-20 10:12:41 +01:00
sysusers.d.xml doc: improved wording in some places 2016-01-28 11:13:17 +01:00
telinit.xml
timedatectl.xml
timesyncd.conf.xml man: document which section the configuration settings of timesyncd.conf belong into 2016-01-29 14:53:05 +01:00
tmpfiles.d.xml man/tmpfiles.d: add note about permissions and ownership of symlinks 2016-01-13 08:41:54 +01:00
udev_device_get_syspath.xml
udev_device_has_tag.xml
udev_device_new_from_syspath.xml man: document that udev_device_new_* functions set errno on error 2016-02-03 12:14:32 +01:00
udev_enumerate_add_match_subsystem.xml
udev_enumerate_new.xml
udev_enumerate_scan_devices.xml
udev_list_entry.xml
udev_monitor_filter_update.xml
udev_monitor_new_from_netlink.xml
udev_monitor_receive_device.xml
udev_new.xml
udev.conf.xml
udev.xml
udevadm.xml
user-system-options.xml
vconsole.conf.xml