Systemd/src
Susant Sahani 3392392518 sd-network: DHCPv6 - add support to send userclass option
sd-network: DHCPv6 - add support to send userclass option

21.15.  User Class Option

   The User Class option is used by a client to identify the type or
   category of users or applications it represents.

   The format of the User Class option is:

       0                   1                   2                   3
       0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      |       OPTION_USER_CLASS       |          option-len           |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      .                                                               .
      .                          user-class-data                      .
      .                                                               .
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

                    Figure 26: User Class Option Format

      option-code          OPTION_USER_CLASS (15).

      option-len           Length of user-class-data field.

      user-class-data      The user classes carried by the client.  The
                           length, in octets, is specified by
                           option-len.

The information contained in the data area of this option is
   contained in one or more opaque fields that represent the user class
   or classes of which the client is a member.  A server selects
   configuration information for the client based on the classes
   identified in this option.  For example, the User Class option can be
   used to configure all clients of people in the accounting department
   with a different printer than clients of people in the marketing
   department.  The user class information carried in this option MUST
   be configurable on the client.

   The data area of the User Class option MUST contain one or more
   instances of user-class-data information.  Each instance of
   user-class-data is formatted as follows:

      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-...-+-+-+-+-+-+-+
      |        user-class-len         |          opaque-data          |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-...-+-+-+-+-+-+-+

                Figure 27: Format of user-class-data Field
