Lines Matching defs:prefix
141 format_prefix(netdissect_options *ndo, const u_char *prefix, unsigned char plen)
146 * prefix points to a buffer on the stack into which the prefix has
150 if(plen >= 96 && memcmp(prefix, v4prefix, 12) == 0)
151 snprintf(buf, 50, "%s/%u", ipaddr_string(ndo, prefix + 12), plen - 96);
153 snprintf(buf, 50, "%s/%u", ip6addr_string(ndo, prefix), plen);
159 format_address(netdissect_options *ndo, const u_char *prefix)
162 * prefix points to a buffer on the stack into which the prefix has
166 if(memcmp(prefix, v4prefix, 12) == 0)
167 return ipaddr_string(ndo, prefix + 12);
169 return ip6addr_string(ndo, prefix);
197 /* Return number of octets consumed from the input buffer (not the prefix length
205 unsigned char prefix[16];
218 memset(prefix, 0, 16);
225 memcpy(prefix, v4prefix, 12);
228 memcpy(prefix, dp, 12 + omitted);
231 memcpy(prefix + 12 + omitted, p, pb - omitted);
240 memcpy(prefix, dp, omitted);
243 memcpy(prefix + omitted, p, pb - omitted);
249 prefix[0] = 0xfe;
250 prefix[1] = 0x80;
252 memcpy(prefix + 8, p, pb - 8);
260 memcpy(p_r, prefix, 16);
281 * prefix. Channel 0 is invalid and must not be used in the sub-TLV, channel
531 (GET_U_1(message + 3) & 0x80) ? "/prefix": "",
538 u_char prefix[16];
548 len - 10, prefix);
554 (GET_U_1(message + 3) & 0x80) ? "/prefix": "",
557 ae == 0 ? "any" : format_prefix(ndo, prefix, plen),
561 memcpy(v4_prefix, prefix, 16);
563 memcpy(v6_prefix, prefix, 16);
577 u_char prefix[16], ae, plen;
584 message + 4, NULL, len - 2, prefix);
587 ae == 0 ? "any" : format_prefix(ndo, prefix, plen));
598 u_char prefix[16], ae, plen;
605 message + 16, NULL, len - 14, prefix);
610 ae == 0 ? "invalid AE 0" : format_prefix(ndo, prefix, plen),
645 u_char prefix[16], src_prefix[16];
661 len - parsed_len, prefix);
673 ND_PRINT(" %s from", format_prefix(ndo, prefix, plen));
690 u_char ae, plen, src_plen, prefix[16], src_prefix[16];
697 NULL, len - parsed_len, prefix);
711 ND_PRINT("for (%s, ", format_prefix(ndo, prefix, plen));
724 u_char ae, plen, src_plen, prefix[16], src_prefix[16], hopc;
735 NULL, len - parsed_len, prefix);
746 hopc, format_prefix(ndo, prefix, plen));