Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ Netflow packets generator with Scape library

* Download it! [https://github.com/redBorder/pygennf/tree/master/download]

> rpm: wget https://github.com/redBorder/pygennf/blob/master/download/pygennf-0.1-1.noarch.rpm
> rpm: (python2.6) wget https://github.com/redBorder/pygennf/raw/master/download/pygennf-0.1-1.noarch.rpm

> tar.gz: wget https://github.com/redBorder/pygennf/blob/master/download/pygennf-0.1.linux-x86_64.tar.gz
> tar.gz: wget https://github.com/redBorder/pygennf/raw/master/download/pygennf-0.1.tar.gz

* How to install:
python setup.py install
Expand Down
Binary file modified download/pygennf-0.1-1.noarch.rpm
Binary file not shown.
Binary file removed download/pygennf-0.1-1.src.rpm
Binary file not shown.
Binary file removed download/pygennf-0.1-1_python26.noarch.rpm
Binary file not shown.
Binary file modified download/pygennf-0.1.tar.gz
Binary file not shown.
6 changes: 4 additions & 2 deletions src/pygennf_v9.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ def main():
else:
IP_DST = "10.0.30.89"

if IP_DST == "127.0.0.1":
conf.L3socket=L3RawSocket

if args.src_port:
PORT_SRC = int(args.src_port)
else:
Expand Down Expand Up @@ -126,8 +129,7 @@ def main():
Padding=3)
]


data = IP(dst=IP_DST)/UDP(sport=PORT_SRC,dport=PORT_DST)
data = IP(src=IP_SRC,dst=IP_DST)/UDP(sport=PORT_SRC,dport=PORT_DST)
data/=header_v9/flowSet_header_v9/flowset_id_v9

for t in template:
Expand Down