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)
static void pr_icmph(struct icmp6_hdr *, u_char *);
static int myechoreply(const struct icmp6_hdr *);
sizeof(struct icmp6_hdr),
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 icmp6;
struct icmp6_hdr * icmp6;
if (!nbuf_advance(nbuf, sizeof(struct icmp6_hdr), 0)) {
const struct icmp6_hdr *ic6 = npc->npc_l4.icmp6;
const struct icmp6_hdr *ic6 = enpc.npc_l4.icmp6;
offsetof(struct icmp6_hdr, icmp6_cksum));
const struct icmp6_hdr *ic6 = npc->npc_l4.icmp6;
sizeof(struct icmp6_hdr));
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;
IP6_EXTHDR_GET(icmp6, struct icmp6_hdr *, m, off,
struct icmp6_hdr *icmp6 = ip6cp->ip6c_icmp6;
__CTASSERT(sizeof(struct icmp6_hdr) == 8);
struct icmp6_hdr *icmp6;
IP6_EXTHDR_GET(icmp6, struct icmp6_hdr *, m, off, sizeof(*icmp6));
struct icmp6_hdr *icmp6;
CTASSERT(sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr) <= MHLEN);
l = sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr);
size_t l = sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr);
icmp6 = (struct icmp6_hdr *)(ip6 + 1);
struct icmp6_hdr *icmp6;
struct icmp6_hdr *icp;
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;
if (icmp6len < sizeof(struct icmp6_hdr)) {
IP6_EXTHDR_GET(icmp6, struct icmp6_hdr *, m, off, sizeof(*icmp6));
m = m_copyup(m, off + sizeof(struct icmp6_hdr), 0);
icmp6 = (struct icmp6_hdr *)(mtod(m, char *) + off);
} else if (M_UNWRITABLE(n, off + sizeof(struct icmp6_hdr))) {
IP6_EXTHDR_GET(nicmp6, struct icmp6_hdr *, n, off,
if (icmp6len == sizeof(struct icmp6_hdr) + 4)
nicmp6 = (struct icmp6_hdr *)(nip6 + 1);
memcpy(nicmp6, icmp6, sizeof(struct icmp6_hdr));
sizeof(struct icmp6_hdr) + 4 + maxhlen;
struct icmp6_hdr *icmp6;
if (icmp6len < sizeof(struct icmp6_hdr) + sizeof(struct ip6_hdr)) {
IP6_EXTHDR_GET(icmp6, struct icmp6_hdr *, m, off,
int eoff = off + sizeof(struct icmp6_hdr) +
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);
struct icmp6_hdr *icmp6,
if (off + sizeof(struct icmp6_hdr) > m->m_pkthdr.len)
struct icmp6_hdr icmph;
assert(offsetof(struct icmp6_hdr, icmp6_type) == type_off);
assert(offsetof(struct icmp6_hdr, icmp6_code) == code_off);
struct icmp6_hdr *icp;
if ((size_t)i < sizeof(struct icmp6_hdr)) {
icp = (struct icmp6_hdr *)rcvmhdr.msg_iov[0].iov_base;
struct icmp6_hdr *icp = (struct icmp6_hdr *)outpacket;
struct icmp6_hdr *icp;
if (cc < (ssize_t)sizeof(struct icmp6_hdr)) {
icp = (struct icmp6_hdr *)buf;
((struct icmp6_hdr *)up)->icmp6_id == ident &&
((struct icmp6_hdr *)up)->icmp6_seq == htons(seq))