search for: extlen

Displaying 8 results from an estimated 8 matches for "extlen".

Did you mean: exten
2008 Jun 14
5
PATCH: ipconfig may accept DHCPOFFER as DHCPACK
...K: /* NAK received */ --- > case 2: /* NAK received */ diff dhcp_proto.c ../ipconfig.old/dhcp_proto.c: 74,78d73 < * Returns: < * 0 = Not handled < * 2 = DHCPOFFER (from dhcp_proto.h) < * 5 = DHCPACK < * 6 = DHCPNACK 109,110c104,105 < ret = bootp_parse(dev, hdr, exts, extlen) ? DHCPOFFER : 0; < if (ret == DHCPOFFER && serverid != INADDR_NONE) --- > ret = bootp_parse(dev, hdr, exts, extlen); > if (ret == 1 && serverid != INADDR_NONE) 116c111 < ret = bootp_parse(dev, hdr, exts, extlen) ? DHCPACK : 0; --- > ret = bootp_parse(dev, h...
2011 May 19
3
SEEK_DATA/HOLE on ocfs2 - v2
Two patches follow this message. One fixes the default implementation of SEEK_HOLE/DATA. This patch applies atop Josef's last posted patch. The second patch implements the same on ocfs2. The test tool for the same is available here. http://oss.oracle.com/~smushran/seek_data/seek_test.c It is improved since the last post. It runs cleanly on zfs, ocfs2 and ext3 (default behavior). Users
2011 May 19
3
SEEK_DATA/HOLE on ocfs2 - v2
Two patches follow this message. One fixes the default implementation of SEEK_HOLE/DATA. This patch applies atop Josef's last posted patch. The second patch implements the same on ocfs2. The test tool for the same is available here. http://oss.oracle.com/~smushran/seek_data/seek_test.c It is improved since the last post. It runs cleanly on zfs, ocfs2 and ext3 (default behavior). Users
2006 Jun 22
2
[patch] ipconfig add dhcp file preseeding support
...tp_proto.c +++ b/usr/kinit/ipconfig/bootp_proto.c @@ -74,6 +74,7 @@ int bootp_parse(struct netdev *dev, stru dev->hostname[0] = '\0'; dev->nisdomainname[0] = '\0'; dev->bootpath[0] = '\0'; + memcpy(&dev->filename, &hdr->boot_file, FNLEN); if (extlen >= 4 && exts[0] == 99 && exts[1] == 130 && exts[2] == 83 && exts[3] == 99) { diff --git a/usr/kinit/ipconfig/dhcp_proto.c b/usr/kinit/ipconfig/dhcp_proto.c index 9a30660..e86bbb2 100644 --- a/usr/kinit/ipconfig/dhcp_proto.c +++ b/usr/kinit/ipconfig/dhcp_prot...
2005 Jan 05
1
rsync filename heuristics
...t; + *basename = slash+1; > + } else { > + *basename = fname; > + *dirname = "."; > + } > +} > + > +static unsigned int measure_name(const char *name, > + const char *basename, > + const char *ext) > +{ > + int namelen = strlen(name); > + int extlen = strlen(ext); > + unsigned int score = 0; > + > + /* Extensions must match */ > + if (namelen <= extlen || strcmp(name+namelen-extlen, ext) != 0) > + return 0; > + > + /* Now score depends on similarity of prefix */ > + for (; *name==*basename && *name; name++,...
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
2012 May 22
0
[klibc:master] ipconfig: Write $DOMAINSEARCH as domain-search
...ze) { + dprintf("bug:%s():bottom: malloc(%ld), write(%ld)\n", + __func__, (long)decoded_size, (long)(dst_i + 1)); + exit(1); + } +#endif + return decoded_str; +} + +/* * Parse a bootp reply packet */ int bootp_parse(struct netdev *dev, struct bootp_hdr *hdr, uint8_t *exts, int extlen) { + uint8_t ext119_buf[BOOTP_EXTS_SIZE]; + int16_t ext119_len = 0; + dev->bootp.gateway = hdr->giaddr; dev->ip_addr = hdr->yiaddr; dev->ip_server = hdr->siaddr; @@ -143,11 +358,32 @@ int bootp_parse(struct netdev *dev, struct bootp_hdr *hdr, if (len == 4 &&...
2012 Sep 03
1
[GIT-PULL] XFS filesystem driver
...inode for realtime extents */ + xfs_ino_t sb_rsumino; /* summary inode for rt bitmap */ + xfs_agblock_t sb_rextsize; /* realtime extent size, blocks */ + xfs_agblock_t sb_agblocks; /* size of an allocation group */ + xfs_agnumber_t sb_agcount; /* number of allocation groups */ + xfs_extlen_t sb_rbmblocks; /* number of rt bitmap blocks */ + xfs_extlen_t sb_logblocks; /* number of log blocks */ + uint16_t sb_versionnum; /* header version == XFS_SB_VERSION */ + uint16_t sb_sectsize; /* volume sector size, bytes */ + uint16_t sb_inodesize; /* inode size, bytes */ + uint16_...