Skip to content
Merged
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
1 change: 1 addition & 0 deletions container.go
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ type ContainerInfo struct {
Events []string // List of events that occurred for the container. It currently includes only "oom" (Out Of Memory) event if it occurred.
HostIP string // The IP address of the gateway which controls the host side of the container's virtual ethernet pair.
ContainerIP string // The IP address of the container side of the container's virtual ethernet pair.
ContainerIPv6 string // The IPv6 address of the container side of the container's virtual ethernet pair.
ExternalIP string //
ContainerPath string // The path to the directory holding the container's files (both its control scripts and filesystem).
ProcessIDs []string // List of running processes.
Expand Down
1 change: 1 addition & 0 deletions net_out_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ const (
ProtocolTCP
ProtocolUDP
ProtocolICMP
ProtocolICMPv6
)

type IPRange struct {
Expand Down
10 changes: 10 additions & 0 deletions server/request_handling_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1383,6 +1383,16 @@ var _ = Describe("When a client connects", func() {
})
})

Context("as ICMPv6", func() {
It("permits ICMPv6 traffic", func() {
Expect(container.NetOut(garden.NetOutRule{
Protocol: garden.ProtocolICMPv6,
})).To(Succeed())
rule := fakeContainer.NetOutArgsForCall(0)
Expect(rule.Protocol).To(Equal(garden.ProtocolICMPv6))
})
})

Context("as ALL", func() {
It("permits ALL traffic", func() {
Expect(container.NetOut(garden.NetOutRule{
Expand Down