Lines Matching defs:code

39  * 1. Redistributions of source code must retain the above copyright
68 * 1. Redistributions of source code must retain the above copyright
182 icmp6_errcount(stat, type, code)
184 int type, code;
188 switch (code) {
210 switch (code) {
220 switch (code) {
244 icmp6_error2(struct mbuf *m, int type, int code, int param,
269 icmp6_error(m, type, code, param);
276 icmp6_error(struct mbuf *m, int type, int code, int param)
286 /* count per-type-code statistics */
287 icmp6_errcount(&icmp6stat.icp6s_outerrhist, type, code);
316 * ip6_unknown_opt(), so we can just check the type and code.
322 code != ICMP6_PARAMPROB_OPTION)))
372 if (icmp6_ratelimit(&oip6->ip6_src, type, code)) {
402 icmp6->icmp6_code = code;
439 int code, sum, noff, proxy = 0;
500 code = icmp6->icmp6_code;
535 switch (code) {
537 code = PRC_UNREACH_NET;
541 code = PRC_UNREACH_PROTOCOL; /* is this a good code? */
544 code = PRC_HOSTDEAD;
548 code = PRC_PARAMPROB;
551 code = PRC_UNREACH_PORT;
562 code = PRC_MSGSIZE;
573 switch (code) {
575 code = PRC_TIMXCEED_INTRANS;
578 code = PRC_TIMXCEED_REASS;
588 switch (code) {
590 code = PRC_UNREACH_PROTOCOL;
594 code = PRC_PARAMPROB;
604 if (code != 0)
607 if (icmp6_ratelimit(&ip6->ip6_dst, icmp6->icmp6_type, code)) {
687 if (code != 0)
701 if (icmp6_ratelimit(&ip6->ip6_dst, icmp6->icmp6_type, code)) {
745 if (icmp6_ratelimit(&ip6->ip6_dst, icmp6->icmp6_type, code)) {
763 if (code != 0)
769 if (code != 0)
774 if (icmp6_ratelimit(&ip6->ip6_dst, icmp6->icmp6_type, code)) {
792 if (code != 0)
797 if (icmp6_ratelimit(&ip6->ip6_dst, icmp6->icmp6_type, code)) {
815 if (code != 0)
820 if (icmp6_ratelimit(&ip6->ip6_dst, icmp6->icmp6_type, code)) {
838 if (code != 0)
843 if (icmp6_ratelimit(&ip6->ip6_dst, icmp6->icmp6_type, code)) {
861 if (code != 0)
866 if (icmp6_ratelimit(&ip6->ip6_dst, icmp6->icmp6_type, code)) {
883 if (code != ICMP6_ROUTER_RENUMBERING_COMMAND &&
884 code != ICMP6_ROUTER_RENUMBERING_RESULT)
891 if (icmp6_ratelimit(&ip6->ip6_dst, icmp6->icmp6_type, code)) {
903 code = PRC_NCMDS;
911 if (icmp6_ratelimit(&ip6->ip6_dst, icmp6->icmp6_type, code)) {
916 if (icmp6_notify_error(m, off, icmp6len, code)) {
931 if (icmp6_ratelimit(&ip6->ip6_dst, icmp6->icmp6_type, code)) {
948 icmp6_notify_error(m, off, icmp6len, code)
950 int off, icmp6len, code;
1172 (void) (*ctlfunc)(code, (struct sockaddr *)&icmp6dst,
1417 * - the code does wildcard match for truncated names.
1479 * XXX: We must return a reply with the ICMP6 code
2050 * XXX almost dup'ed code with rip6_input.
2176 int type, code;
2232 code = icmp6->icmp6_code; /* ditto. */
2374 icmp6_ifoutstat_inc(outif, type, code);
2845 * Following code adds the padding if it is simple enough,
3109 * For an ICMPv6 packet, we should know its type and code
3263 __unused const int code) /* not used at this moment */