aboutsummaryrefslogtreecommitdiff
path: root/src/expr/masquerade.rs
blob: dce787f4b3b0a39f9fa607a914a0d1494add4249 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
use rustables_macros::nfnetlink_struct;

use super::Expression;

/// Sets the source IP to that of the output interface.
#[derive(Default, Debug, PartialEq, Eq)]
#[nfnetlink_struct(nested = true)]
pub struct Masquerade;

impl Clone for Masquerade {
    fn clone(&self) -> Self {
        Masquerade {}
    }
}

impl Expression for Masquerade {
    fn get_name() -> &'static str {
        "masq"
    }
}