Skip to content

Commit 9c51be9

Browse files
committed
Update demo.
1 parent 07a6ccf commit 9c51be9

File tree

2 files changed

+28
-3
lines changed

2 files changed

+28
-3
lines changed

demo_notebook.ipynb

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"# nfstream: a Flexible Network Data Analysis Framework"
7+
"# NFStream: a Flexible Network Data Analysis Framework"
88
]
99
},
1010
{
@@ -60,7 +60,7 @@
6060
"* `active_timeout` [default= `300` ]: Flows that are active for more than this value in seconds will be exported.\n",
6161
"* `plugins` [default= `()` ]: Set of user defined NFPlugins.\n",
6262
"* `dissect` [default= `True` ]: Enable nDPI deep packet inspection library for Layer 7 visibility.\n",
63-
"* `max_tcp_dissections` [default= `10` ]: Maximum per flow TCP packets to dissect (ignored when dissect=False).\n",
63+
"* `max_tcp_dissections` [default= `80` ]: Maximum per flow TCP packets to dissect (ignored when dissect=False).\n",
6464
"* `max_udp_dissections` [default= `16` ]: Maximum per flow UDP packets to dissect (ignored when dissect=False).\n",
6565
"* `statistics` [default= `False`]: Enable statistical flow features extraction.\n",
6666
"* `account_ip_padding_size` [default= `False`]: Enable Ethernet padding accounting when reporting IP sizes.\n",
@@ -115,6 +115,31 @@
115115
"df.head()"
116116
]
117117
},
118+
{
119+
"cell_type": "markdown",
120+
"metadata": {},
121+
"source": [
122+
"We can enable IP anonymization as follow:"
123+
]
124+
},
125+
{
126+
"cell_type": "code",
127+
"execution_count": null,
128+
"metadata": {},
129+
"outputs": [],
130+
"source": [
131+
"df = NFStreamer(source=\"pcaps/instagram.pcap\", statistics=True).to_pandas(ip_anonymization=True)"
132+
]
133+
},
134+
{
135+
"cell_type": "code",
136+
"execution_count": null,
137+
"metadata": {},
138+
"outputs": [],
139+
"source": [
140+
"df.head()"
141+
]
142+
},
118143
{
119144
"cell_type": "markdown",
120145
"metadata": {},

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nfstream>=5.1.0
1+
nfstream>=5.1.5

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy