Home
last modified time | relevance | path

Searched refs:udp (Results 1 – 8 of 8) sorted by relevance

/systemd-251/src/libsystemd-network/
Ddhcp-packet.c115 packet->udp.source = htobe16(source_port); in dhcp_packet_append_ip_headers()
116 packet->udp.dest = htobe16(destination_port); in dhcp_packet_append_ip_headers()
118 packet->udp.len = htobe16(len - DHCP_IP_SIZE); in dhcp_packet_append_ip_headers()
120 packet->ip.check = packet->udp.len; in dhcp_packet_append_ip_headers()
121 packet->udp.check = dhcp_packet_checksum((uint8_t*)&packet->ip.ttl, len - 8); in dhcp_packet_append_ip_headers()
162 if (len < hdrlen + be16toh(packet->udp.len)) in dhcp_packet_verify_headers()
165 len, hdrlen + be16toh(packet->udp.len)); in dhcp_packet_verify_headers()
167 if (be16toh(packet->udp.dest) != port) in dhcp_packet_verify_headers()
170 be16toh(packet->udp.dest), port); in dhcp_packet_verify_headers()
180 if (checksum && packet->udp.check) { in dhcp_packet_verify_headers()
[all …]
Dtest-dhcp-client.c202 assert_se(discover->udp.source == be16toh(DHCP_PORT_CLIENT)); in dhcp_network_send_raw_socket()
203 assert_se(discover->udp.dest == be16toh(DHCP_PORT_SERVER)); in dhcp_network_send_raw_socket()
208 discover->ip.check = discover->udp.len; in dhcp_network_send_raw_socket()
Ddhcp-protocol.h38 struct udphdr udp; member
Ddhcp-network.c43 …BPF_STMT(BPF_LD + BPF_H + BPF_ABS, offsetof(DHCPPacket, udp.dest)), /* A <- UDP destination por… in _bind_raw_socket()
/systemd-251/src/shared/
Dfirewall-util-iptables.c239 struct xt_udp *udp; in fw_iptables_add_local_dnat() local
242 udp = (struct xt_udp*) m->data; in fw_iptables_add_local_dnat()
243 udp->dpts[0] = udp->dpts[1] = local_port; in fw_iptables_add_local_dnat()
244 udp->spts[0] = 0; in fw_iptables_add_local_dnat()
245 udp->spts[1] = 0xFFFF; in fw_iptables_add_local_dnat()
271 mr->range[0].min.udp.port = mr->range[0].max.udp.port = htobe16(remote_port); in fw_iptables_add_local_dnat()
/systemd-251/test/test-network/conf/
D25-l2tp-udp.netdev13 EncapsulationType=udp
/systemd-251/shell-completion/bash/
Dresolvectl56 [FAMILY]='tcp udp sctp'
/systemd-251/
DNEWS7812 "udp" and "tcp", and configures whether to enable the stub DNS