Java Library to drop the incoming packet flow

hi there,
i m planning to make application layer filter. i need to drop the flow of incoming packets. So can anyone suggest me any java library which is able do this?
or else if i have to create my own library then how can i proceed in that?

thnx oscar 4 ur reply...
actually i want to drop the incoming packets which r coming from restricted URL. means any how i want to restrict the user to see the particular webpage.
so if cant hav this low level API in java, then can u suggest me how to implement it in other way?..
i hav to make this project in JAVA only.
i have got one API named "libipq" (source: snort.org) which can drop the packet flow. But this API is for linux OS and i want to implement on windows... pls help

Similar Messages

  • Will MX record work for the incoming mail flow and external mail flow.

    Hello All,
        I have created 2 machines with windows 2008 R2 workgroup and  installed Forefront TMG 2010 
        I am using the VIP for the external adapter for the NLB and going to connect it through the MX record will it work for the incoming mail flow to the Exchange 2010 and external mail flow.
        Is that right what i am doing please suggest. Thanks in Advance!
    Sidharth Guntoji,Messaging Consultant, ITBigBang (P) Ltd Www.ITBigBang.Com | Hire Us for Messaging Consulting

    Hi,
    Based on my experience, the MX record contains the fully qualified domain name of the messaging server that’s responsible for accepting messages for the domain.
    Do you want to configure the TMG server as a secure SMTP relay server? Did you mean that the external DNS server point to TMG’s external IP for the MX rcord and the internal Exchange server is using TMG’s internal IP address as the default gateway? Did you
    install any exchange role on the TMG server?
    I am sorry to say that I am not quite sure of your deployment, I would appreciate it if you can share your network topology and configuration.
    Best regards,
    Susie

  • Java socket not handling the data packets properly

    I have created a small webserver application where i am receiving http requests from a siebel client. I am using content-length parameter to read the complete data in a buffer string using the command inputstreamreader.read. It works fine in all the cases, except when its used with a firewall. Some times the firewall splits a message into 2 and my logic fails as it doesn't find as many characters in the first packet as mentioned in the content length.
    My question is , how can i take care of these scenarios where a firewall is splitting the messages into multiple packets. why the java socket class is not handling the merging of these packets?
    any pointers are welcome.
    thanks

    Because that's the way TCP/IP works. read() gives you the data it can, and tells you how much was actually read. It's up to the application to reconstruct the application-level object. You could do something like this:    byte[] content = new byte[contentLen];
        int offset = 0;
        int remaining = contentLen;
        int currBytesRead = 0;
        while (remaining > 0 && currBytesRead != -1) {
          int currBytesRead = mySocketInputStream.read(content, offset, remaining);
          remaining -= currBytesRead;
          offset += currBytesRead;
        } (Warning: that's off the top of my head, uncompiled and untested. Use for demonstration purposes only!)
    Grant

  • How do i print out the java.library.path??

    hi, can anyone show me how to print out java.library.path to the terminal? im having unsatisfiedlinkerror problems
    thanks for help in advance
    vanessa

    System.out.println(System.getProperty("java.library.path"));

  • Can  I  divert incoming  packets to another port?

    Hello ,
    I'm new to this environment of getting info. from forums.
    I'm currently doing a network project in java.I'm forced to solve this problem & clear this doubt:
    Suppose some packets are coming into my system directed onto a particular port,say 345.Now ,instead of these packets going to port 345,I need to first divert the incoming packet to a port I want,say 987,which checks these packets,performs validation & if valid , redirects it to actual port 345-If the packet fails the check,it must be dropped.This is one module in my project.
    I'm doing the project in Java,
    so please help me with the Java code for
    FIRST DIVERTING ANY INCOMING PACKET-DIRECTED TO ANY PORT ONTO A PORT THAT I WANT TO FUNCTION AS A CHECK POINT.
    I'LL BE VERY THANKFUL TO EVERYONE WHO HELPS ME.
    RAVI KISHORE.

    Somehow, I doubt you can do that.
    It's far more likely to either
    1) Have your app listen to a separate port number, then
    filter the packets as required, then forward to your final
    destination port or...
    2) Let your app take over the port in question, and change the original
    port listeners port number to something else.
    By the way, port numbers below 1024 are reserved / "well known ports".
    Choose something above 1024 for your own app.
    regards,
    Owen

  • ERROR on AIX - no library weblogicoci36 (libweblogicoci36.a or .so) in java.library.path

    I have WLS 5.1 SP10 running successfully on all platforms (Solaris,
    HP-UX, NT/2000 and AIX). On AIX, I am unable to communicate with the
    Oracle instance. The error I am receiving is the well-known "no
    library weblogicoci36 (libweblogicoci36.a or .so) in
    java.library.path". The actual command and output are:
    [undertaker]/apps/weblogic2/weblogic/bin/oci816_8$ java utils.dbping
    ORACLE weblogic weblogic
    Error encountered:
    java.sql.SQLException: System.loadLibrary threw
    java.lang.UnsatisfiedLinkError
    with the message 'no library weblogicoci36 (libweblogicoci36.a or
    .so) in java.library.path'.
    at weblogic.jdbcbase.oci.Driver.connect(Driver.java:116)
    at java.sql.DriverManager.getConnection(DriverManager.java:459)
    at java.sql.DriverManager.getConnection(DriverManager.java:108)
    at utils.dbping.main(dbping.java:156)
    I have followed the BEA recommended resolution steps, and the problem
    persists. While I have seen many posts about this problem on Solaris,
    NT and even HP-UX, I have not been seen posts with AIX as the
    platform. Any insight into why the problem is occuring is greatly
    appreciated. Here is the enviroment:
    1. AIX 4.3.3
    2. WLS 510 SP10
    3. Oracle 8.1.6
    ============= Setting Environment ================
    WL_HOME=/apps/weblogic2/weblogic
    JAVA_HOME=/usr/java_dev2
    CLIENT_CLASSES=/apps/weblogic2/weblogic/myserver/clientclasses
    SERVER_CLASSES=/apps/weblogic2/weblogic/myserver/serverclasses
    SERVLET_CLASSES=/apps/weblogic2/weblogic/myserver/servletclasses
    PATH=/usr/java_dev2/jre/sh:/usr/java_dev2/sh:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/usr/local/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/usr/bin/X11:/sbin:/apps/oracle/product/8.1.6/bin:/usr/local/bin:/usr/ucb
    CLASSPATH=/usr/java_dev2/lib/tools.jar:/apps/weblogic2/weblogic/license:/apps/weblogic2/weblogic/lib/weblogic510sp10.jar:/apps/weblogic2/weblogic/classes:/apps/weblogic2/weblogic/lib/weblogicaux.jar:/apps/weblogic2/weblogic/lib/aix/oci816_8:/apps/oracle/product/8.1.6/bin:/apps/oracle/product/8.1.6/lib:/apps/weblogic2/weblogic/bin/oci816_8:/apps/weblogic2/weblogic/myserver/clientclasses:/apps/weblo
    ic2/weblogic/myserver/serverclasses
    LIBPATH=/apps/weblogic2/weblogic/lib/aix:/apps/weblogic2/weblogic/lib/aix/oci816_8:/apps/oracle/product/8.1.6/lib
    Regards,
    Jeffrey Overton

    We have "worked around" this problem. We switched to the Oracle thin
    client driver and resolved the problem. We are still working with BEA
    Technical Support on this issue. I'll post updates as we get more
    information.
    [email protected] (Jeffrey Overton) wrote in message news:<[email protected]>...
    "Tom Gross" <[email protected]> wrote in message news:<[email protected]>...
    I haven't tried 5.1 on AIX, but I know in 6.0 there is an error in startWebLogic.sh
    specific to AIX: it exports "LIB_PATH" when it should say "LIBPATH". I just checked
    in the 5.1 script and it appears to have the same error. You need to change the
    name "LIB_PATH" to "LIBPATH". This error is fixed in 6.1 so we can be sure there
    is at least one other person on the planet who is trying to use Weblogic on AIX.
    :-)Tom,
    Thanks for the help. Unfortunately, I cannot find a reference to
    LIB_PATH in setEnv.sh or startWebLogic.sh. At this point, we are
    pursuing the possibility that the IBM JDK 1.2.2 introduced some
    incompatibilities. From the "IBM AIX Developer Kit, Java TM2
    Technology Edition, Version 1.2.2 README":
    "Because of incompatibility between the IBM AIX Developer Kit, Java
    TM2 Technology Edition, Version 1.2.2"..."JNI executable programs,
    including third-party software packages and those built for previous
    Java software releases on AIX, that were built without this binder
    option are NOT compatible with the JVM in this
    release"..."Compatibility of an executable program can be verified
    using dump -ov The stdout output will show the modtype to be "UR"..."A
    script file (convertJNI) is shipped in the directory
    /usr/java_dev2/sdk/sh. This script will help you to convert the
    modtype to UR in the optional header of your JNI executable programs
    without having to recompile the code."
    Out of the hundreds of potential files, which need to be converted?
    Based on additional information obtained by running in verbose mode,
    we were able to gather the following:
    java.sql.SQLException: System.loadLibrary threw
    java.lang.UnsatisfiedLinkError
    with the message '/apps/weblogic2/weblogic/lib/aix/oci816_8/libweblogicoci36.a:
    0509-130 Symbol resolution failed
    for /apps/oracle/product/8.1.6/lib/libclntsh.a(shr.o) because:
    0509-136 Symbol JNI_CreateJavaVM (number 253) is not
    exported from
    dependent module /usr/java_dev2/jre/bin/libjava.a.
    0509-136 Symbol JNI_GetDefaultJavaVMInitArgs (number 254) is
    not exported from
    dependent module /usr/java_dev2/jre/bin/libjava.a.
    0509-136 Symbol dlsym (number 255) is not exported from
    dependent module /usr/j'.
    at weblogic.jdbcbase.oci.Driver.connect(Driver.java:116)
    at java.sql.DriverManager.getConnection(DriverManager.java:459)
    at java.sql.DriverManager.getConnection(DriverManager.java:108)
    at utils.dbping.main(dbping.java:156)
    We performed the dump -ov on each and each reported a modtype of RE
    instead of UR.
    We backed up libclntsh.a and libweblogicoci36.so, converted one at a
    time, and ran the dbping after each. No such luck. Any ideas on how
    we can find the JNI needle in the haystack?
    Regards,
    Jeffrey Overton

  • No ocijdbc8 in java.library.path (with Netscape under Tomcat)

    Hello,
    my problem is the following: I must use the OCI-Driver of the Oracle-Client 8.1.7 because I use special PL/SQL-functions.
    I get the error message:
    java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
    when I try to start my servlet within netscape. Before this I'm starting the tomcat servlet engine and make the following path known to tomcat:
    java.library.path=/usr/lib:/lib:/share/ams/oracle/ora817-SunOS-5.7/lib:/share/ams/oracle/ora817-SunOS-5.7/jdbc/lib:/share/ams/oracle/ora817-SunOS-5.7/lib64
    In this line are the necessary paths to find the libocijdbc8.so library.
    Why does the servlet still have problems to find the driver? In addition, I set my java.library.path within the servlet itself.
    Do you know where is the crux of the matter?
    Thank you,
    Christian Schmidbauer

    Hello:
    libocijdbc9.so exists in the LD_LIBRARY_PATH. Tried
    linking/copying classes12.zip from $TOMCAT_HOME/common/lib to $TOMCAT_HOME/webapps/APP_NAME/WEB-INF/lib causes the error:
    java.lang.UnsatisfiedLinkError: /usr/apps/oracle/product/9.2.0/lib/libocijdbc9.so: ld.so.1: /usr/j2se/bin/java: fatal: /usr/apps/oracle/product/9.2.0/lib/libocijdbc9.so: wrong ELF class: ELFCLASS64
    when the CATALINA_OPTS has -d32 and
    -Djava.library.path=$ORACLE_HOME/lib(tried giving them as JAVA_OPTS in catalina.sh as well)
    Thanks!

  • No ocijdbc8 in java.library.path (with Servlet under Tomcat)

    Hello,
    my problem is the following: I must use the OCI-Driver of the
    Oracle-Client 8.1.7 because I use special PL/SQL-functions.
    I get the error message:
    java.lang.UnsatisfiedLinkError: no ocijdbc8 in java.library.path
    when I try to start my servlet within netscape. Before this I'm
    starting the tomcat servlet engine and make the following
    path known to tomcat:
    java.library.path=/usr/lib:/lib:/share/ams/oracle/ora817-SunOS-5.7/lib:/share/ams/oracle/ora817-SunOS-5.7/jdbc/lib:/share/ams/oracle/ora817-SunOS-5.7/lib64
    In this line are the necessary paths to find the libocijdbc8.so
    library.
    Why does the servlet still have problems to find the driver?
    In addition, I set my java.library.path within the servlet itself.
    Do you know where is the crux of the matter?
    Thank you,
    Christian Schmidbauer

    I'm not sure if this will help, but check to make sure your LD_LIBRARY_PATH environment variable is set (before starting Tomcat). I think this tells the Oracle classes where to find the .so files.

  • Java Library classes source code

    Hi all,
    Does anyone know where I could find source codes for java library classes. The ones that i am especially interested in finding are the inputStream, inputStreamReader, and BuferedReader classes.
    Thanks and regards,
    Green

    Does anyone know where I could find source codes for
    java library classes. The ones that i am especially
    interested in finding are the inputStream,
    inputStreamReader, and BuferedReader classes.http://java.sun.com/j2se/downloads/index.html

  • HELP Java library for interpolation

    Hi, we need for a text recognition project a java library for improving the pixel resolution. Now we get a low pixel resolution from our device and the results of the text recognition software are not so good. Our idea is to interpolate the recognized pixel. How know a suitable Java library.

    rene1000 wrote:
    Hi, we need for a text recognition project a java library for improving the pixel resolution. Now we get a low pixel resolution from our device and the results of the text recognition software are not so good. This is not possible in any language or any platform anywhere in the universe.
    Our idea is to interpolate the recognized pixel. How know a suitable Java library.I'm confused, now it sounds to me like you just want to scale the image so it's larger?
    Please try to clearly describe what you need to do.

  • Meaning of java.library.path and UnsatisfiedLinkError

    I'm trying to compile and run a simple program that uses a jar extension called "*jnetpcap*". I compile it (with classpath), then run it with:
    java -classpath /usr/share/java/jnetpcap.jar:./ <ClassFileName>
    When I do this I get :
    Exception in thread "main" java.lang.UnsatisfiedLinkError: no jnetpcap in java.library.path
    *...What's that all about ?*

    Some Java libraries are written partly in native code (usually written in C++). The native code is placed in a shared library, which is a .dll on Windows, or a .so on unix. java.library.path is the system property which tells the JVM which directories to search for these shared libraries. I suggest you look for a jnetpcap.so. If you find it try the command line option -Djava.library.path=/netpcap/lib (giving the directory containing the .so file).

  • Need to Understand the Packet Flow

    Dear Friend,
    I need to understand the packet flow of the below diagram.
    I have configured MPLS on R2,R3 and R4. And IBGP is configured on R2 and R4. Now I am able to reach from R1 to R5's Loopback address. I need to understand the packect flow from R1 to R5 like If I ping from R1's Loopback  to R5's Loopback address then Source IP is 1.1.1.1 and destination IP is 5.5.5.5. What will be the packet structure at R2, R3,R4...??????????
    Please explain in details......Me really confused as R4 has not route about 5.5.5.5 also 1.1.1.1...How it forwards the packets??????

    Sanjib
    So R2 and R4 are PE devices and R3 is a P device ? And you are not doing MPLS VPNs, just normal MPLS ?
    If so R4 must have a route to 5.5.5.5. Did you mean R3 does not have a route ?
    With MPLS any P device only knows how to get to other P devices and PE devices. It does not know about any networks outside the MPLS network. The PE devices have routes to any external networks connected to them and know how to get to P and other PE devices.
    Note that in terms of PE/P reachability the routing/LDP information has already been exchanged and an MPLS forwarding table built. So for reachability between PE/P routers (ie. not outside the MPLS network) route lookup do not need to be performed, it is simply a matter of removing and adding labels.
    So assuming you are not using MPLS VPNs and that MPLS labels have been exchanged between all P and PE routers -
    R1 pings 5.5.5.5
    1) R1 does a route lookup for 5.5.5.5 and sends it to R2.
    2) R2 is a PE device. It does a route lookup for 5.5.5.5 and sees R4 as the next hop (this route has been exchanged via MP-BGP).
    3) R2 then need to send the packet to R4. To do this it looks in it's MPLS forwarding table to see how to get to R4. The MPLS forwarding table tells it which label to attach to the packet. It adds this label and sends the packet out of it's interface to R3.
    3) R3 is a P device. It does not need to do a route lookup for 5.5.5.5. It simply looks at the incoming MPLS label and consults it's MPLS forwarding table. It will have an entry in it's table saying that an incoming packet with an MPLS label of x should be sent out with an MPLS label of y. It changes the label and sends it out to R4.
    4) R4 receives the packet, removes the label, does an IP lookup for 5.5.5.5 and sends it to R5.
    Note that actually R3 might not add a label as there is something called Penultimate Hop Popping where if the net hop from the P router is a PE router it sends the packet without a label to save extra processing on the PE router. If you had multiple P routers only the last P router before the PE router would do PHP.
    The key thing to understand is that the P devices don't do route lookups when forwarding data. They simply switch labels. Whereas the PE devices do need to do route lookups for destinations outside the MPLS network. 
    Jon

  • How can i find what the java.library.path is?? urgent

    Hi,
    I have an unsatisfiedlinkerror and the message is no jicmp in java.library.path. can anyone tell me how to do System.out.println and the path???
    This is very urgent so anyhelp would be gratefully recieved
    Thanks
    Vanessa

    I have an unsatisfiedlinkerror and the message is no
    jicmp in java.library.path.
    can anyone tell me how to
    do System.out.println and the path???System.getProperty() will retrieve the Java-defined system properties. You can use the following code to determine the available values:
    public static void main( String [] args ) {
    java.util.Properties p = System.getProperties();
    java.util.Enumeration keys = p.keys();
    while( keys.hasMoreElements() ) {
    System.out.println( keys.nextElement() );
    Refer http://www.javaworld.com/javaworld/javaqa/2001-07/01-qa-0706-env.html
    Jatin

  • How can i sync videos to my iphone 5 using Itunes 11. i also tried to convert the videos to mp4 and drag and drop the file in itunes but still i cant see videos in itunes library.

    how can i sync videos to my iphone 5 using Itunes 11. i also tried to convert the videos to mp4 and drag and drop the file in itunes but still i cant see videos in itunes library.

    Copied from this link.
    http://www.apple.com/iphone/specs.html
    Video formats supported: H.264 video up to 1080p, 30 frames per second, High Profile level 4.1 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; MPEG-4 video up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps per channel, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats; Motion JPEG (M-JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second, audio in ulaw, PCM stereo audio in .avi file format
    There are 3rd party utilities available that "rip" content into a compatible format - most include an iPod and/or iPhone format selection. If a video plays in iTunes, iTunes includes an option to convert a selection for iPod/iPhone.

  • How the java.library.path is set?

    Hi,
    Can anyone please tell me know how System class (or JVM) sets the default value of the property java.library.path?
    I tried searching the answer on net but I was not able to find any thing.
    Regards,
    Kev.

    If you don't set it, I believe the JVM then reverts to using the search strategy of the native system.
    On Windows, that means first looking in load directory, then looking in the Windows directory. (I made this intentionally vague; I believe these actually changed at one point during Windows' history.)
    It is something else on Unices.

Maybe you are looking for

  • Can any phone type be emulated in Device Central?

    I'm just starting out on Mobile App development, and I'm trying to make sense of it all. To test the application process, I created a very simple Flash file, 550x400 pixels.  One button click changes from one frame to another and moves some text on s

  • Screen enhancement in display measuring point (ik07) and ik02

    Hi experts, Can anybody please help in determining userexits for screen enhancement of ik02 transaction. I need to add block to measuring point details. and also i need selection screen input parameters to display at the bottom of ik07 tcode.i had in

  • OPINION WANTED: Why can't Sun make the setBounds more meaningful?

    Hi, I am wondering why Sun doesn't add some brains to the setBounds method. I bring this up because of my current situation. I have two panels, A & B. A is added to B, and A can be dragged around "on top" of B. But I can not allow the user to drag A

  • Oracle DB Configuration Assistant hangs (9i install on Solaris 8)

    Attempting to install 9i database (9.0.1) on Solaris 8 on Sparcstation 20. Goes OK until it gets to the Oracle Configuration Assistant. During the "Creating and Starting Oracle instance" phase, it gets to 50% and just stays there. I left it over the

  • How to add leading spaces to af:table column

    Hi, I'd like to display leading spaces in af:outputText located in table column. Value property is bound to backing bean property, where I add custom leading text. However, if I add , the & nbsp; text "& nbsp;" is displayed, not rendered by the brows