Changeset View
Changeset View
Standalone View
Standalone View
sys/netpfil/ipfw/nat64/nat64lsn_control.c
Show First 20 Lines • Show All 250 Lines • ▼ Show 20 Lines | if (cfg == NULL) { | ||||
return (ESRCH); | return (ESRCH); | ||||
} | } | ||||
if (cfg->no.refcnt > 0) { | if (cfg->no.refcnt > 0) { | ||||
IPFW_UH_WUNLOCK(ch); | IPFW_UH_WUNLOCK(ch); | ||||
return (EBUSY); | return (EBUSY); | ||||
} | } | ||||
ipfw_reset_eaction_instance(ch, V_nat64lsn_eid, cfg->no.kidx); | |||||
SRV_OBJECT(ch, cfg->no.kidx) = NULL; | SRV_OBJECT(ch, cfg->no.kidx) = NULL; | ||||
nat64lsn_detach_config(ch, cfg); | nat64lsn_detach_config(ch, cfg); | ||||
IPFW_UH_WUNLOCK(ch); | IPFW_UH_WUNLOCK(ch); | ||||
nat64lsn_destroy_instance(cfg); | nat64lsn_destroy_instance(cfg); | ||||
return (0); | return (0); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 646 Lines • Show Last 20 Lines |