Searched refs:udp (Results 1 - 7 of 7) sorted by relevance

/systemd/src/libsystemd-network/
H A Ddhcp-packet.c104 packet->udp.source = htobe16(source_port);
105 packet->udp.dest = htobe16(destination_port);
107 packet->udp.len = htobe16(len - DHCP_IP_SIZE);
109 packet->ip.check = packet->udp.len;
110 packet->udp.check = dhcp_packet_checksum((uint8_t*)&packet->ip.ttl, len - 8);
156 if (len < hdrlen + be16toh(packet->udp.len)) {
159 hdrlen + be16toh(packet->udp.len));
163 if (be16toh(packet->udp.dest) != DHCP_PORT_CLIENT) {
166 be16toh(packet->udp.dest), DHCP_PORT_CLIENT);
179 if (checksum && packet->udp
[all...]
H A Ddhcp-protocol.h23 #include <netinet/udp.h>
52 struct udphdr udp; member in struct:DHCPPacket
H A Ddhcp6-protocol.h23 #include <netinet/udp.h>
H A Ddhcp-network.c55 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, offsetof(DHCPPacket, udp.dest)), /* A <- UDP destination port */
H A Dtest-dhcp-client.c165 assert_se(discover->udp.source == be16toh(DHCP_PORT_CLIENT));
166 assert_se(discover->udp.dest == be16toh(DHCP_PORT_SERVER));
171 discover->ip.check = discover->udp.len;
/systemd/src/shared/
H A Dfirewall-util.c238 struct xt_udp *udp; local
240 strncpy(m->u.user.name, "udp", sizeof(m->u.user.name));
241 udp = (struct xt_udp*) m->data;
242 udp->dpts[0] = udp->dpts[1] = local_port;
243 udp->spts[0] = 0;
244 udp->spts[1] = 0xFFFF;
270 mr->range[0].min.udp.port = mr->range[0].max.udp.port = htons(remote_port);
/systemd/src/resolve/
H A Dresolved-dns-packet.h23 #include <netinet/udp.h>

Completed in 3800 milliseconds