Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 03 Nov 2018 13:07:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 232917] /sbin/ipfw cannot show 'setdscp' rule with 'Segmentation fault (core dumped)' error
Message-ID:  <bug-232917-227-lNQifCOZIR@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-232917-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-232917-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D232917

--- Comment #1 from bugs.freebsd.org@mx.zzux.com ---
As a fast troubleshooting I have replaced piece of code with the same piece=
 of
file /usr/src/sbin/ipfw/ipfw2.c from 11.1


//      case O_SETDSCP:
//              if (cmd->arg1 =3D=3D IP_FW_TARG) {
//                      bprintf(bp, "setdscp tablearg");
//                      break;
//              }
//              s =3D match_value(f_ipdscp, cmd->arg1 & 0x3F);
//              if (s !=3D NULL)
//                      bprintf(bp, "setdscp %s", s);
//              else
//                      bprintf(bp, "setdscp %s", cmd->arg1 & 0x3F);
//              break;

        case O_SETDSCP:
            {
                uint32_t uval;
                const char *code;

                if (cmd->arg1 =3D=3D IP_FW_TARG) {
                        bprint_uint_arg(bp, "setdscp ", cmd->arg1);
                        break;
                }
                uval =3D cmd->arg1 & 0x3F;
                if ((code =3D match_value(f_ipdscp, uval)) !=3D NULL)
                        bprintf(bp, "setdscp %s", code);
                else
                        bprint_uint_arg(bp, "setdscp ", uval);
            }
                break;

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-232917-227-lNQifCOZIR>