Displaying 4 results from an estimated 4 matches for "mac_str".
Did you mean:
mac2str
2005 May 12
0
[PATCH] Trusted IRIX Support
...ning_cap);
+ }
+ else
+ fatal("Unable to convert %s into a capability
set!",
+ cap_string);
+ }
+ }
+
+ #endif /* WITH_IRIX_CAP */
+
+
+ #ifdef WITH_IRIX_MAC
+ void
+ irix_set_mac(const char * mac_string)
+ {
+ mac_t running_mac;
+ if(mac_string == NULL)
+ fatal("irix_set_mac received NULL for input!");
+ if(sysconf(_SC_MAC) != 0) {
+ debug("irix_set_mac: setting mac label to %s",mac_string);
+ running_ma...
2007 Feb 12
1
playing with SO_BROADCAST on centos
...uot;);
while(1)
{
tm.tv_sec = 0;
tm.tv_usec = 500000;
FD_ZERO(&read_set);
FD_SET(socket_handle, &read_set);
error = select(socket_handle + 1, &read_set, NULL, NULL, &tm);
if(error <= 0)
{
break;
}
else
{
char ip_str[100];
char mac_str[100];
char mask_str[100];
error = recvfrom(socket_handle, &nmp, sizeof(nmp), 0, NULL, 0);
if(error < 0)
{
printf("errno=%d %s\n", errno, strerror(errno));
continue;
}
else if(nmp.code != IWord(NMP_LIST))
{
printf("unknown return...
2011 Jul 12
0
[PATCH] pxelinux: open_file() returns a non-negative handle
...truct com32_filedata *filedata)
/* Try loading by UUID */
if (have_uuid) {
strcpy(config_file, UUID_str);
- if (!open_file(ConfigName, filedata))
+ if (open_file(ConfigName, filedata) >= 0)
return 0;
}
/* Try loading by MAC address */
strcpy(config_file, MAC_str);
- if (!open_file(ConfigName, filedata))
+ if (open_file(ConfigName, filedata) >= 0)
return 0;
/* Nope, try hexadecimal IP prefixes... */
@@ -1091,7 +1091,7 @@ static int pxe_open_config(struct com32_filedata *filedata)
last = &config_file[8];
while (tries) {...
2011 Mar 27
1
[PATCH] MAC Address Ranges
...e_load_config(void)
char *config_file;
char *last;
int tries = 8;
+ int mac_tries = 16;
+ char *last_mac;
get_prefix();
if (DHCPMagic & 0x02) {
@@ -1101,8 +1103,16 @@ static int pxe_load_config(void)
/* Try loading by MAC address */
strcpy(config_file, MAC_str);
- if (try_load(ConfigName))
- return 0;
+ last_mac = &config_file[20];
+
+ while (mac_tries) {
+ *last_mac = '\0';
+ if (try_load(ConfigName)) {
+ return 0;
+ }
+ last_mac--;
+ mac_tries--;
+ }
/* Nope, try hex...