MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ng_nat_translate_flags

Function ng_nat_translate_flags

freebsd/netgraph/ng_nat.c:945–966  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

943}
944
945static unsigned int
946ng_nat_translate_flags(unsigned int x)
947{
948 unsigned int res = 0;
949
950 if (x & NG_NAT_LOG)
951 res |= PKT_ALIAS_LOG;
952 if (x & NG_NAT_DENY_INCOMING)
953 res |= PKT_ALIAS_DENY_INCOMING;
954 if (x & NG_NAT_SAME_PORTS)
955 res |= PKT_ALIAS_SAME_PORTS;
956 if (x & NG_NAT_UNREGISTERED_ONLY)
957 res |= PKT_ALIAS_UNREGISTERED_ONLY;
958 if (x & NG_NAT_RESET_ON_ADDR_CHANGE)
959 res |= PKT_ALIAS_RESET_ON_ADDR_CHANGE;
960 if (x & NG_NAT_PROXY_ONLY)
961 res |= PKT_ALIAS_PROXY_ONLY;
962 if (x & NG_NAT_REVERSE)
963 res |= PKT_ALIAS_REVERSE;
964
965 return (res);
966}

Callers 1

ng_nat_rcvmsgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected