Home
last modified time | relevance | path

Searched refs:new_r (Results 1 – 2 of 2) sorted by relevance

/linux-2.4.37.9/net/decnet/
Ddn_rules.c123 struct dn_fib_rule *r, *new_r, **rp; in dn_fib_rtm_newrule() local
145 new_r = kmalloc(sizeof(*new_r), GFP_KERNEL); in dn_fib_rtm_newrule()
146 if (!new_r) in dn_fib_rtm_newrule()
148 memset(new_r, 0, sizeof(*new_r)); in dn_fib_rtm_newrule()
150 memcpy(&new_r->r_src, RTA_DATA(rta[RTA_SRC-1]), 2); in dn_fib_rtm_newrule()
152 memcpy(&new_r->r_dst, RTA_DATA(rta[RTA_DST-1]), 2); in dn_fib_rtm_newrule()
153 new_r->r_src_len = rtm->rtm_src_len; in dn_fib_rtm_newrule()
154 new_r->r_dst_len = rtm->rtm_dst_len; in dn_fib_rtm_newrule()
155 new_r->r_srcmask = dnet_make_mask(rtm->rtm_src_len); in dn_fib_rtm_newrule()
156 new_r->r_dstmask = dnet_make_mask(rtm->rtm_dst_len); in dn_fib_rtm_newrule()
[all …]
/linux-2.4.37.9/net/ipv4/
Dfib_rules.c166 struct fib_rule *r, *new_r, **rp; in inet_rtm_newrule() local
186 new_r = kmalloc(sizeof(*new_r), GFP_KERNEL); in inet_rtm_newrule()
187 if (!new_r) in inet_rtm_newrule()
189 memset(new_r, 0, sizeof(*new_r)); in inet_rtm_newrule()
191 memcpy(&new_r->r_src, RTA_DATA(rta[RTA_SRC-1]), 4); in inet_rtm_newrule()
193 memcpy(&new_r->r_dst, RTA_DATA(rta[RTA_DST-1]), 4); in inet_rtm_newrule()
195 memcpy(&new_r->r_srcmap, RTA_DATA(rta[RTA_GATEWAY-1]), 4); in inet_rtm_newrule()
196 new_r->r_src_len = rtm->rtm_src_len; in inet_rtm_newrule()
197 new_r->r_dst_len = rtm->rtm_dst_len; in inet_rtm_newrule()
198 new_r->r_srcmask = inet_make_mask(rtm->rtm_src_len); in inet_rtm_newrule()
[all …]