Home
last modified time | relevance | path

Searched refs:attrlen (Results 1 – 7 of 7) sorted by relevance

/linux-2.4.37.9/net/ipv4/
Dfib_semantics.c201 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 …]
Dtcp_diag.c35 #define TCPDIAG_PUT(skb, attrtype, attrlen) \ argument
36 ({ int rtalen = RTA_LENGTH(attrlen); \
/linux-2.4.37.9/include/linux/
Drtnetlink.h70 #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/
Drtnetlink.c107 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/
Ddn_fib.c142 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()
Ddn_table.c251 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/
Ddn_fib.h137 extern u16 dn_fib_get_attr16(struct rtattr *attr, int attrlen, int type);