Home
last modified time | relevance | path

Searched refs:nlmsg_type (Results 1 – 15 of 15) sorted by relevance

/systemd-251/src/libsystemd/sd-netlink/
Dnetlink-message-rtnl.c25 assert_return(rtnl_message_type_is_route(m->hdr->nlmsg_type), -EINVAL); in sd_rtnl_message_route_set_dst_prefixlen()
43 assert_return(rtnl_message_type_is_route(m->hdr->nlmsg_type), -EINVAL); in sd_rtnl_message_route_set_src_prefixlen()
61 assert_return(rtnl_message_type_is_route(m->hdr->nlmsg_type), -EINVAL); in sd_rtnl_message_route_set_scope()
75 assert_return(rtnl_message_type_is_route(m->hdr->nlmsg_type), -EINVAL); in sd_rtnl_message_route_set_flags()
89 assert_return(rtnl_message_type_is_route(m->hdr->nlmsg_type), -EINVAL); in sd_rtnl_message_route_get_flags()
104 assert_return(rtnl_message_type_is_route(m->hdr->nlmsg_type), -EINVAL); in sd_rtnl_message_route_set_table()
118 assert_return(rtnl_message_type_is_route(m->hdr->nlmsg_type), -EINVAL); in sd_rtnl_message_route_get_family()
133 assert_return(rtnl_message_type_is_route(m->hdr->nlmsg_type), -EINVAL); in sd_rtnl_message_route_get_type()
148 assert_return(rtnl_message_type_is_route(m->hdr->nlmsg_type), -EINVAL); in sd_rtnl_message_route_set_type()
162 assert_return(rtnl_message_type_is_route(m->hdr->nlmsg_type), -EINVAL); in sd_rtnl_message_route_get_protocol()
[all …]
Dnetlink-genl.c386 uint16_t nlmsg_type; in sd_genl_message_get_family_name() local
394 r = sd_netlink_message_get_type(m, &nlmsg_type); in sd_genl_message_get_family_name()
398 r = genl_family_get_by_id(nl, nlmsg_type, &family); in sd_genl_message_get_family_name()
408 uint16_t nlmsg_type; in sd_genl_message_get_command() local
419 r = sd_netlink_message_get_type(m, &nlmsg_type); in sd_genl_message_get_command()
423 r = genl_get_type_system_and_header_size(nl, nlmsg_type, NULL, &size); in sd_genl_message_get_command()
Dnetlink-types.h38 const NLType *rtnl_get_type(uint16_t nlmsg_type);
39 const NLType *nfnl_get_type(uint16_t nlmsg_type);
Dnetlink-socket.c334 if (new_msg->nlmsg_type == NLMSG_NOOP) in socket_read_message()
338 if (new_msg->nlmsg_type == NLMSG_DONE) { in socket_read_message()
348 … r = type_system_root_get_type_system_and_header_size(nl, new_msg->nlmsg_type, NULL, &size); in socket_read_message()
352 new_msg->nlmsg_type); in socket_read_message()
Dnetlink-types-nfnl.c189 const NLType *nfnl_get_type(uint16_t nlmsg_type) { in nfnl_get_type() argument
192 subsys = type_system_get_type_system(&nfnl_type_system, nlmsg_type >> 8); in nfnl_get_type()
196 return type_system_get_type(subsys, nlmsg_type & ((1U << 8) - 1)); in nfnl_get_type()
Dnetlink-message.c48 uint16_t nlmsg_type, in message_new_full() argument
76 m->hdr->nlmsg_type = nlmsg_type; in message_new_full()
120 IN_SET(m->hdr->nlmsg_type, in sd_netlink_message_request_dump()
153 *type = m->hdr->nlmsg_type; in sd_netlink_message_get_type()
1327 return m->hdr->nlmsg_type == NLMSG_ERROR; in sd_netlink_message_is_error()
1386 r = type_system_root_get_type_system_and_header_size(nl, m->hdr->nlmsg_type, in sd_netlink_message_rewind()
Dnetlink-util.c187 static int rtnl_update_link_alternative_names(sd_netlink **rtnl, uint16_t nlmsg_type, int ifindex, … in rtnl_update_link_alternative_names() argument
193 assert(IN_SET(nlmsg_type, RTM_NEWLINKPROP, RTM_DELLINKPROP)); in rtnl_update_link_alternative_names()
204 r = sd_rtnl_message_new_link(*rtnl, &message, nlmsg_type, ifindex); in rtnl_update_link_alternative_names()
Dnetlink-internal.h135 uint16_t nlmsg_type,
Dnetlink-types-rtnl.c1230 const NLType *rtnl_get_type(uint16_t nlmsg_type) { in rtnl_get_type() argument
1231 return type_system_get_type(&rtnl_type_system, nlmsg_type); in rtnl_get_type()
/systemd-251/src/systemd/
Dsd-netlink.h156 int sd_rtnl_message_new_route(sd_netlink *nl, sd_netlink_message **ret, uint16_t nlmsg_type, int rt…
173 int sd_rtnl_message_new_nexthop(sd_netlink *rtnl, sd_netlink_message **ret, uint16_t nlmsg_type, in…
179 int sd_rtnl_message_new_neigh(sd_netlink *nl, sd_netlink_message **ret, uint16_t nlmsg_type, int in…
187 int sd_rtnl_message_new_addrlabel(sd_netlink *rtnl, sd_netlink_message **ret, uint16_t nlmsg_type, …
191 …uting_policy_rule(sd_netlink *rtnl, sd_netlink_message **ret, uint16_t nlmsg_type, int ifal_family…
205 …d_rtnl_message_new_traffic_control(sd_netlink *rtnl, sd_netlink_message **ret, uint16_t nlmsg_type,
211 int sd_rtnl_message_new_mdb(sd_netlink *rtnl, sd_netlink_message **ret, uint16_t nlmsg_type, int md…
/systemd-251/src/journal/
Djournald-audit.c450 if (IN_SET(nl->nlmsg_type, NLMSG_NOOP, NLMSG_ERROR)) in server_process_audit_message()
454 if (nl->nlmsg_type < AUDIT_FIRST_USER_MSG && nl->nlmsg_type != AUDIT_USER) in server_process_audit_message()
457 …process_audit_string(s, nl->nlmsg_type, NLMSG_DATA(nl), nl->nlmsg_len - ALIGN(sizeof(struct nlmsgh… in server_process_audit_message()
469 .header.nlmsg_type = AUDIT_SET, in enable_audit()
/systemd-251/src/udev/
Dtest-udev-netlink.c146 uint16_t nlmsg_type; in TEST() local
149 assert_se(sd_netlink_message_get_type(reply_one, &nlmsg_type) >= 0); in TEST()
150 assert_se(nlmsg_type == RTM_NEWLINK); in TEST()
Dudev-netlink.c23 uint16_t nlmsg_type, max_attr; in link_info_get() local
46 r = sd_netlink_message_get_type(reply, &nlmsg_type); in link_info_get()
49 if (nlmsg_type != RTM_NEWLINK) in link_info_get()
/systemd-251/src/basic/linux/
Dnetlink.h46 __u16 nlmsg_type; /* Message content */ member
/systemd-251/src/network/
Dnetworkd-manager.c261 …BPF_STMT(BPF_LD + BPF_H + BPF_ABS, offsetof(struct nlmsghdr, nlmsg_type)), /* A <- message type */ in manager_setup_rtnl_filter()