Searched refs:attrlen (Results 1 – 7 of 7) sorted by relevance
/linux-2.4.37.9/net/ipv4/ |
D | fib_semantics.c | 201 static u32 fib_get_attr32(struct rtattr *attr, int attrlen, int type) in fib_get_attr32() argument 203 while (RTA_OK(attr,attrlen)) { in fib_get_attr32() 206 attr = RTA_NEXT(attr, attrlen); in fib_get_attr32() 234 int attrlen = nhlen - sizeof(struct rtnexthop); in fib_get_nhs() local 235 if (attrlen < 0 || (nhlen -= nhp->rtnh_len) < 0) in fib_get_nhs() 240 if (attrlen) { in fib_get_nhs() 241 nh->nh_gw = fib_get_attr32(RTNH_DATA(nhp), attrlen, RTA_GATEWAY); in fib_get_nhs() 243 nh->nh_tclassid = fib_get_attr32(RTNH_DATA(nhp), attrlen, RTA_FLOW); in fib_get_nhs() 279 int attrlen = nhlen - sizeof(struct rtnexthop); in fib_nh_match() local 282 if (attrlen < 0 || (nhlen -= nhp->rtnh_len) < 0) in fib_nh_match() [all …]
|
D | tcp_diag.c | 35 #define TCPDIAG_PUT(skb, attrtype, attrlen) \ argument 36 ({ int rtalen = RTA_LENGTH(attrlen); \
|
/linux-2.4.37.9/include/linux/ |
D | rtnetlink.h | 70 #define RTA_NEXT(rta,attrlen) ((attrlen) -= RTA_ALIGN((rta)->rta_len), \ argument 590 extern void __rta_fill(struct sk_buff *skb, int attrtype, int attrlen, const void *data); 592 #define RTA_PUT(skb, attrtype, attrlen, data) \ argument 593 ({ if (skb_tailroom(skb) < (int)RTA_SPACE(attrlen)) goto rtattr_failure; \ 594 __rta_fill(skb, attrtype, attrlen, data); })
|
/linux-2.4.37.9/net/core/ |
D | rtnetlink.c | 107 void __rta_fill(struct sk_buff *skb, int attrtype, int attrlen, const void *data) in __rta_fill() argument 110 int size = RTA_LENGTH(attrlen); in __rta_fill() 115 memcpy(RTA_DATA(rta), data, attrlen); in __rta_fill() 116 memset(RTA_DATA(rta) + attrlen, 0, RTA_ALIGN(size) - size); in __rta_fill() 362 int attrlen = nlh->nlmsg_len - NLMSG_ALIGN(min_len); in rtnetlink_rcv_msg() local 365 while (RTA_OK(attr, attrlen)) { in rtnetlink_rcv_msg() 372 attr = RTA_NEXT(attr, attrlen); in rtnetlink_rcv_msg()
|
/linux-2.4.37.9/net/decnet/ |
D | dn_fib.c | 142 u16 dn_fib_get_attr16(struct rtattr *attr, int attrlen, int type) in dn_fib_get_attr16() argument 144 while(RTA_OK(attr,attrlen)) { in dn_fib_get_attr16() 147 attr = RTA_NEXT(attr, attrlen); in dn_fib_get_attr16() 175 int attrlen = nhlen - sizeof(struct rtnexthop); in dn_fib_get_nhs() local 176 if (attrlen < 0 || (nhlen -= nhp->rtnh_len) < 0) in dn_fib_get_nhs() 183 if (attrlen) { in dn_fib_get_nhs() 184 nh->nh_gw = dn_fib_get_attr16(RTNH_DATA(nhp), attrlen, RTA_GATEWAY); in dn_fib_get_nhs()
|
D | dn_table.c | 251 int attrlen = nhlen - sizeof(struct rtnexthop); in dn_fib_nh_match() local 254 if (attrlen < 0 || (nhlen -= nhp->rtnh_len) < 0) in dn_fib_nh_match() 258 if (attrlen) { in dn_fib_nh_match() 259 gw = dn_fib_get_attr16(RTNH_DATA(nhp), attrlen, RTA_GATEWAY); in dn_fib_nh_match()
|
/linux-2.4.37.9/include/net/ |
D | dn_fib.h | 137 extern u16 dn_fib_get_attr16(struct rtattr *attr, int attrlen, int type);
|