diff options
author | Naoto Hanaue <hanaue.naoto@po.ntts.co.jp> | 2015-01-22 16:14:37 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-01-22 20:31:35 +0900 |
commit | 3338cc7c8a914eb1fdde590ff916189766d43c46 (patch) | |
tree | 5ec94c215d84c1991c31cb96d324236704265c04 /test/scenario_test/exabgp_test_conf | |
parent | f988619c365f231b176eeb1f0d65d69017906c8c (diff) |
scenario_test: add malformd packet test
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'test/scenario_test/exabgp_test_conf')
4 files changed, 135 insertions, 0 deletions
diff --git a/test/scenario_test/exabgp_test_conf/gobgpd.conf b/test/scenario_test/exabgp_test_conf/gobgpd.conf new file mode 100644 index 00000000..31c37640 --- /dev/null +++ b/test/scenario_test/exabgp_test_conf/gobgpd.conf @@ -0,0 +1,78 @@ +[Global] + As = 65000 + RouterId = "192.168.255.1" + [Global.DefaultRouteDistance] + ExternalRouteDistance = 0 + InternalRouteDistance = 0 + [Global.Confederation] + Identifier = 0 + [Global.BgpGlobalState] + StartTime = 0001-01-01T00:00:00Z + +[[NeighborList]] + NeighborAddress = "10.0.0.100" + PeerAs = 65100 + Description = "" + AuthPassword = "hoge100" + PeerType = 0 + RemovePrivateAs = 0 + RouteFlapDamping = false + [NeighborList.RouteSelectionOptions] + AlwaysCompareMed = false + IgnoreAsPathLength = false + ExternalCompareRouterId = false + AdvertiseInactiveRoutes = false + EnableAigp = false + [NeighborList.UseMultiplePaths] + [NeighborList.UseMultiplePaths.Ebgp] + AllowMultipleAs = false + MaximumPaths = 0 + [NeighborList.UseMultiplePaths.Ibgp] + MaximumPaths = 0 + [NeighborList.UseMultiplePaths.Eibgp] + MaximumPaths = 0 + [NeighborList.GracefulRestart] + RestartTime = 0 + StaleRoutesTime = 0.0 + [NeighborList.ApplyPolicy] + [NeighborList.Timers] + ConnectRetry = 0.0 + HoldTime = 0.0 + KeepaliveInterval = 0.0 + MinimumAdvertisementInterval = 0.0 + SendUpdateDelay = 0.0 + [NeighborList.EbgpMultihop] + MultihopTtl = 0 + [NeighborList.RouteReflector] + RouteReflectorClusterId = 0 + RouteReflectorClient = false + [NeighborList.BgpLoggingOptions] + LogNeighborStateChanges = false + [NeighborList.TransportOptions] + TcpMss = 0 + MtuDiscovery = false + PassiveMode = false + [NeighborList.BgpNeighborCommonState] + State = 0 + Uptime = 0001-01-01T00:00:00Z + OpenIn = 0 + OpenOut = 0 + UpdateIn = 0 + UpdateOut = 0 + UpdateRecvTime = 0001-01-01T00:00:00Z + KeepaliveIn = 0 + KeepaliveOut = 0 + NotifyIn = 0 + NotifyOut = 0 + RefreshIn = 0 + RefreshOut = 0 + DynamicCapIn = 0 + DynamicCapOut = 0 + TotalIn = 0 + TotalOut = 0 + EstablishedCount = 0 + DroppedCount = 0 + +[Policy] + [Policy.DefinedSets] + [Policy.PolicyDefinitions] diff --git a/test/scenario_test/exabgp_test_conf/malformed1-exabgp-gobgp-v4-AS4_PATH.conf b/test/scenario_test/exabgp_test_conf/malformed1-exabgp-gobgp-v4-AS4_PATH.conf new file mode 100644 index 00000000..79502e78 --- /dev/null +++ b/test/scenario_test/exabgp_test_conf/malformed1-exabgp-gobgp-v4-AS4_PATH.conf @@ -0,0 +1,19 @@ +neighbor 10.0.255.1 { + router-id 192.168.0.7; + local-address 10.0.0.100; + local-as 65100; + peer-as 65000; + hold-time 90; + md5 "hoge100"; + graceful-restart; + + family { + inet unicast; + } + static { + route 172.16.13.0/24 next-hop 10.0.0.120; + route 192.168.100.100 next-hop 10.0.0.110; + # malformed AS4_PATH + route 10.7.0.17/32 next-hop 10.0.255.7 attribute [ 0x11 0x60 0x11223344 ]; + } +} diff --git a/test/scenario_test/exabgp_test_conf/malformed1-exabgp-gobgp-v4-AS_PATH.conf b/test/scenario_test/exabgp_test_conf/malformed1-exabgp-gobgp-v4-AS_PATH.conf new file mode 100644 index 00000000..a241c71f --- /dev/null +++ b/test/scenario_test/exabgp_test_conf/malformed1-exabgp-gobgp-v4-AS_PATH.conf @@ -0,0 +1,19 @@ +neighbor 10.0.255.1 { + router-id 192.168.0.7; + local-address 10.0.0.100; + local-as 65100; + peer-as 65000; + hold-time 90; + md5 "hoge100"; + graceful-restart; + + family { + inet unicast; + } + static { + route 172.16.13.0/24 next-hop 10.0.0.120; + route 192.168.100.100 next-hop 10.0.0.110; + # malformed AS_PATH + route 10.7.0.2/32 next-hop 10.0.255.7 attribute [ 0x02 0x60 0x11223344 ]; + } +} diff --git a/test/scenario_test/exabgp_test_conf/malformed1-exabgp-gobgp-v4-MP_REACH_NLRI.conf b/test/scenario_test/exabgp_test_conf/malformed1-exabgp-gobgp-v4-MP_REACH_NLRI.conf new file mode 100644 index 00000000..95ea6ba1 --- /dev/null +++ b/test/scenario_test/exabgp_test_conf/malformed1-exabgp-gobgp-v4-MP_REACH_NLRI.conf @@ -0,0 +1,19 @@ +neighbor 10.0.255.1 { + router-id 192.168.0.7; + local-address 10.0.0.100; + local-as 65100; + peer-as 65000; + hold-time 90; + md5 "hoge100"; + graceful-restart; + + family { + inet unicast; + } + static { + route 172.16.13.0/24 next-hop 10.0.0.120; + route 192.168.100.100 next-hop 10.0.0.110; + # malformed MP_UNREACH_NLRI + route 10.7.0.15/32 next-hop 10.0.255.7 attribute [ 0x0f 0x60 0x11223344 ]; + } +} |