Systemd/test/fuzz/fuzz-network-parser
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
..
21-vlan.network
23-active-slave.network
23-bond199.network
23-emit-lldp.network
23-primary-slave.network
23-test1-bond199.network
24-lldp.network
24-search-domain.network
25-address-link-section.network
25-address-section-miscellaneous.network
25-address-section.network
25-fibrule-port-range.network network: rename Protocol= in [RoutingPolicyRule] to IPProtocol= 2018-12-02 06:13:47 +01:00
25-ipv6-address-label-section.network
25-link-section-unmanaged.network
25-neighbor-section.network networkd: Static neighbor support 2018-12-09 16:56:37 -08:00
25-route-section.network
25-route-tcp-window-settings.network
25-route-type.network
25-sysctl.network
26-bridge-slave-interface-1.network networkd: bridge add support to configure multicast_to_unicast 2018-12-03 23:49:46 +05:30
26-bridge-slave-interface-2.network
27-xfrm.network Added support for xfrm interfaces 2019-07-10 23:02:19 +09:00
bridge99.network
configure-without-carrier.network
dhcp-client-anonymize.network
dhcp-client-critical-connection.network
dhcp-client-ipv4-dhcp-settings.network
dhcp-client-ipv4-only-ipv6-disabled.network
dhcp-client-ipv4-only.network
dhcp-client-ipv6-only.network
dhcp-client-ipv6-rapid-commit.network
dhcp-client-listen-port.network
dhcp-client-route-metric.network
dhcp-client-route-table.network
dhcp-client-timezone-router.network
dhcp-client.network
dhcp-server-timezone-router.network
dhcp-server-veth-peer.network
dhcp-server.network
dhcp-v4-server-veth-peer.network
directives.network network: DHCP server Add support to transmit SIP server 2019-09-20 21:22:23 +09:00
github-10639
gretap.network
gretun.network
ip6gretap.network
ip6tnl.network
ipip.network
ipv6-prefix-veth.network
ipv6-prefix.network
ipvlan.network
macvlan.network
macvtap.network
oss-fuzz-11285 fuzz: add a testcase for oss-fuzz#11285 2018-11-08 12:31:02 +09:00
oss-fuzz-11302 fuzz: add testcases of recent issues 2018-11-09 11:45:43 +09:00
oss-fuzz-11314 fuzz: add testcases of recent issues 2018-11-09 11:45:43 +09:00
oss-fuzz-11345 fuzz: add testcase of oss-fuzz#11345 2018-11-11 12:03:52 +09:00
oss-fuzz-13059 tests: shorten the fuzz test case 2019-02-21 12:30:13 +01:00
oss-fuzz-13354 networkd: refuse more than 128 NTP servers 2019-02-27 14:52:33 +01:00
oss-fuzz-13433 networkd: fix memleak when the same NetDev is specified twice 2019-02-27 14:31:28 +01:00
oss-fuzz-13888 fuzz: add testcases for the bug in condition_free_list_type() 2019-03-24 00:35:39 +09:00
oss-fuzz-15678 network: fix memleak 2019-07-10 12:27:48 +02:00
routing-policy-rule.network
sit.network
test-static.network
vti.network
vti6.network
vxlan.network