search for: parse_addr

Displaying 6 results from an estimated 6 matches for "parse_addr".

Did you mean: base_addr
2019 Jun 13
0
[PATCH] ipconfig: Implement support -d ...:dns0:dns1 options
...} - if (opt > 6) { + if (opt > 8) { fprintf(stderr, "%s: too many options for %s\n", progname, dev->name); @@ -647,6 +647,12 @@ static int parse_device(struct netdev *dev, char *ip) case 6: dev->caps = parse_proto(ip); break; + case 7: + parse_addr(&dev->ip_nameserver[0], ip); + break; + case 8: + parse_addr(&dev->ip_nameserver[1], ip); + break; } } } -- 2.20.1
2019 Jul 28
0
[klibc:master] ipconfig: Implement support -d ...:dns0:dns1 options
...} - if (opt > 6) { + if (opt > 8) { fprintf(stderr, "%s: too many options for %s\n", progname, dev->name); @@ -647,6 +647,12 @@ static int parse_device(struct netdev *dev, char *ip) case 6: dev->caps = parse_proto(ip); break; + case 7: + parse_addr(&dev->ip_nameserver[0], ip); + break; + case 8: + parse_addr(&dev->ip_nameserver[1], ip); + break; } } }
2017 Sep 14
0
[PATCH] nfsmount: support nfsvers= and vers= options
...) { + case 2: + mount_data.flags &= ~NFS_MOUNT_VER3; + break; + case 3: + mount_data.flags |= NFS_MOUNT_VER3; + break; + default: + fprintf(stderr, "%s: bad NFS version '%d'\n", + progname, nfs_version); + longjmp(abort_buf, 1); + } + } } static uint32_t parse_addr(const char *ip) -- 2.11.0
2019 Jan 18
0
[klibc:master] nfsmount: support nfsvers= and vers= options
...) { + case 2: + mount_data.flags &= ~NFS_MOUNT_VER3; + break; + case 3: + mount_data.flags |= NFS_MOUNT_VER3; + break; + default: + fprintf(stderr, "%s: bad NFS version '%d'\n", + progname, nfs_version); + longjmp(abort_buf, 1); + } + } } static uint32_t parse_addr(const char *ip)
2019 Dec 11
0
[klibc:master] ipconfig: Ignore NTP server address and any additional fields
...any options for %s\n", - progname, dev->name); - longjmp(abort_buf, 1); - } - if (*ip == '\0') continue; dprintf("IP-Config: opt #%d: '%s'\n", opt, ip); @@ -653,6 +646,9 @@ static int parse_device(struct netdev *dev, char *ip) case 8: parse_addr(&dev->ip_nameserver[1], ip); break; + case 9: + /* NTP server - ignore */ + break; } } }
2011 Jul 08
4
[PATCH 0/4] usr/kinit checkpatch
Various coding style fixes checkpatch warns about. The goal is not to be 100% checkpatch compliant, but to have more consistent coding style. As this is a trivial patch serie, will land in 24 hours in klibc git, unless of course ml review hits a bugger. Checked with size(3) that the generated kinit, fstype, ipconfig and nfsmount are the same. maximilian attems (4): [klibc] ipconfig: reduce