Lines Matching defs:spmsg

534 	spd_msg_t *spmsg = (spd_msg_t *)mp->b_rptr;
538 if (spmsg->spd_msg_type < SPD_MIN ||
539 spmsg->spd_msg_type > SPD_MAX)
540 spmsg->spd_msg_type = SPD_RESERVED;
545 ASSERT(mp->b_rptr + sizeof (*spmsg) <= mp->b_datap->db_lim);
546 mp->b_wptr = mp->b_rptr + sizeof (*spmsg);
547 spmsg->spd_msg_len = SPD_8TO64(sizeof (spd_msg_t));
548 spmsg->spd_msg_errno = (uint8_t)error;
549 spmsg->spd_msg_diagnostic = (uint16_t)diagnostic;
613 spd_msg_t *spmsg = (spd_msg_t *)mp->b_rptr;
618 active = (spmsg->spd_msg_spdid == SPD_ACTIVE);
1049 spd_msg_t *spmsg = (spd_msg_t *)mp->b_rptr;
1054 active = (spmsg->spd_msg_spdid == SPD_ACTIVE);
1159 spd_msg_t *spmsg = (spd_msg_t *)mp->b_rptr;
1164 active = (spmsg->spd_msg_spdid == SPD_ACTIVE);
1183 spd_msg_t *spmsg = (spd_msg_t *)mp->b_rptr;
1188 active = (spmsg->spd_msg_spdid == SPD_ACTIVE);
1209 spd_msg_t *spmsg = (spd_msg_t *)mp->b_rptr;
1214 active = (spmsg->spd_msg_spdid == SPD_ACTIVE);
1270 spd_msg_t *spmsg = (spd_msg_t *)mp->b_rptr;
1275 active = (spmsg->spd_msg_spdid == SPD_ACTIVE);
1286 spd_msg_t *spmsg = (spd_msg_t *)mp->b_rptr;
1291 active = (spmsg->spd_msg_spdid == SPD_ACTIVE);
1326 spd_msg_t *spmsg = (spd_msg_t *)mp->b_rptr;
1331 active = (spmsg->spd_msg_spdid == SPD_ACTIVE);
1338 spd_msg_t *spmsg = (spd_msg_t *)mp->b_rptr;
1343 active = (spmsg->spd_msg_spdid == SPD_ACTIVE);
1354 spd_msg_t *spmsg =
1360 active = (spmsg->spd_msg_spdid ==
1371 spd_msg_t *spmsg = (spd_msg_t *)mp->b_rptr;
1376 active = (spmsg->spd_msg_spdid == SPD_ACTIVE);
1386 spd_msg_t *spmsg = (spd_msg_t *)mp->b_rptr;
1391 active = (spmsg->spd_msg_spdid == SPD_ACTIVE);
1761 struct spd_msg *spmsg;
1770 spmsg = (struct spd_msg *)(base + offset);
1771 bzero(spmsg, sizeof (*spmsg));
1772 spmsg->spd_msg_version = PF_POLICY_V1;
1773 spmsg->spd_msg_type = SPD_DUMP;
1774 spmsg->spd_msg_seq = req->spd_msg_seq;
1775 spmsg->spd_msg_pid = req->spd_msg_pid;
1820 spmsg->spd_msg_len = SPD_8TO64(offset - start);
2136 spd_msg_t *spmsg = (spd_msg_t *)mp->b_rptr;
2141 active = (spmsg->spd_msg_spdid == SPD_ACTIVE);
2149 spd_msg_t *spmsg =
2155 active = (spmsg->spd_msg_spdid ==
2168 spd_msg_t *spmsg =
2174 active = (spmsg->spd_msg_spdid ==
2184 spd_msg_t *spmsg = (spd_msg_t *)mp->b_rptr;
2189 active = (spmsg->spd_msg_spdid == SPD_ACTIVE);
2199 spd_msg_t *spmsg = (spd_msg_t *)mp->b_rptr;
2204 active = (spmsg->spd_msg_spdid == SPD_ACTIVE);
2974 spd_msg_t *spmsg;
2988 spmsg = (spd_msg_t *)mp->b_rptr;
2990 msgsize = SPD_64TO8(spmsg->spd_msg_len);
3017 spmsg = (spd_msg_t *)mp->b_rptr;
3021 switch (spdsock_get_ext(extv, spmsg, msgsize)) {
3054 if (!ipsec_loaded(ipss) && spmsg->spd_msg_type != SPD_UPDATEALGS) {
3066 switch (spmsg->spd_msg_type) {
3083 switch (spmsg->spd_msg_type) {
3096 iph = get_appropriate_polhead(q, mp, tunname, spmsg->spd_msg_spdid,
3097 spmsg->spd_msg_type, &itp);
3102 switch (spmsg->spd_msg_type) {
3106 if (spmsg->spd_msg_spdid == SPD_ACTIVE)
3134 switch (spmsg->spd_msg_type) {
3152 if (spmsg->spd_msg_type == SPD_ADDRULE ||
3153 spmsg->spd_msg_type == SPD_DELETERULE)