GRE_UDPENCAP
DEF_CMD("udpencap", GRE_UDPENCAP, setifgreopts),
DEF_CMD("-udpencap",-GRE_UDPENCAP, setifgreopts),
opt |= GRE_UDPENCAP;
opt &= ~GRE_UDPENCAP;
sc->gre_options & GRE_UDPENCAP ? IFLA_TUNNEL_GRE_UDP : IFLA_TUNNEL_NONE);
if ((sc->gre_options & GRE_UDPENCAP) == 0) {
MPASS(sc->gre_options & GRE_UDPENCAP);
if ((sc->gre_options & GRE_UDPENCAP) == 0 || sc->gre_port != 0)
if (sc->gre_options & GRE_UDPENCAP) {
#define GRE_OPTMASK (GRE_ENABLE_CSUM|GRE_ENABLE_SEQ|GRE_UDPENCAP)
(sc->gre_options & GRE_UDPENCAP) == (opts & GRE_UDPENCAP))
if (opts & GRE_UDPENCAP) {
if (sc->gre_options & GRE_UDPENCAP) {
if (sc->gre_options & GRE_UDPENCAP) {
(sc->gre_options & GRE_UDPENCAP) != (value & GRE_UDPENCAP) &&
(sc->gre_options & GRE_UDPENCAP) == (opts & GRE_UDPENCAP))
if (opts & GRE_UDPENCAP) {
if (sc->gre_options & GRE_UDPENCAP) {
if (sc->gre_options & GRE_UDPENCAP) {
(sc->gre_options & GRE_UDPENCAP) != (value & GRE_UDPENCAP) &&
ATF_CHECK_INTEQ(attrs.ifla_flags, (GRE_ENABLE_SEQ | GRE_ENABLE_CSUM | GRE_UDPENCAP));