+ ifis, err := net.Interfaces()
+ if err != nil {
+ log.Fatalln("Can not get network interfaces list:", err)
+ }
+ for _, ifiReString := range ctx.MCDRxIfis {
+ ifiRe, err := regexp.CompilePOSIX(ifiReString)
+ if err != nil {
+ log.Fatalf("Can not compile POSIX regexp \"%s\": %s", ifiReString, err)
+ }
+ for _, ifi := range ifis {
+ if ifiRe.MatchString(ifi.Name) {
+ if err = ctx.MCDRx(ifi.Name); err != nil {
+ log.Printf("Can not run MCD reception on %s: %s", ifi.Name, err)
+ }
+ }
+ }
+ }
+