Signed-off-by: Masatake YAMATO <yamato@redhat.com>
int e = errno;
close(sd);
errno = e;
- err(EXIT_FAILURE, "failed to specify a buffer spec to a packet socket");
+ err((errno == ENOPROTOOPT? EXIT_ENOPROTOOPT: EXIT_FAILURE),
+ "failed to specify a buffer spec to a packet socket");
}
munmap_data = malloc(sizeof (*munmap_data));
. "$TS_TOPDIR"/functions.sh
ts_init "$*"
ts_skip_nonroot
-ts_skip_qemu_user
. "$TS_SELF"/lsfd-functions.bash
wait ${MKFDS_PID}
} > $TS_OUTPUT 2>&1
+if [[ $? == "$ENOPROTOOPT" ]]; then
+ ts_skip "packet socket doesn't support attaching a buffer on this platform"
+fi
+
ts_finalize