Home | History | Annotate | Download | only in linux

Lines Matching full:sizeof

140 #define RTA_OK(rta,len) ((len) >= (int)sizeof(struct rtattr) && \
141 (rta)->rta_len >= sizeof(struct rtattr) && \
145 #define RTA_LENGTH(len) (RTA_ALIGN(sizeof(struct rtattr)) + (len))
289 #define RTM_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct rtmsg))))
290 #define RTM_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct rtmsg))
319 #define RTNH_OK(rtnh,len) ((rtnh)->rtnh_len >= sizeof(struct rtnexthop) && \
322 #define RTNH_LENGTH(len) (RTNH_ALIGN(sizeof(struct rtnexthop)) + (len))
498 #define TCA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcmsg))))
499 #define TCA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct tcmsg))
607 #define TA_RTA(r) ((struct rtattr*)(((char*)(r)) + NLMSG_ALIGN(sizeof(struct tcamsg))))
608 #define TA_PAYLOAD(n) NLMSG_PAYLOAD(n,sizeof(struct tcamsg))
653 RTA_PUT(skb, attrtype, sizeof(u8), &_tmp); })
657 RTA_PUT(skb, attrtype, sizeof(u16), &_tmp); })
661 RTA_PUT(skb, attrtype, sizeof(u32), &_tmp); })
665 sizeof(u64), &_tmp); })
706 ({ if (!rta || RTA_PAYLOAD(rta) < sizeof(u8)) \
711 ({ if (!rta || RTA_PAYLOAD(rta) < sizeof(u16)) \
716 ({ if (!rta || RTA_PAYLOAD(rta) < sizeof(u32)) \
722 if (!rta || RTA_PAYLOAD(rta) < sizeof(u64)) \
724 memcpy(&_tmp, RTA_DATA(rta), sizeof(_tmp)); \