File: ipopt.h

package info (click to toggle)
nftables 1.1.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 15,384 kB
  • sloc: ansic: 50,901; sh: 20,277; yacc: 5,861; python: 1,746; lex: 1,367; makefile: 392
file content (29 lines) | stat: -rw-r--r-- 703 bytes parent folder | download | duplicates (3)
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
#ifndef NFTABLES_IPOPT_H
#define NFTABLES_IPOPT_H

#include <proto.h>
#include <exthdr.h>
#include <statement.h>

extern struct expr *ipopt_expr_alloc(const struct location *loc,
				      uint8_t type, uint8_t field);

extern void ipopt_init_raw(struct expr *expr, uint8_t type,
			    unsigned int offset, unsigned int len,
			    uint32_t flags, bool set_unknown);

extern bool ipopt_find_template(struct expr *expr, unsigned int offset,
			  unsigned int len);

enum ipopt_fields {
	IPOPT_FIELD_INVALID,
	IPOPT_FIELD_TYPE,
	IPOPT_FIELD_LENGTH,
	IPOPT_FIELD_VALUE,
	IPOPT_FIELD_PTR,
	IPOPT_FIELD_ADDR_0,
};

extern const struct exthdr_desc *ipopt_protocols[UINT8_MAX];

#endif /* NFTABLES_IPOPT_H */