1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-22 13:33:56 +03:00
systemd-stable/test/fuzz
Susant Sahani 299d578f7f network: DHCP server Add support to transmit SIP server
1. DHCP server trasmit
2. Client parses and saves in leases
Implements http://www.rfc-editor.org/rfc/rfc3361.txt

```
Frame 134: 348 bytes on wire (2784 bits), 348 bytes captured (2784 bits) on interface 0
Ethernet II, Src: 42:65:85:d6:4e:32 (42:65:85:d6:4e:32), Dst: 1e:04:f8:b8:2f:d4 (1e:04:f8:b8:2f:d4)
Internet Protocol Version 4, Src: 192.168.5.1, Dst: 192.168.5.11
User Datagram Protocol, Src Port: 67, Dst Port: 68
Dynamic Host Configuration Protocol (ACK)
    Message type: Boot Reply (2)
    Hardware type: Ethernet (0x01)
    Hardware address length: 6
    Hops: 0
    Transaction ID: 0x7cc87cb4
    Seconds elapsed: 0
    Bootp flags: 0x0000 (Unicast)
    Client IP address: 0.0.0.0
    Your (client) IP address: 192.168.5.11
    Next server IP address: 0.0.0.0
    Relay agent IP address: 0.0.0.0
    Client MAC address: 1e:04:f8:b8:2f:d4 (1e:04:f8:b8:2f:d4)
    Client hardware address padding: 00000000000000000000
    Server host name not given
    Boot file name not given
    Magic cookie: DHCP
    Option: (53) DHCP Message Type (ACK)
        Length: 1
        DHCP: ACK (5)
    Option: (51) IP Address Lease Time
        Length: 4
        IP Address Lease Time: (3600s) 1 hour
    Option: (1) Subnet Mask (255.255.255.0)
        Length: 4
        Subnet Mask: 255.255.255.0
    Option: (3) Router
        Length: 4
        Router: 192.168.5.1
    Option: (6) Domain Name Server
        Length: 4
        Domain Name Server: 192.168.5.1
    Option: (42) Network Time Protocol Servers
        Length: 4
        Network Time Protocol Server: 192.168.1.1
    Option: (120) SIP Servers <=====here
        Length: 9
        SIP Server Encoding: IPv4 Address (1)
        SIP Server Address: 192.168.1.1
        SIP Server Address: 192.168.5.2
    Option: (101) TCode
        Length: 13
        TZ TCode: Europe/Berlin
    Option: (54) DHCP Server Identifier (192.168.5.1)
        Length: 4
        DHCP Server Identifier: 192.168.5.1
    Option: (255) End
        Option End: 255
```

```
cat /run/systemd/netif/state                                                                                                   ✔    3148  16:40:51
OPER_STATE=routable
CARRIER_STATE=carrier
ADDRESS_STATE=routable
DNS=192.168.94.2 192.168.5.1
NTP=192.168.5.1
SIP=192.168.1.1 192.168.5.2

```

aa
2019-09-20 21:22:23 +09:00
..
fuzz-bus-message bus-message: validate signature in gvariant messages 2019-04-11 14:01:38 +02:00
fuzz-calendarspec calendarspec: fix possible integer overflow 2019-04-08 00:50:07 +09:00
fuzz-catalog catalog: reject entries where the language is too short early 2018-11-29 13:41:40 +09:00
fuzz-dhcp6-client dhcp6: use unaligned_read_be32() 2019-09-20 08:04:15 +00:00
fuzz-dhcp-server fuzz: rename "fuzz-corpus" directory to just "fuzz" 2018-10-02 09:41:25 +02:00
fuzz-dns-packet travis: turn on nonnull-attribute on Fuzzit 2019-06-15 23:12:24 +02:00
fuzz-env-file fuzz: add env-file fuzzer 2019-03-11 14:11:28 +01:00
fuzz-fido-id-desc udev: Add id program and rule for FIDO security tokens 2019-09-07 02:23:58 +09:00
fuzz-journal-remote basic/utf8: do not read past end of string when looking for a multi-byte character 2019-02-26 12:37:40 +01:00
fuzz-journald-audit journald: check whether sscanf has changed the value corresponding to %n 2018-11-17 11:25:19 +01:00
fuzz-journald-kmsg tests: add a reproducer for a heap-buffer-overflow fixed in 937b117137 2018-11-16 08:45:16 +01:00
fuzz-journald-native-fd tests: add a fuzzer for server_process_native_file 2018-11-23 17:29:59 +01:00
fuzz-journald-stream tests: add a fuzzer for journald streams 2018-11-20 03:03:32 +01:00
fuzz-journald-syslog fuzz: unify the "fuzz-regressions" directory with the main corpus 2018-10-02 09:41:25 +02:00
fuzz-json fuzz: add testcase of already fixed issue 10908 2018-11-12 01:17:45 +09:00
fuzz-link-parser network,udev: add Property= setting in [Match] section 2019-07-01 01:24:42 +09:00
fuzz-lldp tests: add an lldp fuzzer 2018-10-29 15:24:16 +00:00
fuzz-ndisc-rs fuzz: add testcase of oss-fuzz#10734 2018-11-12 02:04:35 +09:00
fuzz-netdev-parser network: rename IGMPVersion= -> MulticastIGMPVersion= 2019-07-26 11:00:56 +09:00
fuzz-network-parser network: DHCP server Add support to transmit SIP server 2019-09-20 21:22:23 +09:00
fuzz-nspawn-oci nspawn-oci: fix double free 2019-03-22 17:39:12 +01:00
fuzz-nspawn-settings fuzz: add testcase for oss-fuzz#13691 2019-03-15 23:54:30 +09:00
fuzz-udev-database fuzz: add a sample for fuzz-udev-database 2019-02-26 13:28:30 +09:00
fuzz-udev-rules test: add testcase for oss-fuzz#12980 2019-02-13 04:16:30 +09:00
fuzz-unit-file core: rename ShutdownWatchdogSec to RebootWatchdogSec 2019-07-23 20:29:03 +01:00
fuzz-varlink shared/varlink: add missing setting of output_buffer_allocated 2019-05-17 15:09:32 +02:00
.gitattributes fuzz: rename "fuzz-corpus" directory to just "fuzz" 2018-10-02 09:41:25 +02:00
meson.build meson: scope more git invocations with current_source_dir() 2019-03-12 15:01:47 +01:00