2020-05-19 11:44:51 +02:00
..
ac-power
activate util-lib: move things that parse ifnames to shared/ 2020-01-11 12:07:28 +01:00
analyze condition: add ConditionEnvironment= 2020-05-15 16:05:33 +02:00
ask-password
backlight
basic proc-cmdline: add some explanatory comments 2020-05-18 20:17:57 +02:00
binfmt binfmt: also unregister binfmt entries from unit 2020-04-23 17:14:45 +02:00
boot tree-wide: fix spelling errors 2020-04-21 23:21:08 +02:00
busctl basic/set: let set_put_strdup() create the set with string hash ops 2020-05-06 16:54:06 +02:00
cgls
cgroups-agent
cgtop
core core: allow overriding the system hostname with systemd.hostname= on the kernel command line 2020-05-18 20:20:50 +02:00
coredump tree-wide: make sure our control buffers are properly aligned 2020-05-07 14:39:44 +02:00
cryptsetup tree-wide: spellcheck using codespell 2020-04-16 18:00:40 +02:00
debug-generator
delta
detect-virt
dissect dissect: add --fsck= option to systemd-dissect tool 2020-01-29 19:29:52 +01:00
environment-d-generator sd-path: rename the two functions 2020-03-27 20:12:44 +01:00
escape
firstboot tree-wide: port various bits over to locale_is_installed() 2020-05-07 17:24:22 +02:00
fsck
fstab-generator Merge pull request #15265 from fbuihuu/mount-fixes 2020-05-15 11:13:45 +02:00
fuzz ci: turn off FuzzBuzz 2020-03-30 14:57:22 +02:00
getty-generator
gpt-auto-generator units: introduce blockdev@.target for properly ordering mounts/swaps against cryptsetup 2020-01-21 20:23:13 +01:00
hibernate-resume Fix generator name in hibernate-resume-generator's drop-in 2020-02-04 14:49:04 +09:00
home Merge pull request #15794 from poettering/pam-sudo-fixes-part2 2020-05-19 10:09:14 +02:00
hostname hostnamed: call our destructor _destroy(), not _clear() 2020-05-18 21:12:37 +02:00
hwdb
id128 id128: change table header from "uuid" to just "id" 2020-01-29 15:32:26 +01:00
import tree-wide: Replace assert() by assert_se() when there is side effect 2020-05-10 09:23:12 +02:00
initctl tree-wide: use structured initialization at various places 2020-04-24 07:44:42 +02:00
journal journal-send: Fix the limitation of LINE_MAX 2020-05-14 17:15:34 +00:00
journal-remote journal: fix dropping first record during upload to remote journal 2020-05-19 07:58:59 +02:00
kernel-install Add meson build option to prevent building kernel-install 2020-04-14 20:22:32 +02:00
libsystemd Merge pull request #15804 from poettering/hostnamed-instant-part1 2020-05-18 15:26:24 +02:00
libsystemd-network sd-network: DHCPv6 - add support to send userclass option 2020-05-19 11:44:51 +02:00
libudev tree-wide: fix spelling errors 2020-04-21 23:21:08 +02:00
locale Merge pull request #15651 from poettering/newlocale-check 2020-05-08 11:31:34 +02:00
login pam_systemd/pam_systemd_home: rework how we cache user records 2020-05-12 17:38:32 +02:00
machine machine: switch to BusLocator-oriented helpers 2020-05-07 08:46:43 -07:00
machine-id-setup
modules-load
mount mount: switch to BusLocator-oriented helpers 2020-05-07 08:46:44 -07:00
network Merge pull request #15166 from ssahani/networkctl-ipvlan 2020-05-19 09:29:45 +02:00
notify Introduce sd_notify_barrier 2020-05-01 03:22:47 +05:30
nspawn tree-wide: add size limits for tmpfs mounts 2020-05-13 00:37:18 +02:00
nss-myhostname tree-wide: use "hostname" spelling everywhere 2020-04-21 16:58:04 +02:00
nss-mymachines nss-mymachines: switch to BusLocator-oriented helpers 2020-05-07 08:46:44 -07:00
nss-resolve nss-resolve: switch to BusLocator-oriented helpers 2020-05-07 08:46:44 -07:00
nss-systemd nss-systemd: don't synthesize root/nobody when iterating 2020-04-23 23:07:08 +02:00
partition test: update tests to use new repart features 2020-05-14 23:59:23 +02:00
path path: log at debug level when we can't query a variable 2020-03-27 20:12:45 +01:00
portable Merge pull request #15623 from poettering/cmsg-cleanup 2020-05-08 11:05:06 +02:00
pstore
quotacheck
random-seed random-seed: add missing header for GRND_NONBLOCK (#14988) 2020-03-02 14:48:21 +09:00
rc-local-generator
remount-fs
reply-password
resolve Merge pull request #15804 from poettering/hostnamed-instant-part1 2020-05-18 15:26:24 +02:00
rfkill
run run: switch to BusLocator-oriented helpers 2020-05-07 08:46:44 -07:00
run-generator
shared Merge pull request #15166 from ssahani/networkctl-ipvlan 2020-05-19 09:29:45 +02:00
shutdown shutdown: fix spacing in shutdown error message 2020-05-05 10:23:47 +02:00
sleep sleep: automatically lock all home directories when suspending 2020-01-28 22:36:56 +01:00
socket-proxy socket-proxy: Support exit-on-idle 2020-05-06 13:58:57 +02:00
stdio-bridge
sulogin-shell
sysctl sysctl: check correct error code 2020-05-14 20:49:21 +02:00
system-update-generator
systemctl systemctl: Check clean_or_freeze_unit(): Add assert if unknown method 2020-05-13 22:56:42 +02:00
systemd sd-network: DHCPv6 - add support to send userclass option 2020-05-19 11:44:51 +02:00
sysusers Merge pull request #15718 from poettering/tmpfiles-offline 2020-05-08 11:22:19 +02:00
sysv-generator
test condition: add ConditionEnvironment= 2020-05-15 16:05:33 +02:00
time-wait-sync
timedate timedate: switch to BusLocator-oriented helpers 2020-05-07 08:46:44 -07:00
timesync tree-wide: make sure our control buffers are properly aligned 2020-05-07 14:39:44 +02:00
tmpfiles Merge pull request #15718 from poettering/tmpfiles-offline 2020-05-08 11:22:19 +02:00
tty-ask-password-agent tree-wide: use the return value from sockaddr_un_set_path() 2020-03-02 15:55:44 +01:00
udev Merge pull request #15817 from poettering/more-conditions 2020-05-15 20:25:34 +02:00
update-done
update-utmp Remove unneded {}s 2020-04-13 09:31:49 +02:00
user-sessions
userdb userdbctl: make --help fit in 80 columns 2020-04-28 09:56:24 +02:00
vconsole
veritysetup id128: introduce ID128_UUID_STRING_MAX for sizing UUID buffers 2019-12-10 11:56:18 +01:00
version tree-wide: spellcheck using codespell 2020-04-16 18:00:40 +02:00
volatile-root tree-wide: add size limits for tmpfs mounts 2020-05-13 00:37:18 +02:00