Searched refs:ip (Results 1 - 16 of 16) sorted by relevance

/systemd/src/libsystemd-network/
H A Ddhcp-packet.c94 packet->ip.version = IPVERSION;
95 packet->ip.ihl = DHCP_IP_SIZE / 4;
96 packet->ip.tot_len = htobe16(len);
98 packet->ip.tos = IPTOS_CLASS_CS6;
100 packet->ip.protocol = IPPROTO_UDP;
101 packet->ip.saddr = source_addr;
102 packet->ip.daddr = destination_addr;
109 packet->ip.check = packet->udp.len;
110 packet->udp.check = dhcp_packet_checksum((uint8_t*)&packet->ip.ttl, len - 8);
112 packet->ip
[all...]
H A Ddhcp-protocol.h22 #include <netinet/ip.h>
51 struct iphdr ip; member in struct:DHCPPacket
H A Dtest-dhcp-client.c161 assert_se(discover->ip.ttl == IPDEFTTL);
162 assert_se(discover->ip.protocol == IPPROTO_UDP);
163 assert_se(discover->ip.saddr == INADDR_ANY);
164 assert_se(discover->ip.daddr == INADDR_BROADCAST);
168 ip_check = discover->ip.check;
170 discover->ip.ttl = 0;
171 discover->ip.check = discover->udp.len;
173 udp_check = ~dhcp_packet_checksum((uint8_t*)&discover->ip.ttl, len - 8);
176 discover->ip.ttl = IPDEFTTL;
177 discover->ip
[all...]
H A Ddhcp-network.c44 BPF_STMT(BPF_LD + BPF_B + BPF_ABS, offsetof(DHCPPacket, ip.protocol)), /* A <- IP protocol */
47 BPF_STMT(BPF_LD + BPF_B + BPF_ABS, offsetof(DHCPPacket, ip.frag_off)), /* A <- Flags */
51 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, offsetof(DHCPPacket, ip.frag_off)), /* A <- Flags + Fragment offset */
/systemd/src/shared/
H A Dfirewall-util.c58 entry->ip.proto = protocol;
61 strcpy(entry->ip.iniface, in_interface);
62 memset(entry->ip.iniface_mask, 0xFF, strlen(in_interface)+1);
65 entry->ip.src = source->in;
66 in_addr_prefixlen_to_netmask(&entry->ip.smsk, source_prefixlen);
70 strcpy(entry->ip.outiface, out_interface);
71 memset(entry->ip.outiface_mask, 0xFF, strlen(out_interface)+1);
74 entry->ip.dst = destination->in;
75 in_addr_prefixlen_to_netmask(&entry->ip.dmsk, destination_prefixlen);
302 entry->ip
[all...]
/systemd/src/test/
H A Dtest-netlink-manual.c22 #include <linux/ip.h>
/systemd/src/boot/efi/
H A Dpefile.c32 UINT16 ip; member in struct:DosFileHeader
/systemd/src/network/
H A Dnetworkd-netdev-bond.h104 union in_addr_union ip; member in struct:ArpIpTarget
H A Dnetworkd-netdev-bond.c316 r = sd_netlink_message_append_u32(m, i++, target->ip.in.s_addr);
355 log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse Bond ARP ip target address, ignoring assignment: %s", rvalue);
366 r = in_addr_from_string_auto(n, &f, &buffer->ip);
368 log_syntax(unit, LOG_ERR, filename, line, r, "Bond ARP ip target address is invalid, ignoring assignment: %s", n);
373 log_syntax(unit, LOG_ERR, filename, line, 0, "Bond ARP ip target address is invalid, ignoring assignment: %s", n);
385 "More than the maximum number of kernel-supported ARP ip targets specified: %d > %d",
H A Dnetworkd-netdev-tunnel.c22 #include <linux/ip.h>
/systemd/src/resolve/
H A Dtest-dnssec-complex.c20 #include <netinet/ip.h>
H A Dresolved-dns-packet.h22 #include <netinet/ip.h>
H A Dresolved-bus.c348 _cleanup_free_ char *ip = NULL; local
350 in_addr_to_string(q->request_family, &q->request_address, &ip);
351 r = sd_bus_reply_method_errorf(q->request, BUS_ERROR_NO_SUCH_RR, "Address '%s' does not have any RR of requested type", strna(ip));
/systemd/src/libsystemd/sd-netlink/
H A Dnetlink-types.c29 #include <linux/ip.h>
/systemd/src/basic/
H A Dsocket-util.c25 #include <netinet/ip.h>
/systemd/src/timesync/
H A Dtimesyncd-manager.c23 #include <netinet/ip.h>

Completed in 65 milliseconds