1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-01 09:21:26 +03:00
systemd/man
Susant Sahani 30ae9dfda3 networkd: Introduce tun/tap device
This patch introduces TUN/TAP device creation support
to networkd.

Example conf to create a tap device:

file: tap.netdev
------------------
[NetDev]
Name=tap-test
Kind=tap

[Tap]
OneQueue=true
MultiQueue=true
PacketInfo=true
User=sus
Group=sus
------------------

Test:
1. output of ip link
tap-test: tap pi one_queue UNKNOWN_FLAGS:900 user 1000 group 1000

id:
uid=1000(sus) gid=10(wheel) groups=10(wheel),1000(sus)
context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023

Modifications:

Added:
1. file networkd-tuntap.c
3. netdev kind NETDEV_KIND_TUN and NETDEV_KIND_TAP
2. Tun and Tap Sections and config params to parse
   conf and gperf conf parameters

[tomegun: tweak the 'kind' checking for received ifindex]
2014-07-03 11:00:02 +02:00
..
.gitignore build-sys,man: use XML entities to substite strings 2013-03-29 20:30:21 -04:00
binfmt.d.xml man: resolve word omissions 2013-12-25 22:53:45 -05:00
bootchart.conf.xml bootchart: add control group option 2014-04-24 19:21:51 -04:00
bootctl.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
bootup.xml man: more grammar improvements 2013-07-03 08:19:20 -04:00
busctl.xml man: xinclude --host/--machine 2014-02-20 22:43:27 -05:00
coredump.conf.xml doc: grammatical corrections 2014-06-28 00:06:30 -04:00
coredumpctl.xml doc: grammatical corrections 2014-06-28 00:06:30 -04:00
crypttab.xml man: mention that x-systemd.device-timeout is only for fstab 2014-06-30 18:41:17 -04:00
custom-html.xsl man: always supply quotes around literals 2013-06-26 08:05:14 -04:00
custom-man.xsl man: always supply quotes around literals 2013-06-26 08:05:14 -04:00
daemon.xml man: daemon - typo fix 2014-06-30 22:38:17 +02:00
file-hierarchy.xml man: /usr/bin may contain binaries in any compatible arch, not just the primary one 2014-07-03 01:10:01 +02:00
halt.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
hostname.xml man: more grammar improvements 2013-07-03 08:19:20 -04:00
hostnamectl.xml doc: grammatical corrections 2014-06-28 00:06:30 -04:00
journalctl.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
journald.conf.xml journald: make SplitMode=uid the default 2014-06-19 12:38:45 +02:00
kernel-command-line.xml debug-generator: add new kernel cmdline option systemd.wants= to add units to the initial transaction 2014-06-20 13:36:28 +02:00
kernel-install.xml os-release: define /usr/lib/os-release as fallback for /etc/os-release 2014-06-13 20:11:59 +02:00
less-variables.xml man: use xinclude to de-deduplicate common text 2014-02-12 01:10:31 -05:00
libsystemd-pkgconfig.xml man: xinclude pkg-config note 2014-02-20 22:43:27 -05:00
locale.conf.xml man: more grammar improvements 2013-07-03 08:19:20 -04:00
localectl.xml man: xinclude --host/--machine 2014-02-20 22:43:27 -05:00
localtime.xml doc: properly use XML entities 2014-02-17 19:03:07 -05:00
loginctl.xml man: xinclude --host/--machine 2014-02-20 22:43:27 -05:00
logind.conf.xml man: logind.conf: fix grammar issues, unclear wording, and unclear default values 2014-05-16 23:10:11 -04:00
machine-id.xml man: use HTTPS links for links that support it 2013-07-16 17:42:56 +02:00
machine-info.xml doc: resolve missing/extraneous words or inappropriate forms 2014-02-17 19:03:07 -05:00
machinectl.xml machinectl: reimplement machinectl's "reboot" verb on top of "kill", and add new verb "poweroff" 2014-03-18 04:48:26 +01:00
Makefile
modules-load.d.xml man: wording and grammar updates 2013-09-12 22:09:57 +02:00
nss-myhostname.xml man: always place <programlisting> and </programlisting> in a line with actual sources, so that we don't get spurious newlines in the man page output 2014-02-14 15:56:19 +01:00
os-release.xml doc: grammatical corrections 2014-06-28 00:06:30 -04:00
pam_systemd.xml man: recommend that XDG_SESSION_DESKTOP and XDG_CURRENT_DESKTOP use the same identifiers 2014-04-23 20:11:38 +02:00
resolved.conf.xml resolved: add daemon to manage resolv.conf 2014-05-19 18:14:56 +02:00
runlevel.xml Revert back to /var/run at a couple of problems 2014-02-26 02:47:43 +01:00
sd_booted.xml man: xinclude pkg-config note 2014-02-20 22:43:27 -05:00
sd_bus_creds_get_pid.xml build-sys: add conditionals and regenerate manpage list 2014-02-20 22:43:27 -05:00
sd_bus_creds_new_from_pid.xml build-sys: add conditionals and regenerate manpage list 2014-02-20 22:43:27 -05:00
sd_bus_error.xml doc: comma placement corrections and word order 2014-05-07 20:13:27 -04:00
sd_bus_message_append_array.xml doc: comma placement corrections and word order 2014-05-07 20:13:27 -04:00
sd_bus_message_append_basic.xml doc: comma placement corrections and word order 2014-05-07 20:13:27 -04:00
sd_bus_message_append_string_memfd.xml doc: comma placement corrections and word order 2014-05-07 20:13:27 -04:00
sd_bus_message_append_strv.xml doc: comma placement corrections and word order 2014-05-07 20:13:27 -04:00
sd_bus_message_append.xml doc: comma placement corrections and word order 2014-05-07 20:13:27 -04:00
sd_bus_message_get_cookie.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_bus_message_get_monotonic_usec.xml man: explain that the timestamps on incoming kdbus messages are not necessarily monotonically increasing 2014-04-13 17:42:11 -07:00
sd_bus_negotiate_fds.xml doc: comma placement corrections and word order 2014-05-07 20:13:27 -04:00
sd_bus_new.xml build-sys: add conditionals and regenerate manpage list 2014-02-20 22:43:27 -05:00
sd_bus_open_user.xml doc: corrections to words and forms 2014-05-07 20:13:26 -04:00
sd_bus_path_encode.xml doc: comma placement corrections and word order 2014-05-07 20:13:27 -04:00
sd_bus_request_name.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_event_add_time.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_event_new.xml doc: comma placement corrections and word order 2014-05-07 20:13:27 -04:00
sd_get_seats.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_id128_get_machine.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_id128_randomize.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_id128_to_string.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_is_fifo.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_journal_add_match.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_journal_get_catalog.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_journal_get_cursor.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_journal_get_cutoff_realtime_usec.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_journal_get_data.xml man/sd_journal_get_data: fix variable naming in example 2014-07-01 16:38:40 +02:00
sd_journal_get_fd.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_journal_get_realtime_usec.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_journal_get_usage.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_journal_next.xml man/sd_journal_next: fix argument in example 2014-07-01 16:38:37 +02:00
sd_journal_open.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_journal_print.xml man: sd_journal_send does nothing when journald is not available 2014-05-09 08:39:51 -04:00
sd_journal_query_unique.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_journal_seek_head.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_journal_stream_fd.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_listen_fds.xml man: xinclude pkg-config note 2014-02-20 22:43:27 -05:00
sd_login_monitor_new.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_notify.xml man: xinclude pkg-config note 2014-02-20 22:43:27 -05:00
sd_pid_get_session.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_readahead.xml man: improvements to comma placement 2013-12-25 22:53:46 -05:00
sd_seat_get_active.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_session_is_active.xml doc: balance C indirections in function prototypes 2014-05-07 20:13:27 -04:00
sd_uid_get_state.xml man: describe sd_uid_get_display 2014-05-24 18:50:21 -04:00
sd_watchdog_enabled.xml man: fix sd_watchdog_enabled() prototype in man page 2014-06-27 19:51:14 +02:00
sd-daemon.xml man: xinclude pkg-config note 2014-02-20 22:43:27 -05:00
sd-id128.xml man: xinclude pkg-config note 2014-02-20 22:43:27 -05:00
sd-journal.xml man: fix references to sd_journal_cutoff_realtime_usec 2014-06-06 15:50:30 +02:00
sd-login.xml man: xinclude pkg-config note 2014-02-20 22:43:27 -05:00
sd-readahead.xml man: improvements to comma placement 2013-12-25 22:53:46 -05:00
shutdown.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
standard-options.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
sysctl.d.xml doc: typographical improvements and choice of words 2014-06-28 00:06:31 -04:00
systemctl.xml doc: grammatical corrections 2014-06-28 00:06:30 -04:00
systemd-activate.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-analyze.xml man: xinclude --host/--machine 2014-02-20 22:43:27 -05:00
systemd-ask-password-console.service.xml
systemd-ask-password.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-backlight@.service.xml man: fix typos in backlight/rfkill page 2013-10-19 12:33:47 +02:00
systemd-binfmt.service.xml build-sys: create Makefile-man.am automatically 2013-02-06 23:16:16 -05:00
systemd-bootchart.xml bootchart: add control group option 2014-04-24 19:21:51 -04:00
systemd-bus-proxyd.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-bus-proxyd@.service.xml Use /var/run/dbus/system_bus_socket for the D-Bus socket 2014-02-25 21:26:42 -05:00
systemd-cat.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-cgls.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-cgtop.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-cryptsetup-generator.xml man: wording and grammar updates 2013-10-15 08:19:49 -04:00
systemd-cryptsetup@.service.xml build-sys: create Makefile-man.am automatically 2013-02-06 23:16:16 -05:00
systemd-debug-generator.xml doc: grammatical corrections 2014-06-28 00:06:30 -04:00
systemd-delta.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-detect-virt.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-efi-boot-generator.xml man: wording and grammar updates 2013-09-10 18:34:41 +02:00
systemd-fsck@.service.xml man: beef up systemd-fsck description 2014-06-30 18:41:17 -04:00
systemd-fstab-generator.xml man: document fail/nofail, auto/noauto 2013-12-25 23:22:05 -05:00
systemd-getty-generator.xml man: resolve word omissions 2013-12-25 22:53:45 -05:00
systemd-gpt-auto-generator.xml doc: comma placement corrections and word order 2014-05-07 20:13:27 -04:00
systemd-halt.service.xml man: document fail/nofail, auto/noauto 2013-12-25 23:22:05 -05:00
systemd-hostnamed.service.xml man: improve grammar and word formatting in numerous man pages 2013-07-02 23:06:22 -04:00
systemd-inhibit.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-initctl.service.xml
systemd-journal-gatewayd.service.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-journal-remote.xml doc: comma placement corrections and word order 2014-05-07 20:13:27 -04:00
systemd-journald.service.xml journald: move /dev/log socket to /run 2014-06-04 16:53:58 +02:00
systemd-localed.service.xml build-sys: create Makefile-man.am automatically 2013-02-06 23:16:16 -05:00
systemd-logind.service.xml man: document machinectl and systemd-machined 2013-07-06 22:23:31 -04:00
systemd-machine-id-setup.xml machine-id-setup: use path_kill_slashes and modernizations 2014-03-14 09:31:34 -04:00
systemd-machined.service.xml man: fix typo in documentation of systemd-machined 2013-08-04 21:47:14 -04:00
systemd-modules-load.service.xml man: remove "wine" from unrelated man pages 2013-08-15 18:07:47 +02:00
systemd-networkd-wait-online.service.xml doc: comma placement corrections and word order 2014-05-07 20:13:27 -04:00
systemd-networkd.service.xml resolved: add daemon to manage resolv.conf 2014-05-19 18:14:56 +02:00
systemd-notify.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-nspawn.xml os-release: define /usr/lib/os-release as fallback for /etc/os-release 2014-06-13 20:11:59 +02:00
systemd-path.xml path: add new "systemd-path" utility for querying paths described in file-hierarchy(7) 2014-07-02 12:23:36 +02:00
systemd-quotacheck.service.xml build-sys: create Makefile-man.am automatically 2013-02-06 23:16:16 -05:00
systemd-random-seed.service.xml fix lingering references to /var/lib/{backlight,random-seed} 2013-10-02 07:51:06 -04:00
systemd-readahead-replay.service.xml man: readahead: fix cmdline switch inconsistency between readahead.c and docs 2014-05-16 17:13:03 +02:00
systemd-remount-fs.service.xml man: add various filenames to the index 2013-05-03 01:00:42 -04:00
systemd-resolved.service.xml man: untabify systemd-resolved.service.xml 2014-06-22 12:26:09 -04:00
systemd-rfkill@.service.xml man: fix typos in backlight/rfkill page 2013-10-19 12:33:47 +02:00
systemd-run.xml doc: comma placement corrections and word order 2014-05-07 20:13:27 -04:00
systemd-shutdownd.service.xml
systemd-sleep.conf.xml man: multiple sleep modes are to be separated by whitespace, not commas 2014-03-11 05:24:22 +01:00
systemd-socket-proxyd.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-suspend.service.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-sysctl.service.xml man: remove "wine" from unrelated man pages 2013-08-15 18:07:47 +02:00
systemd-system-update-generator.xml
systemd-system.conf.xml cgroups: simplify CPUQuota= logic 2014-05-22 11:53:12 +09:00
systemd-sysusers.xml man: document the sysusers tool 2014-06-29 22:27:07 +02:00
systemd-timedated.service.xml man: improve grammar and word formatting in numerous man pages 2013-07-02 23:06:22 -04:00
systemd-timesyncd.service.xml timesyncd: add unit and man page 2014-04-29 09:51:53 +02:00
systemd-tmpfiles.xml tmpfiles: add --root option to operate on an alternate fs tree 2014-03-14 09:31:34 -04:00
systemd-tty-ask-password-agent.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-udevd.service.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
systemd-update-done.service.xml man: document systemd-update-done.service 2014-07-01 00:16:48 +02:00
systemd-update-utmp.service.xml doc: typographical fine tuning 2014-05-06 23:05:39 +02:00
systemd-user-sessions.service.xml build-sys: create Makefile-man.am automatically 2013-02-06 23:16:16 -05:00
systemd-vconsole-setup.service.xml build-sys: create Makefile-man.am automatically 2013-02-06 23:16:16 -05:00
systemd.automount.xml man: wording and grammar updates 2013-09-12 22:09:57 +02:00
systemd.device.xml man: grammar and wording improvements 2013-12-25 22:53:46 -05:00
systemd.exec.xml doc: grammatical corrections 2014-06-28 00:06:30 -04:00
systemd.journal-fields.xml coredump: coredumpctl is so useful now, make it a first-class citizen 2014-06-19 13:46:01 +02:00
systemd.kill.xml doc: update punctuation 2014-02-17 19:03:07 -05:00
systemd.link.xml man: split systemd.network(5) and related into various sections for better readability 2014-06-27 20:50:08 +02:00
systemd.mount.xml man: mention x-initrd.mount option in fstab options list 2014-06-30 18:41:17 -04:00
systemd.netdev.xml networkd: Introduce tun/tap device 2014-07-03 11:00:02 +02:00
systemd.network.xml networkd: send hostname to dhcp server 2014-07-01 22:02:25 +02:00
systemd.path.xml man: wording and grammar updates 2013-09-12 22:09:57 +02:00
systemd.preset.xml man: resolve word omissions 2013-12-25 22:53:45 -05:00
systemd.resource-control.xml man: reword StartupCPUShares= description 2014-05-24 18:50:21 -04:00
systemd.scope.xml man: wording and grammar updates 2013-10-15 08:19:49 -04:00
systemd.service.xml doc: grammatical corrections 2014-06-28 00:06:30 -04:00
systemd.slice.xml man: Searching for an explanation of what a "slice unit" was, found this, felt compelled to send in fixes for the obvious typos 2014-06-10 18:05:58 +02:00
systemd.snapshot.xml man: update scope unit man page a bit 2013-07-19 19:04:17 +02:00
systemd.socket.xml doc: grammatical corrections 2014-06-28 00:06:30 -04:00
systemd.special.xml man: mention x-initrd.mount option in fstab options list 2014-06-30 18:41:17 -04:00
systemd.swap.xml man: improvements to comma placement 2013-12-25 22:53:46 -05:00
systemd.target.xml man: use <literal> not <filename> for suffixes 2013-07-12 01:09:25 -04:00
systemd.time.xml time: support @ syntax for denoting times since the UNIX epoch 1970-1-1 2014-03-25 04:08:16 +01:00
systemd.timer.xml doc: comma placement corrections and word order 2014-05-07 20:13:27 -04:00
systemd.unit.xml man: document ConditionNeedsUpdate= 2014-07-01 01:33:56 +02:00
systemd.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
sysusers.d.xml man: document the sysusers tool 2014-06-29 22:27:07 +02:00
telinit.xml man: xinclude --help/--version/--no-pager 2014-02-20 22:43:27 -05:00
timedatectl.xml man: xinclude --host/--machine 2014-02-20 22:43:27 -05:00
tmpfiles.d.xml doc: typographical improvements and choice of words 2014-06-28 00:06:31 -04:00
udev.xml man: split out systemd.link(5) from udev(7) 2014-02-25 17:04:13 +01:00
udevadm.xml udev: remove seqnum API and all assumptions about seqnums 2014-04-13 17:12:14 -07:00
user-system-options.xml man: xinclude --host/--machine 2014-02-20 22:43:27 -05:00
vconsole.conf.xml man: add various filenames to the index 2013-05-03 01:00:42 -04:00