Specialized ethernet packet type receipt?

Greetings,
I'm writing a specialized module which requires that I be able to tell the OS, "Give all ethernet packets of type X to me." In linux this is achieved with a little understanding of the sk_buff, packet_type structures and a call to dev_add_pack(struct packet_type *).
Since I can no longer get the Solaris source, can someone please enlighten me as to what I might do to accomplish this?
Cheers,
Sam
[email protected]

Sam,
The Sys V Unix way is to write a protocol handler that's written to talk to a DLPI provider (i.e. the network interface device driver). You specify the Ethernet type by putting it in the dl_sap field of a DL_BIND_REQ mesage.
While OS source can make these things quite a bit easier, DLPI is a published, open specification and has been for nearly two decades.
GCOM has implemented DLPI (and STREAMS) on Linux. You can read about DLPI and STREAMS from a Linux perspective at
http://www.gcom.com/home/linux/streams.html
You'll want to look at their ip_strms module to help you grok DLPI from a protocol handler perspective. You can find the source code at http://www.gcom.com/home/linux/lis/drvrs.html.
Regards,
Richard Masoner
http://www.masoner.net/

Similar Messages

  • Timestampi​ng ethernet packets

    Without going to a 1588 solution, what is the recommended method for timestamping incoming Ethernet packets on a PXIe chassis with labView RT?
    The packets of interest would be arriving at no faster than a few hundred Hz, but I need a timestamp accuracy <500us.  Running a task at 2kHz seems like overkill and something which could negatively impact the other high throughput tasks I have (Video and DAQmx acquisition).
    Thanks!
    XL600

    The sender is not synchronized with my PXI system in any way (And I have no means to change that) so attempting to use sender embedded timestamps isn't an option.  All I really want to do is ensure my internal analog sampling timestamps and the Ethernet packet timestamps are aligned since I am comparing Ethernet data directly with various video, force, and position sensors connected to my PXI chassis.
    The real world time isn't even important as long as timestamps within my PXI chassis are all aligned and <500us of error exists between the receipt of the Ethernet frame and the timestamping of that frame.
    I did experiment with the following:
    Send a UDP packet to the loopback address (And capture a RT High resolution timestamp when send) in one loop
    Receive it in another loop using blocking receives and timestamp that
    I saw a fairly consistent 17us difference between the send and receive timestamps.  Given that loopback is memory to memory, that doesn't surprise me.  The point though is that there doesn't seem to be very much delta between the UDP receive and the ability to capture a timestamp using the high resolution timer.  If that small of a delay exists when I am receiving real ethernet packets, I don't have any problem at all.  My trouble, of course, has been that I have no way to signal my PXI chassis when the packet is actually transmitted from the source to verify if the PXI chassis is able to capture the receive timestamp reliably with that small of a window.

  • How to create a Inbound delivery type for a special  purchase order type

    Hi,
    I try to create a special Inbound delivery type for a special purchase order type (a transfer purchase order).
    In SD module, I can créate a special outbound delivery and precise the sale order type, but I don't manage to do it for a Inbound delivery type.
    Do you know if i can do it without specifiq?
    Regards,
    Roselyne

    Hi Roselyne,
    What you experienced is standard system behavior. Inbound delivery type is uniquely assigned to confirmation control key. You can only specify confirmation control key on item level in PO. The assignment of Delivery type can be seen in the following table:
    T163D
    IBTYP EBTYP LFART  RETDLV
    1        AB                      X
    2        LA        EL           X
    3        GW       EG
    The field T163D-IBTYP is checked in different programms. For example in programm RM06ENAB (TA: ME92F). If you insist to customize the determination of delivery type by PO type, I strongly suggest you discuss with the Application consultants before making the modifications to ensure it won't impact other areas.

  • OBXR- Special GL Transaction Types - Modify Fields

    Hello Gurus. We are on ECC 6.0 with New GL. Is there a way to modify which fields are available for the Special GL Transaction types in OBXR ? For example: In OBXR go to Properties.  We selected Down Payment/Down payment request, later on when we enter a document via FB01 or FB50 or when we post a payment via F-28, and we select Posting Key 09 or 19 and use the Special GL Indicator we are able to display and enter information in BSEG-PRCTR (Profit Center field).
    If on the other hand in OBXR we set up another Special GL Transaction type and we select Others, then  BSEG-PRCTR (profit center field) is not even available, but we are able to enter BSEG-ZFBDT and later on modify this same field (BSEG-ZFBDT) via FB02.
    I would greatly appreciate your guidance in how to modify/include additional fields in these Special GL Transaction types. Thanks!

    Hi Enrique,
    Are you referring to the document screen layout when you enter the document in the special GL transactions?
    This is controlled by the field status of the posting key in question. Using transaction code OB41you can double click on the posting key (say 09) and inside you find something called as maintain field status. Clicking on the same, you will be able to see various groups under which you can make the necessary settings like optional/reqd/suppressed.
    Thanks
    Aravind

  • Trigger special function output type through a custom program

    Hi,
    I have to trigger the special function output type from a custom program.
    This custom program contains a BAPI and the output parameters of this BAPI are required as input to the second BAPI which is contained in the form routine of the special function output type.
    I am not able to understand how to trigger the special function as I dont know how the nast-objky will be updated
    and how the BAPI parameters will be passed.
    Is this has to be done through a Idoc
    Can anyone guide me on how to handle the above functionality.

    Hello,
    I am not able to understand your requirement completely...
    agree with above post....addition-
    1. Transport medium would be '8 - Special Function' where one program would fire and that can be used for further processing.
    2. If condition record are maintained and it is matching with parameters then output type with all transport medium would be called
    Thanks

  • I would like to send contacts via wireless in vcf format in an e-mail. iPhone doesn't even see the attachment. Is there a special file contact type for iphone?

    I would like to send contacts via wireless in vcf format in an e-mail. iPhone doesn't even see the attachment. Is there a special file contact type for iphone?

    I must be more specific:
    I am attempting to send a vcf from a Windows Computer using Outlook to another Email account that syncs with an iPhone. When I read the e-mail on the iPhone, I can't see the vcf file. But I can see the contact on outlook as a VCF.

  • What r the different types special sales document types r there in  sd?

    what r the different types special sales document types r there in  sd? give me some brief notes of each one?

    This link will help you
    http://help.sap.com/saphelp_46c/helpdata/en/70/a7853478616434e10000009b38f83b/frameset.htm
    http://help.sap.com/saphelp_46c/helpdata/en/70/a7853478616434e10000009b38f83b/frameset.htm

  • Bad packet type

    I am running a JAVA applet which connects to Oracle. When I run the applet on my local machine with a local Oracle database everything runs fine. When I change the connect string and move it to the production server and then try to acces it through the browser on my machine I get the error "java.sql.SQLException: Io exception: Bad packet type". Any ideas would be appreciated. Thanks. Glenn...

    Hope you are making sure that the applet and HTML page is being served out from the same machine that has the Oracle Database. You may even run into a security error if one is referenced by IP and one by server name.

  • Special function Output type failing

    Hi,
    I configured a special function output type and set the dispatch time to 4. The output includes a custom program that executes a function module to create reservation. Its created in Form entry. However its failing to output when I save my order. Am I missing something? Can we not use submit programs with special function output types or dispatch time of 4?

    No. the OSS note doesn't help. I think the issue is with using dispatch time 4 instead of 1 for special function or maybe in the program code that I have:
    FORM ENTRY USING RETURN_CODE TYPE I
                     US_SCREEN TYPE C.
      DATA: L_VBELN LIKE VBAK-VBELN,
            L_RSNUM LIKE RESB-RSNUM,
            L_SUBRC LIKE SY-SUBRC.
      CLEAR RETCODE.
      if nast-objky is not initial.
        l_vbeln = nast-objky.
        CALL FUNCTION 'ZSD_RESERVATION_CREATE'
          EXPORTING
            VBELN = L_VBELN
          IMPORTING
            RSNUM = L_RSNUM
            SUBRC = L_SUBRC.
      else.
        retcode = 1.
      endif.
      IF RETCODE NE 0.
        RETURN_CODE = 1.
      ELSE.
        RETURN_CODE = 0.
      ENDIF.
    ENDFORM.

  • How to get ethernet packet directly from adaper in labview6.1

    I want to get the ethernet packet directly from adaper directly. Which control or function should I use?

    If you really need to work with raw ethernet frames, I think you'll want to turn to something outside of built-in LabVIEW functionality.
    One approach would be to purchase or download dedicated packet-capture (aka packet sniffer, network monitor) software that provides a developer API (e.g. a DLL with various packet access/filtering/analysis functions), then access that API from LabVIEW (e.g. by using the Call Library Function Node).
    Here's one such piece of software, called WinPCap:
    http://winpcap.polito.it/
    You didn't give many details about your application.
    So, I'm going to get up on my soapbox for a moment and urge you to reconsider whether you really need to go this low-level. I'd suggest carefully defining your goal and making sure you can't a
    chieve it with higher-level functions like TCP Read and TCP Write in LabVIEW.
    Best Regards,
    John Lum
    National Instruments

  • How do I create, send and receive ethernet packets to UUT

    I need to create and send ethernet packets to control and communicate with an RF board. I would also like to receive ethernet packets back which would be parsed and interpreted.

    There you are!
    I was wondering how this project was going.
    As I said before, we need to know what protocol is being used.
    Let me eaxplain. (Please refer to the diagrams and tutorial on pages 752-755 of 2002 NI catalog.)
    802.3 is the spec for ethernet. It defines how packets will be transmitted on the wire.
    Real Life analogy:
    US Mail service.
    It moves messages from one place to another. It defines that messages should be in an envelope. The Envelope must have a address so they know where it should be delivered to. You should also have a return address (but this is not enforced). Inside the envelope, you can put any kind of message you want as long as the person recieving it knows how to read it. The
    reciever can look at the message and say "oh, this is english, I will read it in english".
    Ethernet is similar. Ethernet (ignoring the electrical specs) defines a packet as consisting of
    Source address (return address in US mail)
    Destination address (delivery address)
    Protocol (pretend there was a mark on the envelope that said this letter is in French).
    Data (the letter itself)
    Checksum (letter pages number as 1 of 4, 2 of 4, etc).
    So what you have told me so far is that you want to send a letter!
    You have been asking me how to comunicate with the other person but you have not told me what language they speak!
    There are many different languages (i.e. protocol's) possible with 802.3.
    Examples are
    TCP/IP ( say this is English)
    UDP (French)
    etc....
    LV has built in VI's to take a message and convert it to the protocol (lanuage) you want and send it on it's way.
    So my question to you once more is;
    What protocol are you using?
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Please provide some information on how ER special payroll tax type 09

    Hi All,
    Can you please explain on how ER special payroll tax type 09 is calculated for Oregon state in SAP?
    This calculation will be shown in RT separately under technical wage type or included as part of the Unemployment tax rate?
    Thanks,
    Sreenivas

    Flash does not exist for iPad. Apples decision. any games or whatever must be downloaded as apps, which of course can be based on Adobe AIR/ Flash packager, but they must be self-contained apps, regardless.
    Mylenium

  • What are the Special Sales document types ?

    Dear SAP Gurus
    What are the Special Sales document types ?
    Regards
    ND

    ND
    Special Sales document types are :-
    1.SO-Rush Order.
    2.G2-Credit
    3.RE-Return order
    4.KN
    5.RK-Invoice Correction request
    Regards
    Vivek

  • How to specify which Ethernet port on a Mac Pro to send an Ethernet packet

    Hi,
    I am doing some development on a Mac Pro. The Mac Pro has two Ethernet ports on the rear: Ethernet 1 and Ethernet 2.
    I want to specify which of these ports I send a UDP Ethernet packet from.
    In my code I currently create a socket and send data through this. This works fine, but the data (packet) always seems to come out of Ethernet port 1 on the rear of the Mac Pro.
    So, how / where do I set in my code which port (Ethernet 1 or Ethernet 2) on the back of the Mac Pro to send my packet out of?
    Cheers!
    SkinnyC

    It's ok, found this
    http://lists.apple.com/archives/macnetworkprog/2008/Feb/msg00070.html

  • Raw Ethernet Packet

    Dear sir,
    We are trying to establish communication between FPGA board and PC. Here FPGA transmits the data which is in raw Ethernet frame format. Now PC should receive the same data without filtering like
    DD DD DD DD SS SS SS SS TP <data> where “DD” is the Destination Address, ”SS” is the Source Address and “TP” is the type of Protocol.
    Kindly let me know the implementation procedure for the above mentioned issue in LabVIEW.
    Thanks & Regards,
    S Nagaraju

    Use a FIFO to transmit the bytes of data of the packet to the PC and then decode them. For efficiency I think you can combine the bytes into U32s and unpack them on the PC side (I think FIFOs transmit 32-bytes of data even if you select a smaller data type). You may want to add some sort of header to the message so you can find the start/end of each received packet on the PC side.

Maybe you are looking for