Add new attribute to 'all' rules
This commit is contained in:
virtweb_backend/src
virtweb_frontend/src
27
virtweb_frontend/src/widgets/forms/NWFConnStateInput.tsx
Normal file
27
virtweb_frontend/src/widgets/forms/NWFConnStateInput.tsx
Normal file
@ -0,0 +1,27 @@
|
||||
import { Layer4State } from "../../api/NWFilterApi";
|
||||
import { SelectInput } from "./SelectInput";
|
||||
|
||||
export function NWFConnStateInput(p: {
|
||||
editable: boolean;
|
||||
value?: Layer4State;
|
||||
onChange: (s?: Layer4State) => void;
|
||||
}): React.ReactElement {
|
||||
return (
|
||||
<SelectInput
|
||||
{...p}
|
||||
label="Connection state"
|
||||
value={p.value}
|
||||
onValueChange={(s) => {
|
||||
p.onChange?.(s as any);
|
||||
}}
|
||||
options={[
|
||||
{ label: "None", value: undefined },
|
||||
{ label: "NEW", value: "NEW" },
|
||||
{ label: "ESTABLISHED", value: "ESTABLISHED" },
|
||||
{ label: "RELATED", value: "RELATED" },
|
||||
{ label: "INVALID", value: "INVALID" },
|
||||
{ label: "NONE", value: "NONE" },
|
||||
]}
|
||||
/>
|
||||
);
|
||||
}
|
Reference in New Issue
Block a user