Lines Matching refs:spc
24 size_t spc = *len; in dhcp_pack_field_zero() local
42 if (xlen >= spc) { in dhcp_pack_field_zero()
56 spc -= plen+2; in dhcp_pack_field_zero()
64 memset(q, 0, spc); /* Zero-pad the rest of the field */ in dhcp_pack_field_zero()
95 size_t spc = *len; in dhcp_pack_packet() local
101 if (spc < sizeof(struct dhcp_packet)) in dhcp_pack_packet()
125 spc -= 240; in dhcp_pack_packet()
132 spc -= 3; in dhcp_pack_packet()
141 spc -= 3; in dhcp_pack_packet()
144 err = dhcp_pack_field_zero(q, &spc, ox); in dhcp_pack_packet()
145 *len = spc + (q-(uint8_t *)packet); in dhcp_pack_packet()
148 spc = 128; in dhcp_pack_packet()
149 err = dhcp_pack_field_zero(pkt->file, &spc, ox); in dhcp_pack_packet()
157 spc = 64; in dhcp_pack_packet()
158 err = dhcp_pack_field_zero(pkt->sname, &spc, ox); in dhcp_pack_packet()