Lines Matching defs:packet
135 * Handle an ISAKMP config mode packet
143 struct isakmp *packet;
151 /* Check that the packet is long enough to have a header */
152 if (msg->l < sizeof(*packet)) {
153 plog(LLV_ERROR, LOCATION, NULL, "Unexpected short packet\n");
157 packet = (struct isakmp *)msg->v;
160 if ((packet->flags & ISAKMP_FLAG_E) == 0) {
167 * Decrypt the packet. If this is the beginning of a new
171 iph1->mode_cfg->last_msgid != packet->msgid )
173 isakmp_cfg_newiv(iph1, packet->msgid);
183 plog(LLV_DEBUG, LOCATION, NULL, "MODE_CFG packet\n");
186 /* Now work with the decrypted packet */
187 packet = (struct isakmp *)dmsg->v;
188 tlen = dmsg->l - sizeof(*packet);
189 ph = (struct isakmp_gen *)(packet + 1);
191 np = packet->np;
193 /* Check that the payload header fits in the packet */
200 /* Check that the payload fits in the packet */
229 packet->msgid, payload)) == NULL) {
251 isakmp_cfg_attr_r(iph1, packet->msgid, attrpl);
365 /* Check that the attribute fit in the packet */
550 /* Check that the attribute fit in the packet */
709 * Move to next attribute. If we run out of the packet,
1248 plog(LLV_DEBUG, LOCATION, NULL, "MODE_CFG packet to send\n");