icmp6_hdr
struct icmp6_hdr icmp, *ic6 = &icmp;
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 *);
struct icmp6_hdr *icmp6 = (struct icmp6_hdr *)(ip6 + 1);
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;
int icmp6_errmap(const struct icmp6_hdr *);
tcp6_next_pmtu(const struct icmp6_hdr *icmp6)
struct icmp6_hdr *icmp6;
icmp6 = (struct icmp6_hdr *)(mtod(m, caddr_t) + off);
struct icmp6_hdr *icmp6 = ip6cp->ip6c_icmp6;
struct icmp6_hdr *icmp6;
icmp6 = (struct icmp6_hdr *)((caddr_t)ip6 + off);
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;
if (m->m_len < off + sizeof(struct icmp6_hdr)) {
m = m_pullup(m, off + sizeof(struct icmp6_hdr));
icp = (struct icmp6_hdr *)(mtod(m, caddr_t) + off);
preplen = sizeof(struct ip6_hdr) + sizeof(struct icmp6_hdr);
icmp6 = (struct icmp6_hdr *)(nip6 + 1);
icmp6_errmap(const struct icmp6_hdr *icmp6)
struct icmp6_hdr *icmp6, *nicmp6;
if (m->m_len < off + sizeof(struct icmp6_hdr)) {
m = m_pullup(m, off + sizeof(struct icmp6_hdr));
if (icmp6len < sizeof(struct icmp6_hdr)) {
icmp6 = (struct icmp6_hdr *)((caddr_t)ip6 + off);
|| 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 *)(mtod(n, caddr_t) + 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)) {
icmp6 = (struct icmp6_hdr *)(mtod(m, caddr_t) + 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 */
#define MLD_MINLEN sizeof(struct icmp6_hdr)
struct icmp6_hdr mld_icmp6_hdr; /* ICMPv6 header */
struct icmp6_hdr mld_icmp6_hdr;
sizeof(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;
sizeof(struct icmp6_hdr))) {
sizeof(struct icmp6_hdr));
icmp6 = (struct icmp6_hdr *)(ip6 + 1);
struct icmp6_hdr ih;
if (off + sizeof(struct icmp6_hdr) > m->m_pkthdr.len)
csump = &((struct icmp6_hdr *)l4hdr)->icmp6_cksum;
csump = &((struct icmp6_hdr *)fin->fin_dp)->icmp6_cksum;
int minicmpsz = sizeof(struct icmp6_hdr);
struct icmp6_hdr *icmp6;
struct icmp6_hdr *icmp;
icmp = (struct icmp6_hdr *)fin->fin_dp;
hlen += MIN(sizeof(struct icmp6_hdr) + 8,
hlen += MIN(sizeof(struct icmp6_hdr),
struct icmp6_hdr *icmp6 = (struct icmp6_hdr *)fin->fin_dp;
struct icmp6_hdr *orgicmp;
orgicmp = (struct icmp6_hdr *)(oip6 + 1);
struct icmp6_hdr *icmp6;
struct icmp6_hdr *orgicmp;
orgicmp = (struct icmp6_hdr *)dp;
struct icmp6_hdr *icmp6 = NULL;
struct icmp6_hdr *icmp6;
struct icmp6_hdr *icmp6;
struct icmp6_hdr *icmp6;
((struct icmp6_hdr *)fin->fin_dp)->icmp6_id = port;
((struct icmp6_hdr *)fin->fin_dp)->icmp6_id = nport;
struct icmp6_hdr *ic6, *oic;
oic = (struct icmp6_hdr *)(oip6 + 1);
PULLUP_TO(hlen, ulp, struct icmp6_hdr);
#define ICMP6(p) ((struct icmp6_hdr *)(p))
struct icmp6_hdr *icmp6;
icmp6 = (struct icmp6_hdr *)(((char *)ip) + hlen);
#define ICMP6(p) ((struct icmp6_hdr *)(p))
sizeof(struct icmp6_hdr) + len > NAT64_ICMP6_PLEN)
len = NAT64_ICMP6_PLEN - sizeof(struct icmp6_hdr) -
plen = sizeof(struct icmp6_hdr) + sizeof(struct ip6_hdr) + len;
eip6 = mtodo(n, offset + sizeof(struct icmp6_hdr));
struct icmp6_hdr *icmp6;
hlen += sizeof(struct icmp6_hdr);
struct icmp6_hdr *icmp6;
struct icmp6_hdr *icmp6;
plen = len + sizeof(struct icmp6_hdr);
sizeof(struct icmp6_hdr)));
nat64_icmp_handle_echo(struct ip6_hdr *ip6, struct icmp6_hdr *icmp6,
#define ICMP6(p) ((struct icmp6_hdr *)(p))
struct icmp6_hdr *icmp6;
hlen += sizeof(struct icmp6_hdr);
struct icmp6_hdr *icmp6;
struct icmp6_hdr *icmp6;
hlen += sizeof(struct icmp6_hdr);
struct icmp6_hdr *icmp6;
struct icmp6_hdr icmp6;
sizeof(struct icmp6_hdr))) {
size_t icmp_hlen = sizeof(struct icmp6_hdr);
if (icmp_hlen > sizeof(struct icmp6_hdr) &&
struct icmp6_hdr *icmp;
icmp = (struct icmp6_hdr *)(mp->m_data + off);
struct icmp6_hdr *icmp6;
m_copyback(pd->m, pd->off, sizeof(struct icmp6_hdr),
ipoff2 = pd->off + sizeof(struct icmp6_hdr);
sizeof(struct icmp6_hdr),
sizeof(struct icmp6_hdr),
sizeof(struct icmp6_hdr),
sizeof(struct icmp6_hdr),
sizeof(struct icmp6_hdr),
sizeof(struct icmp6_hdr),
sizeof(struct icmp6_hdr),
struct icmp6_hdr *iih = &pd2.hdr.icmp6;
sizeof(struct icmp6_hdr), reason, pd2.af)) {
sizeof(struct icmp6_hdr),
sizeof(struct icmp6_hdr), (c_caddr_t)iih);
m_copyback(pd->m, pd->off, sizeof(struct icmp6_hdr),
m_copyback(pd->m, pd2.off, sizeof(struct icmp6_hdr),
sizeof(struct icmp6_hdr),
struct icmp6_hdr icmp6;
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 *)iov.iov_base;
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 < (int)sizeof(struct icmp6_hdr)) {
icp = (struct icmp6_hdr *)buf;
struct icmp6_hdr *icmp;
icmp = (struct icmp6_hdr *)up;