Searched refs:rtattr (Results 1 – 7 of 7) sorted by relevance
/systemd-251/src/basic/linux/ |
D | rtnetlink.h | 202 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))))
|
D | if_addr.h | 68 #define IFA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
|
D | if_link.h | 368 #define IFLA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
|
/systemd-251/src/libsystemd/sd-netlink/ |
D | netlink-util.c | 460 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()
|
D | netlink-message.c | 18 #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()
|
D | netlink-util.h | 141 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/ |
D | networkd-route.c | 1052 …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()
|