Lines Matching defs:code
39 * by code in value, and the parameter value length in *vallenp.
43 * B_FALSE If invalid code, or no parameter value.
45 * B_TRUE Valid code which has a parameter value.
53 dhcp_getinfo_pl(PKT_LIST *pl, uchar_t optcat, uint16_t code, uint16_t optsize,
61 if (code > DHCP_LAST_OPT)
64 if (pl->opts[code] == NULL)
67 if (*vallenp < pl->opts[code]->len) {
68 *vallenp = pl->opts[code]->len;
72 bcopy(pl->opts[code]->value, value, pl->opts[code]->len);
73 *vallenp = pl->opts[code]->len;
76 if (code > VS_OPTION_END)
79 if (pl->vs[code] == NULL)
82 if (*vallenp < pl->vs[code]->len) {
83 *vallenp = pl->vs[code]->len;
87 bcopy(pl->vs[code]->value, value, pl->vs[code]->len);
88 *vallenp = pl->vs[code]->len;
91 if (code + optsize > sizeof (PKT))
100 bcopy((caddr_t)pl->pkt + code, value, optsize);