Deleted Added
full compact
pdu.c (211095) pdu.c (254657)
1/*-
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

--- 15 unchanged lines hidden (view full) ---

24 * SUCH DAMAGE.
25 *
26 */
27/*
28 | $Id: pdu.c,v 2.2 2006/12/01 09:11:56 danny Exp danny $
29 */
30
31#include <sys/cdefs.h>
1/*-
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

--- 15 unchanged lines hidden (view full) ---

24 * SUCH DAMAGE.
25 *
26 */
27/*
28 | $Id: pdu.c,v 2.2 2006/12/01 09:11:56 danny Exp danny $
29 */
30
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/sbin/iscontrol/pdu.c 211095 2010-08-09 12:36:36Z des $");
32__FBSDID("$FreeBSD: head/sbin/iscontrol/pdu.c 254657 2013-08-22 14:02:34Z trasz $");
33
34#include <sys/types.h>
35#include <sys/time.h>
36#include <sys/uio.h>
37#include <sys/ioctl.h>
38#include <unistd.h>
39#include <stdlib.h>
40#include <string.h>
41#include <errno.h>
42#include <stdio.h>
43#include <stdarg.h>
44#include <camlib.h>
45
33
34#include <sys/types.h>
35#include <sys/time.h>
36#include <sys/uio.h>
37#include <sys/ioctl.h>
38#include <unistd.h>
39#include <stdlib.h>
40#include <string.h>
41#include <errno.h>
42#include <stdio.h>
43#include <stdarg.h>
44#include <camlib.h>
45
46#include <dev/iscsi/initiator/iscsi.h>
46#include <dev/iscsi_initiator/iscsi.h>
47#include "iscontrol.h"
48
49static void pukeText(char *it, pdu_t *pp);
50
51int
52xmitpdu(isess_t *sess, pdu_t *pp)
53{
54 if(ioctl(sess->fd, ISCSISEND, pp)) {

--- 122 unchanged lines hidden ---
47#include "iscontrol.h"
48
49static void pukeText(char *it, pdu_t *pp);
50
51int
52xmitpdu(isess_t *sess, pdu_t *pp)
53{
54 if(ioctl(sess->fd, ISCSISEND, pp)) {

--- 122 unchanged lines hidden ---