icmp6_hdr
struct icmp6_hdr *icp;
icp = (struct icmp6_hdr *)outpack;
myechoreply(const struct icmp6_hdr *icp)
struct icmp6_hdr *icp;
if (cc < (int)sizeof(struct icmp6_hdr)) {
icp = (struct icmp6_hdr *)buf;
pr_icmph(struct icmp6_hdr *icp, u_char *end)
void pr_icmph(struct icmp6_hdr *, u_char *);
int myechoreply(const struct icmp6_hdr *);
static int icmp6type_match (struct icmp6_hdr * icmp, struct ip6_fw * f);
icmp6type_match(struct icmp6_hdr *icmp6, struct ip6_fw *f)
const struct icmp6_hdr *icmp6;
icmp6 = (struct icmp6_hdr *)((caddr_t)ip6 + off);
struct icmp6_hdr *const icmp6 = (struct icmp6_hdr *) ((caddr_t) ip6+ off);
struct icmp6_hdr *icmp;
icmp = (struct icmp6_hdr *) ((caddr_t)ip6 + off);
m_copyback(m, off, sizeof(struct icmp6_hdr),
ipoff2 = off + sizeof(struct icmp6_hdr);
sizeof(struct icmp6_hdr),
sizeof(struct icmp6_hdr),
struct icmp6_hdr iih;
sizeof(struct icmp6_hdr), NULL, reason, pd2.af)) {
m_copyback(m, off, sizeof(struct icmp6_hdr),
m_copyback(m, off2, sizeof(struct icmp6_hdr),
sizeof(struct icmp6_hdr),
struct icmp6_hdr ih;
struct icmp6_hdr *icmp6;
struct icmp6_hdr mld_icmp6_hdr;
struct icmp6_hdr nd_rs_hdr;
struct icmp6_hdr nd_ra_hdr;
struct icmp6_hdr nd_ns_hdr;
struct icmp6_hdr nd_na_hdr;
struct icmp6_hdr nd_rd_hdr;
struct icmp6_hdr icmp6_nl_hdr;
struct icmp6_hdr icmp6_ni_hdr;
struct icmp6_hdr rr_hdr;
struct icmp6_hdr *icmp6 = ip6cp->ip6c_icmp6;
struct icmp6_hdr *icmp6 = ip6cp->ip6c_icmp6;
struct icmp6_hdr *icmp6;
icmp6 = (struct icmp6_hdr *)((caddr_t)ip6 + off);
IP6_EXTHDR_GET(icmp6, struct icmp6_hdr *, m, off, sizeof(*icmp6));
struct icmp6_hdr *icmp6;
if (sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr) > MHLEN)
l = sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr);
l = sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr);
icmp6 = (struct icmp6_hdr *)(ip6 + 1);
if (maxlen < sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr) +
struct icmp6_hdr *icmp6;
struct icmp6_hdr *icp;
IP6_EXTHDR_CHECK(m, 0, off + sizeof(struct icmp6_hdr), );
icp = (struct icmp6_hdr *)(mtod(m, caddr_t) + off);
IP6_EXTHDR_GET(icp, struct icmp6_hdr *, m, off,
preplen = sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr);
icmp6 = (struct icmp6_hdr *)(nip6 + 1);
struct icmp6_hdr *icmp6, *nicmp6;
IP6_EXTHDR_CHECK(m, off, sizeof(struct icmp6_hdr), IPPROTO_DONE);
if (icmp6len < sizeof(struct icmp6_hdr)) {
icmp6 = (struct icmp6_hdr *)((caddr_t)ip6 + off);
IP6_EXTHDR_GET(icmp6, struct icmp6_hdr *, m, off, sizeof(*icmp6));
n->m_len < off + sizeof(struct icmp6_hdr)) {
nicmp6 = (struct icmp6_hdr *)(nip6 + 1);
bcopy(icmp6, nicmp6, sizeof(struct icmp6_hdr));
n->m_len = noff + sizeof(struct icmp6_hdr);
m_adj(n0, off + sizeof(struct icmp6_hdr));
nicmp6 = (struct icmp6_hdr *)((caddr_t)nip6 + off);
if (icmp6len == sizeof(struct icmp6_hdr) + 4)
nicmp6 = (struct icmp6_hdr *)(nip6 + 1);
bcopy(icmp6, nicmp6, sizeof(struct icmp6_hdr));
sizeof(struct icmp6_hdr) + 4 + maxhlen;
struct icmp6_hdr *icmp6;
if (icmp6len < sizeof(struct icmp6_hdr) + sizeof(struct ip6_hdr)) {
sizeof(struct icmp6_hdr) + sizeof(struct ip6_hdr),
icmp6 = (struct icmp6_hdr *)(mtod(m, caddr_t) + off);
IP6_EXTHDR_GET(icmp6, struct icmp6_hdr *, m, off,
int eoff = off + sizeof(struct icmp6_hdr) +
icmp6 = (struct icmp6_hdr *)(mtod(m, caddr_t) + off);
IP6_EXTHDR_GET(icmp6, struct icmp6_hdr *, m, off,
const int icmp6off = offsetof(struct icmp6_hdr, icmp6_cksum);
struct icmp6_hdr *ip6c_icmp6; /* icmp6 header of target packet */
struct icmp6_hdr;
struct icmp6_hdr *icmp6;
if (m->m_len < sizeof(struct icmp6_hdr) &&
(m = m_pullup(m, sizeof(struct icmp6_hdr))) == NULL) {
icmp6 = mtod(m, struct icmp6_hdr *);
off = offsetof(struct icmp6_hdr, icmp6_cksum);
const struct icmp6_hdr *ih6;
ih6 = (const struct icmp6_hdr *)payload;
const struct icmp6_hdr *icmp6h;
icmp6h = (const struct icmp6_hdr *)payload;
struct icmp6_hdr *icp;
if ((size_t)i < sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr)) {
icp = (struct icmp6_hdr *)(ip + 1); /* XXX: ext. hdr? */
if ((size_t)i < sizeof(struct icmp6_hdr)) {
icp = (struct icmp6_hdr *)rcvmhdr.msg_iov[0].iov_base;
struct icmp6_hdr *icp;
icp = (struct icmp6_hdr *)rcvmhdr.msg_iov[0].iov_base;
icp = (struct icmp6_hdr *)buf;
if (((struct icmp6_hdr *)up)->icmp6_id == ident &&
((struct icmp6_hdr *)up)->icmp6_seq == htons(seq))
struct icmp6_hdr *icp;
icp = (struct icmp6_hdr *)outpacket;
struct icmp6_hdr *icp;
if (cc < hlen + sizeof(struct icmp6_hdr)) {
icp = (struct icmp6_hdr *)(buf + hlen);
if (cc < sizeof(struct icmp6_hdr)) {