Displaying 1 result from an estimated 1 matches for "err_nic_type_info".
2012 Nov 23
1
[PATCH] nictype.c32: PXELINUX module to display UNDI NIC bus type...
...PE nic_type_info;
+ char filename[] = "VVVVDDDD";
+
+ openconsole(&dev_stdcon_r, &dev_stdcon_w);
+
+ status = pxe_get_nic_type(&nic_type_info);
+ if (status == -1 || status != PXENV_STATUS_SUCCESS) {
+ fprintf(stderr, "pxe_get_nic_type failure\n");
+ goto err_nic_type_info;
+ }
+
+ /* Unknown NIC type? */
+ if (nic_type_info.NicType >= Countof(nic_type_names))
+ nic_type_info.NicType = 0;
+
+ printf("NIC type: %s\n", nic_type_names[nic_type_info.NicType]);
+
+ if (argc < 1 || argc > 2 || (argc == 2 && argv[1] &&
+...