10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
hello Forum members,
what is internal mechanism of DLL's in Unix kernal.what is the major advantage over static libraries.
Thanks & Regards
Siva Ranganath (2 Replies)
Discussion started by: workforsiva
2 Replies
2. Shell Programming and Scripting
Hi,
I want to create an image dynamically.
I used this function.
$img_handle = ImageCreate ($length, 10) or die ("Cannot Create image");
It was not creating the image. When i checked in error_log file the error was:
PHP Fatal error: Call to undefined function ImageCreate().
... (0 Replies)
Discussion started by: vanitham
0 Replies
3. Programming
Hi all,
I had trouble compiling my application with a custom dll, the error appear to be some undefined reference to the functions i had created in my dll. Is there a need to update any environmental variable such as LD_LIBRARY_PATH as in linux system. Please advise.
One more thing is do... (2 Replies)
Discussion started by: dwgi32
2 Replies
4. UNIX for Advanced & Expert Users
Hi ,
I am trying to identify an application proxy in Linux equivalent to MS ISA proxy. Proxy should mediate communication b/w various protocols based on port and ip adress, viz. SMTP, MSSQL , LDAP, HTTP etc.
Have googled and found DeleGate, Zorp and Squid etc. Application layer, transparent... (2 Replies)
Discussion started by: Crazy_murli
2 Replies
5. Programming
Hello,
I am sorry to bother you all but I am thinking about switching to UNIX and I am a complete novice there.
The problem is that I need to call a C++ dll on UNIX platform which was compiled on Windows. I don't have the source code of the dll as well. I just need to call this dll in my C++... (2 Replies)
Discussion started by: clickoo
2 Replies
6. What is on Your Mind?
I have created DLLs in c++. Is it possible to run these DLLs in unix so that I can save time converting function/scripts in unix? In this way I can reuse these DLL in Unix. Thanks. (2 Replies)
Discussion started by: alestoquia
2 Replies
7. Programming
HI,
i want to create shared object file (that is .SO file it is similar to DLL in windows)......
Sarwan (3 Replies)
Discussion started by: sarwan
3 Replies
8. Solaris
HI All,
I am trying to use a dll using dlopen but in vain. When I try to ldd that dll it returns no output. Can anybody please tell me how I can load this dll in my process space.
PS: ldd -l returns a lot of unsatisfied dependent symbols.
Thanks a lot in advance
Codeman (0 Replies)
Discussion started by: codeman
0 Replies
9. Programming
Hello all
is there any concept of DLL in UNIX if so mention
the name of the library linking dynamically
Bye
Raj (1 Reply)
Discussion started by: rajashekaran
1 Replies
10. Programming
I have source code of a Windows C DLL. It complies properly and works. Now I need to port it to UNIX environment.
I need to know if I can create a Dynamic Library or only Static Library is possible in UNIX.
In case I can create a Dynamic Library please guide me how to proceed. Or if there... (2 Replies)
Discussion started by: ana_puri
2 Replies
PCAP_INJECT(3PCAP) PCAP_INJECT(3PCAP)
NAME
pcap_inject, pcap_sendpacket - transmit a packet
SYNOPSIS
#include <pcap/pcap.h>
int pcap_inject(pcap_t *p, const void *buf, size_t size);
int pcap_sendpacket(pcap_t *p, const u_char *buf, int size);
DESCRIPTION
pcap_inject() sends a raw packet through the network interface; buf points to the data of the packet, including the link-layer header, and
size is the number of bytes in the packet.
Note that, even if you successfully open the network interface, you might not have permission to send packets on it, or it might not sup-
port sending packets; as pcap_open_live() doesn't have a flag to indicate whether to open for capturing, sending, or capturing and sending,
you cannot request an open that supports sending and be notified at open time whether sending will be possible. Note also that some
devices might not support sending packets.
Note that, on some platforms, the link-layer header of the packet that's sent might not be the same as the link-layer header of the packet
supplied to pcap_inject(), as the source link-layer address, if the header contains such an address, might be changed to be the address
assigned to the interface on which the packet it sent, if the platform doesn't support sending completely raw and unchanged packets. Even
worse, some drivers on some platforms might change the link-layer type field to whatever value libpcap used when attaching to the device,
even on platforms that do nominally support sending completely raw and unchanged packets.
pcap_sendpacket() is like pcap_inject(), but it returns 0 on success, rather than returning the number of bytes written. (pcap_inject()
comes from OpenBSD; pcap_sendpacket() comes from WinPcap. Both are provided for compatibility.)
RETURN VALUE
pcap_inject() returns the number of bytes written on success and -1 on failure.
pcap_sendpacket() returns 0 on success and -1 on failure.
If -1 is returned, pcap_geterr() or pcap_perror() may be called with p as an argument to fetch or display the error text.
SEE ALSO
pcap(3PCAP), pcap_geterr(3PCAP)
5 April 2008 PCAP_INJECT(3PCAP)