Searched defs:port (Results 1 - 13 of 13) sorted by relevance

/systemd/src/libsystemd-network/
H A Ddhcp-network.c55 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, offsetof(DHCPPacket, udp.dest)), /* A <- UDP destination port */
56 BPF_JUMP(BPF_JMP + BPF_JEQ + BPF_K, DHCP_PORT_CLIENT, 1, 0), /* UDP destination port == DHCP client port ? */
157 int dhcp_network_bind_udp_socket(be32_t address, uint16_t port) { argument
160 .in.sin_port = htobe16(port),
217 int dhcp_network_send_udp_socket(int s, be32_t address, uint16_t port, argument
221 .in.sin_port = htobe16(port),
H A Dtest-dhcp-client.c206 int dhcp_network_bind_udp_socket(be32_t address, uint16_t port) { argument
216 int dhcp_network_send_udp_socket(int s, be32_t address, uint16_t port, const void *packet, size_t len) { argument
H A Dsd-lldp.c30 #include "lldp-port.h"
59 lldp_port *port; member in struct:sd_lldp
149 lldp_port *port; local
157 port = (lldp_port *) tlv->userdata;
158 lldp = (sd_lldp *) port->userdata;
160 if (lldp->port->status == LLDP_PORT_STATUS_DISABLED) {
161 log_lldp("Port: %s is disabled. Dropping.", lldp->port->ifname);
442 LIST_FOREACH_SAFE(port, p, q, c->ports) {
473 LIST_FOREACH(port, p, c->ports) {
596 assert_return(lldp->port,
[all...]
/systemd/src/network/
H A Dnetworkd-netdev-vxlan.c195 log_syntax(unit, LOG_ERR, filename, line, r, "Failed to extract VXLAN port range, ignoring: %s", rvalue);
204 log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse VXLAN port range '%s'", word);
210 "Failed to parse VXLAN port range '%s'. Port should be greater than 0 and less than 65535.", word);
216 "Failed to parse VXLAN port range '%s'. Port range %u .. %u not valid", word, low, high);
237 uint16_t port; local
245 r = safe_atou16(rvalue, &port);
246 if (r < 0 || port <= 0) {
247 log_syntax(unit, LOG_ERR, filename, line, r, "Failed to parse VXLAN destination port '%s'.", rvalue);
251 v->dest_port = port;
H A Dnetworkctl.c931 _cleanup_free_ char *chassis = NULL, *port = NULL, *cap = NULL, *lldp = NULL; local
965 r = free_and_strdup(&port, b);
995 strna(chassis), strna(port),
1006 "(C) - Customer VLAN, (S) - Service VLAN, (M) - Two-port MAC Relay (TPMR)\n\n");
/systemd/src/libsystemd/sd-daemon/
H A Dsd-daemon.c282 _public_ int sd_is_socket_inet(int fd, int family, int type, int listening, uint16_t port) { argument
308 if (port > 0) {
313 return htons(port) == sockaddr.in.sin_port;
318 return htons(port) == sockaddr.in6.sin6_port;
/systemd/src/resolve/
H A Dresolved-dns-scope.c304 uint16_t port) {
320 sa.in.sin_port = htobe16(port);
324 sa.in6.sin6_port = htobe16(port);
337 sa.in.sin_port = htobe16(port);
341 sa.in6.sin6_port = htobe16(port);
397 int dns_scope_socket_udp(DnsScope *s, DnsServer *server, uint16_t port) { argument
398 return dns_scope_socket(s, SOCK_DGRAM, AF_UNSPEC, NULL, server, port);
401 int dns_scope_socket_tcp(DnsScope *s, int family, const union in_addr_union *address, DnsServer *server, uint16_t port) { argument
402 return dns_scope_socket(s, SOCK_STREAM, family, address, server, port);
298 dns_scope_socket( DnsScope *s, int type, int family, const union in_addr_union *address, DnsServer *server, uint16_t port) argument
H A Dresolve-tool.c628 uint16_t priority, weight, port; local
631 r = sd_bus_message_read(reply, "qqqs", &priority, &weight, &port, &hostname);
643 hostname, port,
H A Dresolved-manager.c799 static int manager_ipv4_send(Manager *m, int fd, int ifindex, const struct in_addr *addr, uint16_t port, DnsPacket *p) { argument
813 assert(port > 0);
820 sa.in.sin_port = htobe16(port),
848 static int manager_ipv6_send(Manager *m, int fd, int ifindex, const struct in6_addr *addr, uint16_t port, DnsPacket *p) { argument
862 assert(port > 0);
869 sa.in6.sin6_port = htobe16(port),
898 int manager_send(Manager *m, int fd, int ifindex, int family, const union in_addr_union *addr, uint16_t port, DnsPacket *p) { argument
902 assert(port > 0);
908 return manager_ipv4_send(m, fd, ifindex, &addr->in, port, p);
910 return manager_ipv6_send(m, fd, ifindex, &addr->in6, port,
[all...]
H A Dresolved-dns-rr.h136 uint16_t port; member in struct:DnsResourceRecord::__anon231::__anon233
/systemd/src/udev/
H A Dudev-builtin-path_id.c101 const char *port; local
114 port = udev_device_get_sysattr_value(fcdev, "port_name");
115 if (port == NULL) {
121 path_prepend(path, "fc-%s-%s", port, lun);
171 struct udev_device *port; local
198 /* The next parent is sas port */
199 port = udev_device_get_parent(target_parent);
200 if (port == NULL) {
205 /* Get port device */
207 "sas_port", udev_device_get_sysname(port));
270 const char *port; local
565 const char *port; local
[all...]
/systemd/src/core/
H A Dservice.c1239 int port; local
1250 port = sockaddr_port(&sa.sa);
1251 if (port < 0)
1252 return port;
1254 if (asprintf(&t, "REMOTE_PORT=%u", port) < 0)
/systemd/src/libsystemd/sd-bus/
H A Dsd-bus.c597 _cleanup_free_ char *host = NULL, *port = NULL, *family = NULL; local
622 r = parse_address_key(p, "port", &port);
637 if (!host || !port)
649 r = getaddrinfo(host, port, &hints, &result);
1323 /* Let's make sure this is not a port of some kind,

Completed in 139 milliseconds