Searched refs:addmask_key (Results 1 – 2 of 2) sorted by relevance
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/in.routed/ |
H A D | radix.c | 52 static uint8_t *rn_zeros, *rn_ones, *addmask_key; variable 449 (void) memmove(addmask_key + 1, rn_ones + 1, skip - 1); in rn_addmask() 451 (void) memmove(addmask_key + skip, netmask + skip, mlen - skip); in rn_addmask() 455 for (cp = addmask_key + mlen; (cp > addmask_key) && cp[-1] == 0; ) in rn_addmask() 457 mlen = cp - addmask_key; in rn_addmask() 464 (void) memset(addmask_key + m0, 0, last_zeroed - m0); in rn_addmask() 465 *addmask_key = last_zeroed = mlen; in rn_addmask() 466 x = rn_search(addmask_key, rn_masktop); in rn_addmask() 467 if (memcmp(addmask_key, x->rn_key, mlen) != 0) in rn_addmask() 475 (void) memmove(cp, addmask_key, mlen); in rn_addmask() [all …]
|
/titanic_41/usr/src/common/net/patricia/ |
H A D | radix.c | 570 char addmask_key[MAX_KEYLEN]; local 579 bcopy(rn_ones + 1, addmask_key + 1, skip - 1); 581 bcopy(netmask + skip, addmask_key + skip, mlen - skip); 585 for (cp = addmask_key + mlen; (cp > addmask_key) && cp[-1] == 0; ) 587 mlen = cp - addmask_key; 594 bzero(addmask_key + m0, last_zeroed - m0); 595 *addmask_key = last_zeroed = mlen; 596 x = rn_search(addmask_key, rn_masktop); 597 if (bcmp(addmask_key, x->rn_key, mlen) != 0) 606 bcopy(addmask_key, cp, mlen);
|