/systemd-251/src/libsystemd-network/ |
D | dhcp-packet.c | 102 packet->ip.version = IPVERSION; in dhcp_packet_append_ip_headers() 103 packet->ip.ihl = DHCP_IP_SIZE / 4; in dhcp_packet_append_ip_headers() 104 packet->ip.tot_len = htobe16(len); in dhcp_packet_append_ip_headers() 107 packet->ip.tos = ip_service_type; in dhcp_packet_append_ip_headers() 109 packet->ip.tos = IPTOS_CLASS_CS6; in dhcp_packet_append_ip_headers() 111 packet->ip.protocol = IPPROTO_UDP; in dhcp_packet_append_ip_headers() 112 packet->ip.saddr = source_addr; in dhcp_packet_append_ip_headers() 113 packet->ip.daddr = destination_addr; 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() [all …]
|
D | test-dhcp-client.c | 198 assert_se(discover->ip.ttl == IPDEFTTL); in dhcp_network_send_raw_socket() 199 assert_se(discover->ip.protocol == IPPROTO_UDP); in dhcp_network_send_raw_socket() 200 assert_se(discover->ip.saddr == INADDR_ANY); in dhcp_network_send_raw_socket() 201 assert_se(discover->ip.daddr == INADDR_BROADCAST); in dhcp_network_send_raw_socket() 205 ip_check = discover->ip.check; in dhcp_network_send_raw_socket() 207 discover->ip.ttl = 0; in dhcp_network_send_raw_socket() 208 discover->ip.check = discover->udp.len; in dhcp_network_send_raw_socket() 210 udp_check = ~dhcp_packet_checksum((uint8_t*)&discover->ip.ttl, len - 8); in dhcp_network_send_raw_socket() 213 discover->ip.ttl = IPDEFTTL; in dhcp_network_send_raw_socket() 214 discover->ip.check = ip_check; in dhcp_network_send_raw_socket() [all …]
|
D | dhcp-network.c | 32 … BPF_STMT(BPF_LD + BPF_B + BPF_ABS, offsetof(DHCPPacket, ip.protocol)), /* A <- IP protocol */ in _bind_raw_socket() 35 … BPF_STMT(BPF_LD + BPF_B + BPF_ABS, offsetof(DHCPPacket, ip.frag_off)), /* A <- Flags */ in _bind_raw_socket() 39 …BPF_STMT(BPF_LD + BPF_H + BPF_ABS, offsetof(DHCPPacket, ip.frag_off)), /* A <- Flags + Fragment of… in _bind_raw_socket()
|
D | dhcp-protocol.h | 37 struct iphdr ip; member
|
/systemd-251/test/units/ |
D | testsuite-62.sh | 12 ip netns del "ns${i}" || true 13 ip link del "veth${i}" || true 14 ip netns add "ns${i}" 15 ip link add "veth${i}" type veth peer name "veth${i}_" 16 ip link set "veth${i}_" netns "ns${i}" 17 ip -n "ns${i}" link set dev "veth${i}_" up 18 ip -n "ns${i}" link set dev lo up 19 ip -n "ns${i}" addr add "192.168.113."$((4*i+1))/30 dev "veth${i}_" 20 ip link set dev "veth${i}" up 21 ip addr add "192.168.113."$((4*i+2))/30 dev "veth${i}" [all …]
|
D | testsuite-13.sh | 195 ip netns add nspawn_test 197 …_WRITABLE="$3" systemd-nspawn --register=no -D "$_root" "$_netns_opt" /bin/ip a | grep -v -E '^1: … 199 ip netns del nspawn_test
|
D | testsuite-17.02.sh | 45 ip link add hoge type dummy 51 ip link set hoge name foobar
|
/systemd-251/src/shared/ |
D | firewall-util-iptables.c | 49 entry->ip.proto = protocol; in entry_fill_basics() 55 assert(l < sizeof entry->ip.iniface); in entry_fill_basics() 56 assert(l < sizeof entry->ip.iniface_mask); in entry_fill_basics() 58 strcpy(entry->ip.iniface, in_interface); in entry_fill_basics() 59 memset(entry->ip.iniface_mask, 0xFF, l + 1); in entry_fill_basics() 62 entry->ip.src = source->in; in entry_fill_basics() 63 in4_addr_prefixlen_to_netmask(&entry->ip.smsk, source_prefixlen); in entry_fill_basics() 68 assert(l < sizeof entry->ip.outiface); in entry_fill_basics() 69 assert(l < sizeof entry->ip.outiface_mask); in entry_fill_basics() 71 strcpy(entry->ip.outiface, out_interface); in entry_fill_basics() [all …]
|
D | meson.build | 170 'ip-protocol-list.c', 171 'ip-protocol-list.h', 402 generate_ip_protocol_list = find_program('generate-ip-protocol-list.sh') 404 'ip-protocol-list.txt', 405 output : 'ip-protocol-list.txt', 409 fname = 'ip-protocol-from-name.gperf' 417 fname = 'ip-protocol-from-name.h' 430 fname = 'ip-protocol-to-name.h' 431 awkscript = 'ip-protocol-to-name.awk'
|
D | user-record-show.c | 25 const char *hd, *ip, *shell; in user_record_show() local 215 ip = user_record_image_path(hr); in user_record_show() 216 if (ip && !streq_ptr(ip, hd)) in user_record_show() 217 printf(" Image Path: %s\n", ip); in user_record_show()
|
D | pe-header.h | 21 le16_t ip; member
|
/systemd-251/src/home/ |
D | homework-directory.c | 19 const char *ip; in home_setup_directory() local 34 assert_se(ip = user_record_image_path(h)); in home_setup_directory() 36 r = mount_follow_verbose(LOG_ERR, ip, HOME_RUNTIME_WORK_DIR, NULL, MS_BIND, NULL); in home_setup_directory() 114 const char *ip; in home_create_directory_or_subvolume() local 122 assert_se(ip = user_record_image_path(h)); in home_create_directory_or_subvolume() 124 r = tempfn_random(ip, "homework", &d); in home_create_directory_or_subvolume() 228 ip, in home_create_directory_or_subvolume() 249 if (rename(temporary, ip) < 0) in home_create_directory_or_subvolume() 250 return log_error_errno(errno, "Failed to rename %s to %s: %m", temporary, ip); in home_create_directory_or_subvolume()
|
D | homework-fscrypt.c | 290 const char *ip; in home_setup_fscrypt() local 298 assert_se(ip = user_record_image_path(h)); in home_setup_fscrypt() 300 setup->root_fd = open(ip, O_RDONLY|O_CLOEXEC|O_DIRECTORY); in home_setup_fscrypt() 306 return log_error_errno(errno, "Home directory %s is not encrypted.", ip); in home_setup_fscrypt() 311 return log_error_errno(errno, "Failed to acquire encryption policy of %s: %m", ip); in home_setup_fscrypt() 372 r = mount_follow_verbose(LOG_ERR, ip, HOME_RUNTIME_WORK_DIR, NULL, MS_BIND, NULL); in home_setup_fscrypt() 500 const char *ip; in home_create_fscrypt() local 508 assert_se(ip = user_record_image_path(h)); in home_create_fscrypt() 510 r = tempfn_random(ip, "homework", &d); in home_create_fscrypt() 608 ip, in home_create_fscrypt() [all …]
|
D | user-record-util.c | 26 … _cleanup_free_ char *hd = NULL, *un = NULL, *ip = NULL, *rr = NULL, *user_name_and_realm = NULL; in user_record_synthesize() local 74 ip = strdup(image_path); in user_record_synthesize() 75 if (!ip) in user_record_synthesize() 100 free_and_replace(h->image_path, ip); in user_record_synthesize() 285 … _cleanup_free_ char *ip = NULL, *hd = NULL, *ip_auto = NULL, *lc = NULL, *lcm = NULL, *fst = NULL; in user_record_add_binding() local 299 ip = strdup(image_path); in user_record_add_binding() 300 if (!ip) in user_record_add_binding() 376 if (ip) in user_record_add_binding() 377 free_and_replace(h->image_path, ip); in user_record_add_binding() 440 const char *ip; in user_record_test_home_directory() local [all …]
|
D | homework-luks.c | 1146 static int lock_image_fd(int image_fd, const char *ip) { in lock_image_fd() argument 1154 assert(ip); in lock_image_fd() 1167 log_error_errno(errno, "Image file '%s' already locked, can't use.", ip); in lock_image_fd() 1169 log_error_errno(errno, "Failed to lock image file '%s': %m", ip); in lock_image_fd() 1174 log_info("Successfully locked image file '%s'.", ip); in lock_image_fd() 1191 const char *ip; in open_image_file() local 1196 ip = force_image_path ?: user_record_image_path(h); in open_image_file() 1198 image_fd = open(ip, O_RDWR|O_CLOEXEC|O_NOCTTY|O_NONBLOCK); in open_image_file() 1200 return log_error_errno(errno, "Failed to open image file %s: %m", ip); in open_image_file() 1207 "Image file %s is not a regular file or block device: %m", ip); in open_image_file() [all …]
|
D | homework.c | 1408 const char *ip, *hd; in home_remove() local 1432 ip = user_record_image_path(h); in home_remove() 1439 assert(ip); in home_remove() 1441 if (stat(ip, &st) < 0) { in home_remove() 1443 return log_error_errno(errno, "Failed to stat() %s: %m", ip); in home_remove() 1447 if (unlink(ip) < 0) { in home_remove() 1449 … return log_error_errno(errno, "Failed to remove %s: %m", ip); in home_remove() 1455 r = path_extract_directory(ip, &parent); in home_remove() 1457 … log_debug_errno(r, "Failed to determine parent directory of '%s': %m", ip); in home_remove() 1461 … log_debug_errno(r, "Failed to synchronize disk after deleting '%s', ignoring: %m", ip); in home_remove() [all …]
|
/systemd-251/test/test-network-generator-conversion/ |
D | test-02-bridge.input | 1 ip=192.168.0.10::192.168.0.1:255.255.255.0:hogehoge:eth0:off:10.10.10.10:10.10.10.11 2 ip=192.168.0.11::192.168.0.1:255.255.255.0:hogehoge:eth1:off:10.10.10.10:10.10.10.11 3 ip=bridge99:dhcp:1530:00:11:22:33:44:55
|
D | test-01-dhcp.input | 1 ip=dhcp
|
D | test-03-issue-14319.input | 1 root=/dev/nfs nfsroot=10.99.37.240:/srv/netroot,v3,tcp ip=10.99.37.44::10.99.10.1:255.255.0.0::enp3…
|
/systemd-251/src/network/netdev/ |
D | bond.c | 255 union in_addr_union ip; in config_parse_arp_ip_target_address() local 269 r = in_addr_from_string(AF_INET, n, &ip); in config_parse_arp_ip_target_address() 283 r = ordered_set_ensure_put(&b->arp_ip_targets, NULL, UINT32_TO_PTR(ip.in.s_addr)); in config_parse_arp_ip_target_address()
|
/systemd-251/src/resolve/ |
D | resolved-dnstls-openssl.c | 91 const unsigned char *ip; in dnstls_stream_connect_tls() local 92 …ip = server->family == AF_INET ? (const unsigned char*) &server->address.in.s_addr : server->addre… in dnstls_stream_connect_tls() 93 … if (X509_VERIFY_PARAM_set1_ip(v, ip, FAMILY_ADDRESS_SIZE(server->family)) == 0) in dnstls_stream_connect_tls()
|
/systemd-251/test/TEST-13-NSPAWN-SMOKE/ |
D | test.sh | 26 initdir="$workspace/testsuite-13.nc-container" image_install nc ip md5sum
|
/systemd-251/test/test-network/conf/ |
D | 25-l2tp-ip.netdev | 11 EncapsulationType=ip
|
/systemd-251/test/test-execute/ |
D | exec-privatenetwork-yes.service | 6 ExecStart=/bin/sh -x -c '! ip link | grep -E "^[0-9]+: " | grep -Ev ": (lo|(erspan|gre|gretap|ip_vt…
|
/systemd-251/test/ |
D | create-busybox-container | 59 ip link
|