Searched refs:protocol (Results 1 - 25 of 47) sorted by relevance

12

/systemd/src/shared/
H A Dfirewall-util.h32 int protocol,
42 int protocol,
58 int protocol,
70 int protocol,
55 fw_add_masquerade( bool add, int af, int protocol, const union in_addr_union *source, unsigned source_prefixlen, const char *out_interface, const union in_addr_union *destination, unsigned destination_prefixlen) argument
67 fw_add_local_dnat( bool add, int af, int protocol, const char *in_interface, const union in_addr_union *source, unsigned source_prefixlen, const union in_addr_union *destination, unsigned destination_prefixlen, uint16_t local_port, const union in_addr_union *remote, uint16_t remote_port, const union in_addr_union *previous_remote) argument
H A Dfirewall-util.c42 int protocol,
58 entry->ip.proto = protocol;
84 int protocol,
101 if (protocol != 0 && protocol != IPPROTO_TCP && protocol != IPPROTO_UDP)
116 r = entry_fill_basics(entry, protocol, NULL, source, source_prefixlen, out_interface, destination, destination_prefixlen);
159 int protocol,
185 if (protocol != IPPROTO_TCP && protocol !
40 entry_fill_basics( struct ipt_entry *entry, int protocol, const char *in_interface, const union in_addr_union *source, unsigned source_prefixlen, const char *out_interface, const union in_addr_union *destination, unsigned destination_prefixlen) argument
81 fw_add_masquerade( bool add, int af, int protocol, const union in_addr_union *source, unsigned source_prefixlen, const char *out_interface, const union in_addr_union *destination, unsigned destination_prefixlen) argument
156 fw_add_local_dnat( bool add, int af, int protocol, const char *in_interface, const union in_addr_union *source, unsigned source_prefixlen, const union in_addr_union *destination, unsigned destination_prefixlen, uint16_t local_port, const union in_addr_union *remote, uint16_t remote_port, const union in_addr_union *previous_remote) argument
[all...]
/systemd/src/nspawn/
H A Dnspawn-expose-ports.c38 int protocol; local
46 protocol = IPPROTO_TCP;
48 protocol = IPPROTO_UDP;
51 protocol = IPPROTO_TCP;
75 if (p->protocol == protocol && p->host_port == host_port)
82 p->protocol = protocol;
117 p->protocol,
171 p->protocol,
[all...]
H A Dnspawn-expose-ports.h31 int protocol; member in struct:ExposePort
/systemd/src/resolve/
H A Dresolved-dns-stream.h32 DnsProtocol protocol; member in struct:DnsStream
58 int dns_stream_new(Manager *m, DnsStream **s, DnsProtocol protocol, int fd);
H A Dresolved-dns-scope.c42 int dns_scope_new(Manager *m, DnsScope **ret, Link *l, DnsProtocol protocol, int family) { argument
54 s->protocol = protocol;
58 if (protocol == DNS_PROTOCOL_DNS) {
77 log_debug("New scope on link %s, protocol %s, family %s", l ? l->name : "*", dns_protocol_to_string(protocol), family == AF_UNSPEC ? "*" : af_to_name(family));
110 log_debug("Removing scope on link %s, protocol %s, family %s", s->link ? s->link->name : "*", dns_protocol_to_string(s->protocol), s->family == AF_UNSPEC ? "*" : af_to_name(s->family));
139 if (s->protocol != DNS_PROTOCOL_DNS)
151 if (s->protocol !
[all...]
H A Dresolved-dns-server.h112 void dns_server_packet_received(DnsServer *s, int protocol, DnsServerFeatureLevel level, usec_t rtt, size_t size);
113 void dns_server_packet_lost(DnsServer *s, int protocol, DnsServerFeatureLevel level, usec_t usec);
H A Dresolved-dns-packet.h73 DnsProtocol protocol; member in struct:DnsPacket
159 int dns_packet_new(DnsPacket **p, DnsProtocol protocol, size_t mtu);
160 int dns_packet_new_query(DnsPacket **p, DnsProtocol protocol, size_t mtu, bool dnssec_checking_disabled);
250 static inline uint64_t SD_RESOLVED_FLAGS_MAKE(DnsProtocol protocol, int family, bool authenticated) { argument
253 /* Converts a protocol + family into a flags field as used in queries and responses */
257 switch (protocol) {
H A Dresolved-dns-server.c244 void dns_server_packet_received(DnsServer *s, int protocol, DnsServerFeatureLevel level, usec_t rtt, size_t size) { argument
247 if (protocol == IPPROTO_UDP) {
264 } else if (protocol == IPPROTO_TCP) {
278 if (protocol == IPPROTO_UDP && s->received_udp_packet_max < size)
287 void dns_server_packet_lost(DnsServer *s, int protocol, DnsServerFeatureLevel level, usec_t usec) { argument
292 if (protocol == IPPROTO_UDP)
294 else if (protocol == IPPROTO_TCP)
499 assert(packet->protocol == DNS_PROTOCOL_DNS);
H A Dresolved-dns-query.h129 DnsQuestion* dns_query_question_for_protocol(DnsQuery *q, DnsProtocol protocol);
H A Dresolved-dns-scope.h44 DnsProtocol protocol; member in struct:DnsScope
H A Dresolved-dns-transaction.c254 dns_protocol_to_string(t->scope->protocol),
316 dns_protocol_to_string(t->scope->protocol),
374 assert(t->scope->protocol == DNS_PROTOCOL_DNS);
445 if (t->scope->protocol == DNS_PROTOCOL_LLMNR) {
496 switch (t->scope->protocol) {
545 r = dns_stream_new(t->scope->manager, &t->stream, t->scope->protocol, fd);
577 if (!IN_SET(t->scope->protocol, DNS_PROTOCOL_DNS, DNS_PROTOCOL_LLMNR))
800 switch (t->scope->protocol) {
845 assert_not_reached("Invalid DNS protocol.");
871 switch (t->scope->protocol) {
[all...]
H A Dresolved-dns-stream.c170 if (s->protocol == DNS_PROTOCOL_LLMNR && s->ifindex > 0) {
263 r = dns_packet_new(&s->read_packet, s->protocol, be16toh(s->read_size));
347 int dns_stream_new(Manager *m, DnsStream **ret, DnsProtocol protocol, int fd) { argument
362 s->protocol = protocol;
H A Dresolved-dns-trust-anchor.c274 _cleanup_free_ char *flags = NULL, *protocol = NULL, *algorithm = NULL, *key = NULL; local
280 r = extract_many_words(&p, NULL, 0, &flags, &protocol, &algorithm, &key, NULL);
288 if (!streq(protocol, "3")) {
320 rr->dnskey.protocol = 3;
631 if (anchor->dnskey.protocol != revoked_dnskey->dnskey.protocol)
H A Dresolved-manager.h144 int manager_recv(Manager *m, int fd, DnsProtocol protocol, DnsPacket **ret);
H A Dresolved-dns-packet.c31 int dns_packet_new(DnsPacket **ret, DnsProtocol protocol, size_t mtu) { argument
58 p->protocol = protocol;
75 switch(p->protocol) {
117 int dns_packet_new_query(DnsPacket **ret, DnsProtocol protocol, size_t mtu, bool dnssec_checking_disabled) { argument
123 r = dns_packet_new(&p, protocol, mtu);
210 switch (p->protocol) {
251 switch (p->protocol) {
966 r = dns_packet_append_uint8(p, rr->dnskey.protocol, NULL);
1547 if (p->protocol
[all...]
H A Dresolved-dns-query.c243 if (c->scope->protocol != DNS_PROTOCOL_DNS)
265 question = dns_query_question_for_protocol(c->query, c->scope->protocol);
691 name = dns_question_first_name(dns_query_question_for_protocol(q, s->protocol));
734 name = dns_question_first_name(dns_query_question_for_protocol(q, s->protocol));
867 q->answer_protocol = c->scope->protocol;
1077 DnsQuestion* dns_query_question_for_protocol(DnsQuery *q, DnsProtocol protocol) { argument
1080 switch (protocol) {
/systemd/src/network/
H A Dnetworkd-route.h37 unsigned char protocol; /* RTPROT_* */ member in struct:Route
64 int route_update(Route *route, union in_addr_union *src, unsigned char src_prefixlen, union in_addr_union *gw, union in_addr_union *prefsrc, unsigned char scope, unsigned char protocol);
H A Dnetworkd-ndisc.c126 route->protocol = RTPROT_RA;
177 route->protocol = RTPROT_RA;
H A Dnetworkd-route.c40 route->protocol = RTPROT_UNSPEC;
69 route->protocol = RTPROT_STATIC;
310 unsigned char protocol) {
321 route->protocol = protocol;
345 route->protocol);
442 route->protocol);
304 route_update(Route *route, union in_addr_union *src, unsigned char src_prefixlen, union in_addr_union *gw, union in_addr_union *prefsrc, unsigned char scope, unsigned char protocol) argument
/systemd/src/libsystemd/sd-netlink/
H A Dnetlink-types.h68 int type_system_union_protocol_get_type_system(const NLTypeSystemUnion *type_system_union, const NLTypeSystem **ret, uint16_t protocol);
/systemd/src/udev/
H A Dudev-builtin-usb_id.c254 int protocol = 0; local
290 protocol = set_usb_mass_storage_ifsubtype(type_str, if_subclass, sizeof(type_str)-1);
295 log_debug("%s: if_class %d protocol %d",
296 udev_device_get_syspath(dev_interface), if_class_num, protocol);
310 if (protocol == 6 || protocol == 2) {
/systemd/src/libsystemd-network/
H A Ddhcp-packet.c27 #include "dhcp-protocol.h"
100 packet->ip.protocol = IPPROTO_UDP;
151 if (packet->ip.protocol != IPPROTO_UDP) {
/systemd/hwdb/
H A Dids-update.pl44 my $protocol;
92 $protocol = uc $1;
98 print(OUT "usb:v*p*d*dc" . $class . "dsc" . $subclass . "dp" . $protocol . "*\n");
/systemd/src/basic/
H A Dsocket-util.c221 a->protocol = family;
307 r = netlink_family_to_string_alloc(a->protocol, &sfamily);
386 if (a->protocol != b->protocol)
468 if (a->protocol != 0) {
469 solen = sizeof(b.protocol);
470 if (getsockopt(fd, SOL_SOCKET, SO_PROTOCOL, &b.protocol, &solen) < 0)
473 if (b.protocol != a->protocol)

Completed in 2059 milliseconds

12