Home
last modified time | relevance | path

Searched refs:port (Results 1 – 25 of 91) sorted by relevance

1234

/systemd-251/src/shared/
Dsocket-netlink.c43 unsigned port, cid; in socket_address_parse() local
49 r = safe_atou(e+1, &port); in socket_address_parse()
69 .svm_port = port, in socket_address_parse()
75 uint16_t port; in socket_address_parse() local
77 r = parse_ip_port(s, &port); in socket_address_parse()
86 .sin6_port = htobe16(port), in socket_address_parse()
95 .sin_port = htobe16(port), in socket_address_parse()
105 … r = in_addr_port_ifindex_name_from_string_auto(s, &family, &address, &port, &ifindex, NULL); in socket_address_parse()
109 if (port == 0) /* No port, no go. */ in socket_address_parse()
117 .sin_port = htobe16(port), in socket_address_parse()
[all …]
Dbus-message-util.c84 uint16_t port = 0; in bus_message_read_dns_one() local
108 r = sd_bus_message_read(message, "q", &port); in bus_message_read_dns_one()
112 if (IN_SET(port, 53, 853)) in bus_message_read_dns_one()
113 port = 0; in bus_message_read_dns_one()
126 *ret_port = port; in bus_message_read_dns_one()
154 uint16_t port; in bus_message_read_dns_servers() local
157 … r = bus_message_read_dns_one(message, error, extended, &family, &a, &port, &server_name); in bus_message_read_dns_servers()
168 r = in_addr_full_new(family, &a, port, 0, server_name, dns + n); in bus_message_read_dns_servers()
Dethtool-util.c74 DEFINE_STRING_TABLE_LOOKUP(port, NetDevPort);
75 DEFINE_CONFIG_PARSE_ENUM(config_parse_port, port, NetDevPort, "Failed to parse Port setting");
346 *ret_port = ecmd.port; in ethtool_get_link_info()
843 .base.port = ecmd.port, in get_gset()
909 ecmd.port = u->base.port; in set_sset()
928 NetDevPort port, in ethtool_set_glinksettings() argument
941 speed == 0 && duplex < 0 && port < 0 && mdi == ETH_TP_MDI_INVALID) in ethtool_set_glinksettings()
950 if (speed > 0 || duplex >= 0 || port >= 0) { in ethtool_set_glinksettings()
955 port = _NET_DEV_PORT_INVALID; in ethtool_set_glinksettings()
981 if (port >= 0) in ethtool_set_glinksettings()
[all …]
Dethtool-util.h178 NetDevPort port,
189 const char *port_to_string(NetDevPort port) _const_;
190 NetDevPort port_from_string(const char *port) _pure_;
Dsocket-netlink.h34 uint16_t port; member
42 int in_addr_full_new(int family, const union in_addr_union *a, uint16_t port, int ifindex, const ch…
Dfirewall-util-iptables.c269 mr->range[0].min.tcp.port = mr->range[0].max.tcp.port = htobe16(remote_port); 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/src/core/bpf/socket_bind/
Dsocket-bind.bpf.c48 __u16 port, const struct socket_bind_rule *r) { in match_user_port() argument
50 (port >= r->port_min && port < r->port_min + (__u32) r->nr_ports); in match_user_port()
56 __u16 port, in match() argument
60 match_user_port(port, r); in match()
67 __u16 port = (__u16)bpf_ntohs(user_port); in match_rules() local
78 if (match(ctx->user_family, ctx->protocol, port, rule)) in match_rules()
/systemd-251/src/udev/
Dudev-builtin-path_id.c115 const char *port, *sysname; in handle_scsi_fibre_channel() local
127 if (sd_device_get_sysattr_value(fcdev, "port_name", &port) < 0) in handle_scsi_fibre_channel()
131 path_prepend(path, "fc-%s-%s", port, lun); in handle_scsi_fibre_channel()
161 sd_device *targetdev, *target_parent, *port, *expander; in handle_scsi_sas() local
181 if (sd_device_get_parent(target_parent, &port) < 0) in handle_scsi_sas()
183 if (sd_device_get_sysname(port, &sysname) < 0) in handle_scsi_sas()
200 if (sd_device_get_parent(port, &expander) < 0) in handle_scsi_sas()
224 const char *target, *connname, *addr, *port; in handle_scsi_iscsi() local
257 if (sd_device_get_sysattr_value(conndev, "persistent_port", &port) < 0) in handle_scsi_iscsi()
261 path_prepend(path, "ip-%s:%s-iscsi-%s-%s", addr, port, target, lun); in handle_scsi_iscsi()
[all …]
/systemd-251/src/libsystemd-network/
Ddhcp-network.c27 uint16_t port) { in _bind_raw_socket() argument
44 …BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, port, 1, 0), /* UDP destination port == … in _bind_raw_socket()
123 uint16_t port) { in dhcp_network_bind_raw_socket() argument
158 &eth_mac, arp_type, dhcp_hlen, port); in dhcp_network_bind_raw_socket()
161 int dhcp_network_bind_udp_socket(int ifindex, be32_t address, uint16_t port, int ip_service_type) { in dhcp_network_bind_udp_socket() argument
164 .in.sin_port = htobe16(port), in dhcp_network_bind_udp_socket()
191 if (port == DHCP_PORT_SERVER) { in dhcp_network_bind_udp_socket()
237 uint16_t port, in dhcp_network_send_udp_socket() argument
243 .in.sin_port = htobe16(port), in dhcp_network_send_udp_socket()
Ddhcp-internal.h38 uint16_t arp_type, uint16_t port);
39 int dhcp_network_bind_udp_socket(int ifindex, be32_t address, uint16_t port, int ip_service_type);
42 int dhcp_network_send_udp_socket(int s, be32_t address, uint16_t port,
65 int dhcp_packet_verify_headers(DHCPPacket *packet, size_t len, bool checksum, uint16_t port);
Dfuzz-dhcp-client.c19 uint16_t arp_type, uint16_t port) { in dhcp_network_bind_raw_socket() argument
33 int dhcp_network_bind_udp_socket(int ifindex, be32_t address, uint16_t port, int ip_service_type) { in dhcp_network_bind_udp_socket() argument
43 int dhcp_network_send_udp_socket(int s, be32_t address, uint16_t port, const void *packet, size_t l… in dhcp_network_send_udp_socket() argument
Ddhcp-packet.c128 int dhcp_packet_verify_headers(DHCPPacket *packet, size_t len, bool checksum, uint16_t port) { in dhcp_packet_verify_headers() argument
167 if (be16toh(packet->udp.dest) != port) in dhcp_packet_verify_headers()
170 be16toh(packet->udp.dest), port); in dhcp_packet_verify_headers()
/systemd-251/src/nspawn/
Dnspawn-expose-ports.c21 ExposePort *port; in expose_port_parse() local
61 port = new(ExposePort, 1); in expose_port_parse()
62 if (!port) in expose_port_parse()
65 *port = (ExposePort) { in expose_port_parse()
71 LIST_PREPEND(ports, *l, port); in expose_port_parse()
/systemd-251/src/resolve/
Dresolved-dns-stub.h26 uint16_t port; member
41 return p->port > 0 ? p->port : 53; in dns_stub_listener_extra_port()
Dresolved-conf.c28 uint16_t port; in manager_add_dns_server_by_string() local
34 …r = in_addr_port_ifindex_name_from_string_auto(word, &family, &address, &port, &ifindex, &server_n… in manager_add_dns_server_by_string()
44 if (IN_SET(port, 53, 853)) in manager_add_dns_server_by_string()
45 port = 0; in manager_add_dns_server_by_string()
48 …s = dns_server_find(manager_get_first_dns_server(m, type), family, &address, port, ifindex, server… in manager_add_dns_server_by_string()
56 return dns_server_new(m, NULL, type, NULL, family, &address, port, ifindex, server_name); in manager_add_dns_server_by_string()
449 …addr_port_ifindex_name_from_string_auto(p, &stub->family, &stub->address, &stub->port, NULL, NULL); in config_parse_dns_stub_listener_extra()
Dresolved-dns-server.c29 uint16_t port, in dns_server_new() argument
67 .port = port, in dns_server_new()
664 if (s->port > 0) in dns_server_port()
665 return s->port; in dns_server_port()
686 server->port, in dns_server_string_full()
751 siphash24_compress(&s->port, sizeof(s->port), state); in dns_server_hash_func()
767 r = CMP(x->port, y->port); in dns_server_compare_func()
818 …nsServer *first, int family, const union in_addr_union *in_addr, uint16_t port, int ifindex, const… in dns_server_find() argument
822 s->port == port && in dns_server_find()
Dresolved-dns-server.h61 uint16_t port; member
111 uint16_t port,
144 …nsServer *first, int family, const union in_addr_union *in_addr, uint16_t port, int ifindex, const…
/systemd-251/hwdb.d/
Dpci.ids753 # 8 Internal and 8 External port channel 9400 HBA
757 # Channel 16 internal port HBA
759 # Channel 16 external port HBA
770 # 9400 Channel 8 external port HBA
784 # SAS 9305 16 internal port HBA
786 # SAS 9305 24 internal port HBA
794 # 9305 16 external port SAS HBA
802 # 9405W 16 internal port channel HBA
804 # 9405W 8 internal and 8 external port channel HBA
807 # 9405W 16 external port Channel HBA
[all …]
/systemd-251/src/network/netdev/
Dmacsec.c513 if (v->port > 0) { in netdev_macsec_fill_message_create()
514 r = sd_netlink_message_append_u16(m, IFLA_MACSEC_PORT, v->port); in netdev_macsec_fill_message_create()
547 uint16_t port; in config_parse_macsec_port() local
560 dest = &s->port; in config_parse_macsec_port()
566 dest = &c->sci.port; in config_parse_macsec_port()
574 dest = &b->sci.port; in config_parse_macsec_port()
577 r = parse_ip_port(rvalue, &port); in config_parse_macsec_port()
585 unaligned_write_be16(dest, port); in config_parse_macsec_port()
1013 if (c->sci.port == 0) in macsec_receive_channel_verify()
1095 if (a->sci.port == 0) in macsec_receive_association_verify()
Dmacsec.h23 be16_t port; member
67 uint16_t port; member
/systemd-251/src/basic/
Din-addr-util.h79 int in_addr_port_ifindex_name_to_string(int family, const union in_addr_union *u, uint16_t port, in…
83 static inline int in_addr_port_to_string(int family, const union in_addr_union *u, uint16_t port, c… in in_addr_port_to_string() argument
84 return in_addr_port_ifindex_name_to_string(family, u, port, 0, NULL, ret); in in_addr_port_to_string()
Din-addr-util.c488 int in_addr_port_ifindex_name_to_string(int family, const union in_addr_union *u, uint16_t port, in… in in_addr_port_ifindex_name_to_string() argument
512 if (port == 0 && ifindex == 0 && isempty(server_name)) { in in_addr_port_ifindex_name_to_string()
520 if (port > 0) { in in_addr_port_ifindex_name_to_string()
523 … r = asprintf(&x, "[%s]:%"PRIu16"%%%i%s%s", ip_str, port, ifindex, separator, server_name); in in_addr_port_ifindex_name_to_string()
525 … r = asprintf(&x, "[%s]:%"PRIu16"%s%s", ip_str, port, separator, server_name); in in_addr_port_ifindex_name_to_string()
527 r = asprintf(&x, "%s:%"PRIu16"%s%s", ip_str, port, separator, server_name); in in_addr_port_ifindex_name_to_string()
/systemd-251/src/test/
Dtest-socket-netlink.c295 …ddr_port_ifindex_name_from_string_auto_one(const char *str, int family, uint16_t port, int ifindex, in test_in_addr_port_ifindex_name_from_string_auto_one() argument
308 assert_se(port == p); in test_in_addr_port_ifindex_name_from_string_auto_one()
315 if (port > 0) in test_in_addr_port_ifindex_name_from_string_auto_one()
333 assert_se(port == p); in test_in_addr_port_ifindex_name_from_string_auto_one()
345 assert_se(port == p); in test_in_addr_port_ifindex_name_from_string_auto_one()
/systemd-251/rules.d/
D60-serial.rules17 ENV{ID_PATH}=="?*", ENV{.ID_PORT}=="?*", SYMLINK+="serial/by-path/$env{ID_PATH}-port$env{.ID_PORT}"
24 …YMLINK+="serial/by-id/$env{ID_BUS}-$env{ID_SERIAL}-if$env{ID_USB_INTERFACE_NUM}-port$env{.ID_PORT}"
/systemd-251/test/fuzz/fuzz-udev-rules/
D60-serial.rules17 ENV{ID_PATH}=="?*", ENV{.ID_PORT}=="?*", SYMLINK+="serial/by-path/$env{ID_PATH}-port$env{.ID_PORT}"
24 …YMLINK+="serial/by-id/$env{ID_BUS}-$env{ID_SERIAL}-if$env{ID_USB_INTERFACE_NUM}-port$env{.ID_PORT}"

1234