Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IPv6 support in packetAggregator #149

Open
soumen1808 opened this issue Jul 16, 2022 · 0 comments
Open

IPv6 support in packetAggregator #149

soumen1808 opened this issue Jul 16, 2022 · 0 comments

Comments

@soumen1808
Copy link

While running Vermont with raw packet capture from interface, I observed that IPv6 fields are not supported.

I have a packetAggregator rule like this

        <packetAggregator id="3">
                <rule>
                        <templateId>998</templateId>
                        <flowKey>
                                <ieName>sourceIPv6Address</ieName>
                        </flowKey>
                        <flowKey>
                                <ieName>destinationIPv6Address</ieName>
                        </flowKey>
                        <flowKey>
                                <ieName>protocolIdentifier</ieName>
                        </flowKey>
                        <flowKey>
                                <ieName>sourceTransportPort</ieName>
                        </flowKey>
                        <flowKey>
                                <ieName>destinationTransportPort</ieName>
                        </flowKey>
                        <nonFlowKey>
                                <ieName>flowStartMilliSeconds</ieName>
                        </nonFlowKey>
                        <nonFlowKey>
                                <ieName>flowEndMilliSeconds</ieName>
                        </nonFlowKey>
                        <nonFlowKey>
                                <ieName>octetDeltaCount</ieName>
                        </nonFlowKey>
                        <nonFlowKey>
                                <ieName>packetDeltaCount</ieName>
                        </nonFlowKey>
                        <nonFlowKey>
                                <ieName>tcpControlBits</ieName>
                        </nonFlowKey>
                </rule>
                <expiration>
                        <inactiveTimeout unit="sec">10</inactiveTimeout>
                        <activeTimeout unit="sec">20</activeTimeout>
                </expiration>
                <pollInterval unit="msec">1000</pollInterval>
                <next>10</next>
        </packetAggregator>

On running vermont with this configuration, I get this following error

root@10d6e048d785:~# /usr/sbin/vermont -s -q -l debug -f vermont_if.xml  
16/07 06:27:25 CRITICAL: Type sourceIPv6Address (id=27, length=16) is not contained in raw packet. Please remove it from PacketAggregator rule.
terminate called after throwing an instance of 'std::runtime_error'
  what():  : Type sourceIPv6Address (id=27, length=16) is not contained in raw packet. Please remove it from PacketAggregator rule.
Aborted (core dumped)

So is there any point I am missing to run IPv6 with Vermont or there is a reason for not supporting IPv6 with raw packet capture.
I have seen IPv6 header parsing is supported in packet classify() method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant