Lines Matching defs:maxlen
477 int addattr32(struct nlmsghdr *n, int maxlen, int type, __u32 data)
481 if (NLMSG_ALIGN(n->nlmsg_len) + len > maxlen) {
482 fprintf(stderr,"addattr32: Error! max allowed bound %d exceeded\n",maxlen);
493 int addattr_l(struct nlmsghdr *n, int maxlen, int type, const void *data,
499 if (NLMSG_ALIGN(n->nlmsg_len) + RTA_ALIGN(len) > maxlen) {
500 fprintf(stderr, "addattr_l ERROR: message exceeded bound of %d\n",maxlen);
511 int addraw_l(struct nlmsghdr *n, int maxlen, const void *data, int len)
513 if (NLMSG_ALIGN(n->nlmsg_len) + NLMSG_ALIGN(len) > maxlen) {
514 fprintf(stderr, "addraw_l ERROR: message exceeded bound of %d\n",maxlen);
524 int rta_addattr32(struct rtattr *rta, int maxlen, int type, __u32 data)
529 if (RTA_ALIGN(rta->rta_len) + len > maxlen) {
530 fprintf(stderr,"rta_addattr32: Error! max allowed bound %d exceeded\n",maxlen);
541 int rta_addattr_l(struct rtattr *rta, int maxlen, int type,
547 if (RTA_ALIGN(rta->rta_len) + RTA_ALIGN(len) > maxlen) {
548 fprintf(stderr,"rta_addattr_l: Error! max allowed bound %d exceeded\n",maxlen);