Home | History | Annotate | Download | only in lib

Lines Matching full:maxlen

528 int addattr32(struct nlmsghdr *n, int maxlen, int type, __u32 data)
532 if (NLMSG_ALIGN(n->nlmsg_len) + len > maxlen) {
533 fprintf(stderr,"addattr32: Error! max allowed bound %d exceeded\n",maxlen);
544 int addattr_l(struct nlmsghdr *n, int maxlen, int type, const void *data,
550 if (NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len) > maxlen) {
551 fprintf(stderr, "addattr_l ERROR: message exceeded bound of %d\n",maxlen);
562 int addraw_l(struct nlmsghdr *n, int maxlen, const void *data, int len)
564 if (NLMSG_ALIGN(n->nlmsg_len) + NLMSG_ALIGN(len) > maxlen) {
565 fprintf(stderr, "addraw_l ERROR: message exceeded bound of %d\n",maxlen);
575 struct rtattr *addattr_nest(struct nlmsghdr *n, int maxlen, int type)
579 addattr_l(n, maxlen, type, NULL, 0);
589 struct rtattr *addattr_nest_compat(struct nlmsghdr *n, int maxlen, int type,
594 addattr_l(n, maxlen, type, data, len);
595 addattr_nest(n, maxlen, type);
608 int rta_addattr32(struct rtattr *rta, int maxlen, int type, __u32 data)
613 if (RTA_ALIGN(rta->rta_len) + len > maxlen) {
614 fprintf(stderr,"rta_addattr32: Error! max allowed bound %d exceeded\n",maxlen);
625 int rta_addattr_l(struct rtattr *rta, int maxlen, int type,
631 if (RTA_ALIGN(rta->rta_len) + RTA_ALIGN(len) > maxlen) {
632 fprintf(stderr,"rta_addattr_l: Error! max allowed bound %d exceeded\n",maxlen);