Дипломная работа: Автоматизация учета и обработки данных по использованию трафика ЛВС для АО "БИТК"

Внимание! Если размещение файла нарушает Ваши авторские права, то обязательно сообщите нам
124
| System.Windows.Forms.AnchorStyles.Right)));
this.textBoxIp.Location = new System.Drawing.Point(12, 51);
this.textBoxIp.Multiline = true;
this.textBoxIp.Name = "textBoxIp";
this.textBoxIp.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.textBoxIp.Size = new System.Drawing.Size(351, 146);
this.textBoxIp.TabIndex = 1;
//
// buttonOk
//
this.buttonOk.Anchor =
((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bott
om | System.Windows.Forms.AnchorStyles.Right)));
this.buttonOk.DialogResult =
System.Windows.Forms.DialogResult.OK;
this.buttonOk.Location = new System.Drawing.Point(201, 203);
this.buttonOk.Name = "buttonOk";
this.buttonOk.Size = new System.Drawing.Size(78, 23);
this.buttonOk.TabIndex = 2;
this.buttonOk.Text = "OK";
this.buttonOk.UseVisualStyleBackColor = true;
//
// buttonCancel
//
this.buttonCancel.Anchor =
((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bott
om | System.Windows.Forms.AnchorStyles.Right)));
this.buttonCancel.DialogResult =
System.Windows.Forms.DialogResult.Cancel;
this.buttonCancel.Location = new System.Drawing.Point(285, 203);
this.buttonCancel.Name = "buttonCancel";
125
this.buttonCancel.Size = new System.Drawing.Size(78, 22);
this.buttonCancel.TabIndex = 3;
this.buttonCancel.Text = "Отмена";
this.buttonCancel.UseVisualStyleBackColor = true;
//
// label1
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(12, 35);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(198, 13);
this.label1.TabIndex = 4;
this.label1.Text = "IP адреса (одна строчка - один адрес)";
//
// TrafficSettingsForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(375, 233);
this.Controls.Add(this.label1);
this.Controls.Add(this.buttonCancel);
this.Controls.Add(this.buttonOk);
this.Controls.Add(this.textBoxIp);
this.Controls.Add(this.dateTimePickerDate);
this.Name = "TrafficSettingsForm";
this.StartPosition =
System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Настройки";
this.ResumeLayout(false);
this.PerformLayout();
126
}
#endregion
private System.Windows.Forms.Button buttonOk;
private System.Windows.Forms.Button buttonCancel;
private System.Windows.Forms.Label label1;
public System.Windows.Forms.DateTimePicker dateTimePickerDate;
public System.Windows.Forms.TextBox textBoxIp;
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace flowsimulator {
public partial class FormIpfixTemplate : Form {
private FormIpfixTemplateList parent = null;
public FormIpfixTemplate(FormIpfixTemplateList p) {
InitializeComponent();
for (int i = 1; i < TemplateItem.Length; ++i) {
if (TemplateItem[i] != "RESERVED") {
listBoxAll.Items.Add(TemplateItem[i]);
}
}
this.parent = p;
127
ushort nextId = 256;
foreach (netflow.IpfixTemplate t in parent.TemplateList) {
if (t.TemplateId >= nextId) {
++nextId;
}
}
textBoxTemplateId.Text = nextId.ToString();
btnAdd.Enabled = false;
}
public static string[] TemplateItem = {
"UNKNOWN", // 0
"octetDeltaCount", // 1
"packetDeltaCount",
"RESERVED",
"protocolIdentifier",
"ipClassOfService", // 5
"tcpControlBits",
"sourceTransportPort",
"sourceIPv4Address",
"sourceIPv4PrefixLength",
"ingressInterface", // 10
"destinationTransportPort",
"destinationIPv4Address",
"destinationIPv4PrefixLength",
"egressInterface",
"ipNextHopIPv4Address", // 15
"bgpSourceAsNumber",
"bgpDestinationAsNumber",
"bgpNexthopIPv4Address",
"postMCastPacketDeltaCount",
"postMCastOctetDeltaCount", //20
128
"flowEndSysUpTime",
"flowStartSysUpTime",
"postOctetDeltaCount",
"postPacketDeltaCount",
"minimumIpTotalLength", // 25
"maximumIpTotalLength",
"sourceIPv6Address",
"destinationIPv6Address",
"sourceIPv6PrefixLength",
"destinationIPv6PrefixLength", // 30
"flowLabelIPv6",
"icmpTypeCodeIPv4",
"igmpType",
"RESERVED",
"RESERVED", // 35
"flowActiveTimeout",
"flowIdleTimeout",
"RESERVED",
"RESERVED",
"exportedOctetTotalCount", // 40
"exportedMessageTotalCount",
"exportedFlowRecordTotalCount",
"RESERVED",
"sourceIPv4Prefix",
"destinationIPv4Prefix", // 45
"mplsTopLabelType",
"mplsTopLabelIPv4Address",
"RESERVED",
"RESERVED",
"RESERVED", // 50
"RESERVED",
Источник: https://baza.diplomsite.ru/previewfile/2370