Lines Matching refs:rtattr

56 extern struct rtattr *addattr_nest(struct nlmsghdr *n, int maxlen, int type);
57 extern int addattr_nest_end(struct nlmsghdr *n, struct rtattr *nest);
58 extern struct rtattr *addattr_nest_compat(struct nlmsghdr *n, int maxlen, int type, const void *data, int len);
59 extern int addattr_nest_compat_end(struct nlmsghdr *n, struct rtattr *nest);
60 extern int rta_addattr32(struct rtattr *rta, int maxlen, int type, __u32 data);
61 extern int rta_addattr_l(struct rtattr *rta, int maxlen, int type, const void *data, int alen);
63 extern int parse_rtattr(struct rtattr *tb[], int max, struct rtattr *rta, int len);
64 extern int parse_rtattr_byindex(struct rtattr *tb[], int max, struct rtattr *rta, int len);
65 extern int __parse_rtattr_nested_compat(struct rtattr *tb[], int max, struct rtattr *rta, int len);
74 static inline __u8 rta_getattr_u8(const struct rtattr *rta)
78 static inline __u16 rta_getattr_u16(const struct rtattr *rta)
82 static inline __u32 rta_getattr_u32(const struct rtattr *rta)
86 static inline __u64 rta_getattr_u64(const struct rtattr *rta)
92 static inline const char *rta_getattr_str(const struct rtattr *rta)
103 ((struct rtattr *) (((void *) (nmsg)) + NLMSG_ALIGN((nmsg)->nlmsg_len)))
107 ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifaddrmsg))))
115 ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ifinfomsg))))
123 ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ndmsg))))
131 ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct ndtmsg))))