summaryrefslogtreecommitdiff
path: root/src/net/portnet/unreservedportnet.cil
blob: 6359d64b972f4d06a488ba90ee03d72df7afefcf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
;; SPDX-FileCopyrightText: © 2025 Dominick Grift <dominick.grift@defensec.nl>
;; SPDX-License-Identifier: Unlicense

(block unreserved

  (portcon "dccp" (1024 32767) port_context)
  (portcon "dccp" (61000 65535) port_context)
  (portcon "sctp" (1024 32767) port_context)
  (portcon "sctp" (61000 65535) port_context)
  (portcon "tcp" (1024 32767) port_context)
  (portcon "tcp" (61000 65535) port_context)
  (portcon "udp" (1024 32767) port_context)
  (portcon "udp" (61000 65535) port_context)

  (blockinherit .net.port.unreserved.template))

(in net.port

    (block unreserved

      (macro type ((type ARG1))
	     (typeattributeset typeattr ARG1))

      (blockinherit .net.port.all_macro_template)

      (typeattribute typeattr)

      (call .net.port.type (typeattr))

      (block base_template

	(blockabstract base_template)

	(blockinherit .net.port.base_template)

	(call .net.port.unreserved.type (port)))

      (block template

	(blockabstract template)

	(blockinherit .net.port.macro_template)
	(blockinherit .net.port.unreserved.base_template))))