//go:build !ignore_autogenerated
// +build !ignore_autogenerated

// SPDX-License-Identifier: Apache-2.0
// Copyright Authors of Cilium

// Code generated by deepcopy-gen. DO NOT EDIT.

package node

import (
	net "net"
)

// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *LocalNode) DeepCopyInto(out *LocalNode) {
	*out = *in
	in.Node.DeepCopyInto(&out.Node)
	if in.Local != nil {
		in, out := &in.Local, &out.Local
		*out = new(LocalNodeInfo)
		(*in).DeepCopyInto(*out)
	}
	return
}

// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalNode.
func (in *LocalNode) DeepCopy() *LocalNode {
	if in == nil {
		return nil
	}
	out := new(LocalNode)
	in.DeepCopyInto(out)
	return out
}

// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *LocalNodeInfo) DeepCopyInto(out *LocalNodeInfo) {
	*out = *in
	if in.IPv4NativeRoutingCIDR != nil {
		in, out := &in.IPv4NativeRoutingCIDR, &out.IPv4NativeRoutingCIDR
		*out = (*in).DeepCopy()
	}
	if in.IPv6NativeRoutingCIDR != nil {
		in, out := &in.IPv6NativeRoutingCIDR, &out.IPv6NativeRoutingCIDR
		*out = (*in).DeepCopy()
	}
	if in.ServiceLoopbackIPv4 != nil {
		in, out := &in.ServiceLoopbackIPv4, &out.ServiceLoopbackIPv4
		*out = make(net.IP, len(*in))
		copy(*out, *in)
	}
	if in.ServiceLoopbackIPv6 != nil {
		in, out := &in.ServiceLoopbackIPv6, &out.ServiceLoopbackIPv6
		*out = make(net.IP, len(*in))
		copy(*out, *in)
	}
	return
}

// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LocalNodeInfo.
func (in *LocalNodeInfo) DeepCopy() *LocalNodeInfo {
	if in == nil {
		return nil
	}
	out := new(LocalNodeInfo)
	in.DeepCopyInto(out)
	return out
}
