2008年10月30日 星期四

tethereal

ex:

tethereal -i eth7 host 192.168.5.41 -V > out

2008年10月21日 星期二

AF_UNSPEC

ai_family = AF_UNSPEC;
AF_UNSPEC: for IPv4 & IPv6

2008年10月17日 星期五

accept

#include
#include
int accept(int s, struct sockaddr *addr, socklen_t *addrlen);


return:
If successful, accept() returns a non-negative integer, which is a descriptor of the accepted socket.

2008年10月16日 星期四

2008年9月11日 星期四

scsi_execute_req

int scsi_execute_req(struct scsi_device *sdev, const unsigned char *cmd,
                     int data_direction, void *buffer, unsigned bufflen,
                     struct scsi_sense_hdr *sshdr, int timeout, int retries)

scsi command code

include/scsi/scsi.h

READ_6   0x08
WRITE_6  0x0a

READ_10   0x28
WRITE_10  0x2a

READ_16   0x88
WRITE_16   0x8a