Changeset View
Changeset View
Standalone View
Standalone View
head/sys/netpfil/ipfw/nat64/nat64stl_control.c
Show First 20 Lines • Show All 336 Lines • ▼ Show 20 Lines | if (cfg == NULL) { | ||||
IPFW_UH_WUNLOCK(ch); | IPFW_UH_WUNLOCK(ch); | ||||
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_nat64stl_eid, cfg->no.kidx); | |||||
SRV_OBJECT(ch, cfg->no.kidx) = NULL; | SRV_OBJECT(ch, cfg->no.kidx) = NULL; | ||||
nat64stl_detach_config(ch, cfg); | nat64stl_detach_config(ch, cfg); | ||||
IPFW_UH_WUNLOCK(ch); | IPFW_UH_WUNLOCK(ch); | ||||
nat64stl_free_config(cfg); | nat64stl_free_config(cfg); | ||||
return (0); | return (0); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 266 Lines • Show Last 20 Lines |