misc.c (185289) | misc.c (211095) |
---|---|
1/*- | 1/*- |
2 * Copyright (c) 2005-2008 Daniel Braniss <danny@cs.huji.ac.il> | 2 * Copyright (c) 2005-2010 Daniel Braniss <danny@cs.huji.ac.il> |
3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. 10 * 2. Redistributions in binary form must reproduce the above copyright --- 14 unchanged lines hidden (view full) --- 25 * 26 */ 27 28/* 29 | $Id: misc.c,v 2.1 2006/11/12 08:06:51 danny Exp $ 30 */ 31 32#include <sys/cdefs.h> | 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright 9 * notice, this list of conditions and the following disclaimer. 10 * 2. Redistributions in binary form must reproduce the above copyright --- 14 unchanged lines hidden (view full) --- 25 * 26 */ 27 28/* 29 | $Id: misc.c,v 2.1 2006/11/12 08:06:51 danny Exp $ 30 */ 31 32#include <sys/cdefs.h> |
33__FBSDID("$FreeBSD: head/sbin/iscontrol/misc.c 185289 2008-11-25 07:17:11Z scottl $"); | 33__FBSDID("$FreeBSD: head/sbin/iscontrol/misc.c 211095 2010-08-09 12:36:36Z des $"); |
34 35#include <sys/param.h> 36#include <sys/types.h> 37#include <sys/socket.h> 38#include <sys/sysctl.h> 39 40#include <netinet/in.h> 41#include <netinet/tcp.h> 42#include <arpa/inet.h> 43#if __FreeBSD_version < 500000 44#include <sys/time.h> 45#endif 46#include <stdlib.h> 47#include <stdio.h> 48#include <string.h> 49 | 34 35#include <sys/param.h> 36#include <sys/types.h> 37#include <sys/socket.h> 38#include <sys/sysctl.h> 39 40#include <netinet/in.h> 41#include <netinet/tcp.h> 42#include <arpa/inet.h> 43#if __FreeBSD_version < 500000 44#include <sys/time.h> 45#endif 46#include <stdlib.h> 47#include <stdio.h> 48#include <string.h> 49 |
50#include <dev/iscsi/initiator/iscsi.h> 51#include "iscontrol.h" 52 |
|
50static inline char 51c2b(unsigned char c) 52{ 53 switch(c) { 54 case '0' ... '9': 55 return c - '0'; 56 case 'a' ... 'f': 57 return c - 'a' + 10; --- 169 unchanged lines hidden --- | 53static inline char 54c2b(unsigned char c) 55{ 56 switch(c) { 57 case '0' ... '9': 58 return c - '0'; 59 case 'a' ... 'f': 60 return c - 'a' + 10; --- 169 unchanged lines hidden --- |