Home | History | Annotate | Download | only in npf

Lines Matching defs:icmp

31  * NPF ALG for ICMP and traceroute translations.
119 * npfa_icmp{4,6}_inspect: retrieve unique identifiers - either ICMP query
139 if (!nbuf_advance(nbuf, offsetof(struct icmp, icmp_ip), 0)) {
150 /* Contains ICMP query ID. */
178 /* Contains ICMP query ID. */
188 * npfa_icmp_inspect: ALG ICMP inspector.
201 /* Advance to ICMP header. */
211 * Inspect the ICMP packet. The relevant data might be in the
216 const struct icmp *ic = npc->npc_l4.icmp;
229 /* ICMP ID is the original packet, just indicate it. */
244 /* Inspect ICMP packet for an embedded packet. */
251 * If the ICMP packet had a Query Id, leave now. The packet didn't get
261 * If it is ICMP, then ensure ICMP ID.
285 const struct icmp *ic = enpc.npc_l4.icmp;
317 * which is embedded in ICMP packet. Note: backwards stream only.
324 struct icmp *ic;
331 * ICMP: fetch the current checksum we are going to fixup.
333 ic = npc->npc_l4.icmp;
340 * If the ICMP packet had a Query Id, leave now. The packet didn't get
351 CTASSERT(offsetof(struct icmp, icmp_cksum) ==
388 * Calculate the part of the ICMP checksum fixup.
404 * 1) Rewrite the IP address and, if not ICMP, port.
405 * 2) Rewrite the TCP/UDP checksum (if not ICMP).
416 * Finally, finish the ICMP checksum fixup: include the checksum
438 ic = npc->npc_l4.icmp;
452 * npf_alg_icmp_{init,fini,modcmd}: ICMP ALG initialization, destruction
459 static const npfa_funcs_t icmp = {
465 alg_icmp = npf_alg_register(npf, "icmp", &icmp);