-/* $OpenBSD: ifconfig.c,v 1.359 2018/02/20 03:45:06 dlg Exp $ */
+/* $OpenBSD: ifconfig.c,v 1.360 2018/02/20 15:33:16 tb Exp $ */
/* $NetBSD: ifconfig.c,v 1.40 1997/10/01 02:19:43 enami Exp $ */
/*
warn("SIOCSVNETFLOWID");
}
-void
-getvnetflowid(struct ifencap *ife)
-{
- if (strlcpy(ifr.ifr_name, name, sizeof(ifr.ifr_name)) >=
- sizeof(ifr.ifr_name))
- errx(1, "vnetflowid: name is too long");
-
- if (ioctl(s, SIOCGVNETFLOWID, &ifr) == -1)
- return;
-
- if (ifr.ifr_vnetid)
- ife->ife_flags |= IFE_VNETFLOWID;
-}
-
void
mpe_status(void)
{
}
#endif /* SMALL */
+void
+getvnetflowid(struct ifencap *ife)
+{
+ if (strlcpy(ifr.ifr_name, name, sizeof(ifr.ifr_name)) >=
+ sizeof(ifr.ifr_name))
+ errx(1, "vnetflowid: name is too long");
+
+ if (ioctl(s, SIOCGVNETFLOWID, &ifr) == -1)
+ return;
+
+ if (ifr.ifr_vnetid)
+ ife->ife_flags |= IFE_VNETFLOWID;
+}
+
void
setvnetid(const char *id, int param)
{