Lines Matching defs:dp
892 const struct icmp6_hdr *dp;
900 dp = (struct icmp6_hdr *)bp;
902 oip = (struct ip6_hdr *)(dp + 1);
906 ND_TCHECK(dp->icmp6_cksum);
912 udp_sum = EXTRACT_16BITS(&dp->icmp6_cksum);
913 sum = icmp6_cksum(ip, dp, length);
923 ND_PRINT((ndo,"ICMP6, %s", tok2str(icmp6_type_values,"unknown icmp6 type (%u)",dp->icmp6_type)));
926 if (ndo->ndo_vflag && (dp->icmp6_type == ND_ROUTER_SOLICIT ||
927 dp->icmp6_type == ND_ROUTER_ADVERT ||
928 dp->icmp6_type == ND_NEIGHBOR_ADVERT ||
929 dp->icmp6_type == ND_NEIGHBOR_SOLICIT ||
930 dp->icmp6_type == ND_REDIRECT ||
931 dp->icmp6_type == ICMP6_HADISCOV_REPLY ||
932 dp->icmp6_type == ICMP6_MOBILEPREFIX_ADVERT ))
935 switch (dp->icmp6_type) {
938 ND_PRINT((ndo,", %s", tok2str(icmp6_dst_unreach_code_values,"unknown unreach code (%u)",dp->icmp6_code)));
939 switch (dp->icmp6_code) {
984 ND_TCHECK(dp->icmp6_mtu);
985 ND_PRINT((ndo,", mtu %u", EXTRACT_32BITS(&dp->icmp6_mtu)));
989 switch (dp->icmp6_code) {
998 ND_PRINT((ndo,", unknown code (%u)", dp
1004 switch (dp->icmp6_code) {
1006 ND_PRINT((ndo,", erroneous - octet %u", EXTRACT_32BITS(&dp->icmp6_pptr)));
1009 ND_PRINT((ndo,", next header - octet %u", EXTRACT_32BITS(&dp->icmp6_pptr)));
1012 ND_PRINT((ndo,", option - octet %u", EXTRACT_32BITS(&dp->icmp6_pptr)));
1016 dp->icmp6_code));
1022 ND_TCHECK(dp->icmp6_seq);
1023 ND_PRINT((ndo,", seq %u", EXTRACT_16BITS(&dp->icmp6_seq)));
1027 mld6_print(ndo, (const u_char *)dp);
1030 mldv2_query_print(ndo, (const u_char *)dp, length);
1036 mld6_print(ndo, (const u_char *)dp);
1039 mld6_print(ndo, (const u_char *)dp);
1044 icmp6_opt_print(ndo, (const u_char *)dp + RTSOLLEN,
1053 p = (struct nd_router_advert *)dp;
1064 icmp6_opt_print(ndo, (const u_char *)dp + RTADVLEN,
1071 p = (struct nd_neighbor_solicit *)dp;
1076 icmp6_opt_print(ndo, (const u_char *)dp + NDSOLLEN,
1085 p = (struct nd_neighbor_advert *)dp;
1095 icmp6_opt_print(ndo, (const u_char *)dp + NDADVLEN,
1103 ND_TCHECK(RDR(dp)->nd_rd_dst);
1104 ND_PRINT((ndo,", %s", getname6(ndo, (const u_char *)&RDR(dp)->nd_rd_dst)));
1105 ND_TCHECK(RDR(dp)->nd_rd_target);
1107 getname6(ndo, (const u_char*)&RDR(dp)->nd_rd_target)));
1110 icmp6_opt_print(ndo, (const u_char *)dp + REDIRECTLEN,
1127 mldv2_report_print(ndo, (const u_char *) dp, length);
1131 ND_TCHECK(dp->icmp6_data16[0]);
1132 ND_PRINT((ndo,", id 0x%04x", EXTRACT_16BITS(&dp->icmp6_data16[0])));
1139 ND_TCHECK(dp->icmp6_data16[0]);
1140 ND_PRINT((ndo,", id 0x%04x", EXTRACT_16BITS(&dp->icmp6_data16[0])));
1141 cp = (u_char *)dp + length;
1142 in6 = (struct in6_addr *)(dp + 1);
1151 ND_TCHECK(dp->icmp6_data16[0]);
1152 ND_PRINT((ndo,", id 0x%04x", EXTRACT_16BITS(&dp->icmp6_data16[0])));
1153 if (dp->icmp6_data16[1] & 0xc0)
1155 if (dp->icmp6_data16[1] & 0x80)
1157 if (dp->icmp6_data16[1] & 0x40)
1160 icmp6_opt_print(ndo, (const u_char *)dp + MPADVLEN,
1166 rpl_print(ndo, dp, &dp->icmp6_data8[0], length-sizeof(struct icmp6_hdr)+4);
1587 const struct icmp6_hdr *dp;
1594 dp = (struct icmp6_hdr *)bp;
1600 if (siz == sizeof(*dp) + 4) {
1607 ND_TCHECK2(*dp, sizeof(*ni6));
1608 ni6 = (struct icmp6_nodeinfo *)dp;
1663 if (!ND_TTEST2(*dp,
1692 if (!ND_TTEST2(*dp, sizeof(*ni6) + sizeof(struct in_addr)))
1719 ni6 = (struct icmp6_nodeinfo *)dp;