func (i *IE) AlternativeSMFIPAddress() (*AlternativeSMFIPAddressFields, error) {
	if i.Type != AlternativeSMFIPAddress {
		return nil, &InvalidTypeError{Type: i.Type}
	}
	fields, err := ParseAlternativeSMFIPAddressFields(i.Payload)
	if err != nil {
		return nil, err
	}
	return fields, nil
}
AlternativeSMFIPAddress returns AlternativeSMFIPAddress in structured format if the type of IE matches.
package ie
import (
	"io"
	"net"
)
func NewAlternativeSMFIPAddress(v4, v6 net.IP) *IE {
	fields := NewAlternativeSMFIPAddressFields(v4, v6)
	b, err := fields.Marshal()
	if err != nil {
		return nil
	}
	return New(AlternativeSMFIPAddress, b)
}