Home
last modified time | relevance | path

Searched refs:rtattr (Results 1 – 7 of 7) sorted by relevance

/systemd-251/src/basic/linux/
Drtnetlink.h202 struct rtattr { struct
211 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \ argument
212 (rta)->rta_len >= sizeof(struct rtattr) && \
215 (struct rtattr*)(((char*)(rta)) + RTA_ALIGN((rta)->rta_len)))
216 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))
388 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
429 #define RTNH_DATA(rtnh) ((struct rtattr*)(((char*)(rtnh)) + RTNH_LENGTH(0)))
639 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
780 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
Dif_addr.h68 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
Dif_link.h368 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
/systemd-251/src/libsystemd/sd-netlink/
Dnetlink-util.c460 void rtattr_append_attribute_internal(struct rtattr *rta, unsigned short type, const void *data, si… in rtattr_append_attribute_internal()
486 int rtattr_append_attribute(struct rtattr **rta, unsigned short type, const void *data, size_t data… in rtattr_append_attribute()
487 struct rtattr *new_rta, *sub_rta; in rtattr_append_attribute()
507 sub_rta = (struct rtattr *) ((uint8_t *) *rta + RTA_ALIGN((*rta)->rta_len)); in rtattr_append_attribute()
586 … for (struct rtattr *attr = RTNH_DATA(rtnh); RTA_OK(attr, len); attr = RTA_NEXT(attr, len)) { in rtattr_read_nexthop()
Dnetlink-message.c18 #define GET_CONTAINER(m, i) ((struct rtattr*)((uint8_t*)(m)->hdr + (m)->containers[i].offset))
178 struct rtattr *rta; in add_rtattr()
201 rta = (struct rtattr *) ((uint8_t *) m->hdr + m->hdr->nlmsg_len); in add_rtattr()
705 struct rtattr *rta; in netlink_message_read_internal()
723 rta = (struct rtattr*)((uint8_t *) m->hdr + attribute->offset); in netlink_message_read_internal()
1076 struct rtattr *rta; in sd_netlink_message_read_strv()
1136 struct rtattr *rta, in netlink_container_parse()
1361 (struct rtattr*)((uint8_t*) NLMSG_DATA(m->hdr) + hlen), in netlink_message_parse_error()
1396 … (struct rtattr*)((uint8_t*) NLMSG_DATA(m->hdr) + NLMSG_ALIGN(size)), in sd_netlink_message_rewind()
Dnetlink-util.h141 void rtattr_append_attribute_internal(struct rtattr *rta, unsigned short type, const void *data, si…
142 int rtattr_append_attribute(struct rtattr **rta, unsigned short type, const void *data, size_t data…
/systemd-251/src/network/
Dnetworkd-route.c1052 …ne(const Link *link, const Route *route, const MultipathRoute *m, struct rtattr **rta, size_t offs… in append_nexthop_one()
1054 struct rtattr *new_rta; in append_nexthop_one()
1098 _cleanup_free_ struct rtattr *rta = NULL; in append_nexthops()
1111 rta = new(struct rtattr, 1); in append_nexthops()
1115 *rta = (struct rtattr) { in append_nexthops()