How to set network driver promisc in kernel

Hello.
I got a problem. In my project, I need to set network driver promisc so that I can catch all the packets to it. I know how to do it in user application. But I need to do that in kernel space. Do someone know how to do that?
Thanks in advance.
wazy

use DLPI messages,
types
#define DL_PROMISCON_REQ 0x1f /* Turn on promiscuous mode */
#define DL_PROMISCOFF_REQ 0x20 /* Turn off promiscuous mode */
-Ashutosh

Similar Messages

  • How to set network time

    How to set network time

    You can't set it manually, it requires access to the internet server in order to do so. It is currently having trouble connecting; make sure location is set correctly via settings, DNS should be set to automatic (settinga - general - network), ensure port 123 is open on your router. Router needs to be up to date, reboot ATV and router.

  • How to set DB driver's encoding ??

    I'm currently using Access 2000 with tomcat as server. My problem is how to set the database's encoding in java ?? for both read and write ?? I'm trying to storea strings from the JSP in UTF-8 format in to access but as I retrieve it from database it has a lot of "???" I have the unicode support turned on but still no use, can anyone please help ~ thank you

    Hi.
    Read documentation on JDBC driver that you use to connect to MS Access database.
    Victor Letunovsky

  • How to set hard drive

    how do I set up a hard drive to my Macbook?

    not sure what you mean by how to set up a hard drive?
    installing a new hard drive?
    if you're planning on installing a new drive in your macbook - click HERE for the instructions.
    good luck

  • How to backup network drives ?

    hello. i have a storage connected to my network. when i configure the backup location i cant see the network drives that are connected  to the server that the agent is installed on.  i only see the local drives. how can i backup a directory that
    is located on the network drive ?
    adrian

    Hi,
    Only direct attached block level disks can be backed up.  If the network storage supports iscsi, you can attach it to the Windows server and then you can back it up. 
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Regards, Mike J. [MSFT]
    This posting is provided "AS IS" with no warranties, and confers no rights.

  • How to backup network drive

    Hi, I've got a time capsule on my network, and a network drive on the same network. How can I back up the network drive with time machine? Can that not be done?

    Any one know of any software that allows me to backup my network external to another network external?
    I am running an airport extreme with a usb hub. The printer and two external drives are hooked up to the hub. My 1TB drive is used as the TM or TC drive. I would like TC to back up the Maxtor as well but it doesn't show up on the list of drives to backup. So I am looking for a piece of software or even an automator that backs up my Maxtor (networked) to my 1TB TM drive (networked). I have started to play with CCC but I'm not having much luck.
    Any help would be greatly appreciated.
    Ben

  • How to mount Network drives on log-on

    Hi
    I'm trying to implement some Macs in a large network.
    We work against file servers, storing all the files we use on the servers.
    There are multiple servers with multiple shared folders in each.
    On the windows work stations, we click "Map network drive", Choose the server and folder and check "Re-connect on startup".
    How can I do this in OSX.
    Here is what I need:
    *On log on the mac should mount each network share, so that it is accessible in finder like any other drive.
    *It needs to have the same drive-letter each time, as applications may need to reference the files.
    *It needs to log on using the current user's username and password (the passwords may change, so no putting them in scripts)
    *Should not pop up one finder window pr. drive when you log on (some "solutions" do this)
    Our servers can act as both smb and windows server.
    I'm sure apple has a great solution for this, and it is probably easy, it's just me comming from windows and could not find it.
    Hope my question was clear and that somebody can help.

    That should work. You could try deleting the passwords in Keychain associated with it and try it again.
    Another route: Create Applescript:
    Select the network drive and get info on it. Copy the server address. Open up Applescript Editor in the Utilities folder and create a new script. Type in mount volume, add space, "paste server address within quotations", and save as application to your documents. Run it from within applescript editor to verify it works. When it asks for a passwork, save it in Keychain.
    Under system preferences/accounts/login items, click the + sign to add and select the saved application.

  • How to mount network drive on boot up

    I'd like to mount a network drive on my OS X v10.6 system during the *boot sequence* so that the drive is available to Time Machine to write its backups there. I can mount the drive manually and know how to add it to an user account's loginn items so that it gets mounted when that user logs in. But I want it always mounted regardless of which user is logged in or even if no user is logged in. That way TM can run whenever it needs to.
    So how can I mount the network drive during boot up?
    The network drive is on a machine running OS X v10.5.
    This related thread was my original question in the Time Machine forum: http://discussions.apple.com/thread.jspa?threadID=2807393&tstart=0
    Message was edited by: NikD

    not sure it will work for you but you could try this:
    if you are comfortable with AppleScript, you could edit this script to suit your situation:
    try
    mount volume "afp://<devicename>.local/<volumename>" as user name "<accountname>" with password "<accountpassword>"
    end try
    this script just places the drive's icon on the desktop.
    save it as an application and add that to the account's login items.
    credit for the script goes to Tesserax.

  • How do set network date

    I can not set network date, any clue?

    Welcome to the Apple Community.
    Assuming this is not the first time you have used your Apple TV
        1.    You might try restarting the Apple TV by removing ALL the cables for 30 seconds.
        2.    Also try restarting the router. (Also try removing it’s power cord for at least 30 seconds)
        3.    If the problem persists, try a restore, you may want to try the previous procedures several times before doing this.
        4.    If restoring from the Apple TV doesn't help, try restoring from iTunes using a USB cable.
    If this is a new Apple TV, in addition to trying the above, it may also be that your network router is not allowing access to the timeserver, check that your router allows access over port 123.

  • How to: automount network drive at start up?

    so i put my netwrok drive to login item under user account control and it automaticelly mount the drive on boot up but it really annoy me when the finder window popping up and showing the drive is mounted everytime it statrt up eventhough I tried selecting the checkbox to "hide".
    OS X 10.8.3
    is there a way to automount a network drive without popping up in the finder at start up?

    Unless the mount is needed before a user logs in, it may mount on demand, depending on what process demands it first. If that doesn't work for you, see below.
    Autofs: Automatically Mounting Network File Shares in Mac OS X

  • No sound on HP all in one ms226d how to set up driver ?

    I just bought new pc model ms 226d which come with window7 32 bit version
    but no sound out.  I tried to install driver from realtek and HP support website.
    After finished installation there are no sound out. How can I set up and adjust my PC?

    To be honest I didnt understand what happened exactly. Is headphones jack still in the port and you cannot remove it or what?
    Check please this similar thread.
    I cannot say if the repair would be expensive. If the headphones jack is defective now it must be replaced.
    I recommend you to contact nearest Toshiba service provider, explain the situation and ask for help.

  • How to set network date/time?

    Apple TV wont let me continue setup until network date/time is set.  Runs in endless circles trying to set but never does.  WIFI is good with strong signal and everything has been reset.

    Welcome to the Apple Community.
    Assuming this is not the first time you have used your Apple TV
        1.    You might try restarting the Apple TV by removing ALL the cables for 30 seconds.
        2.    Also try restarting the router. (Also try removing it’s power cord for at least 30 seconds)
        3.    If the problem persists, try a restore, you may want to try the previous procedures several times before doing this.
        4.    If restoring from the Apple TV doesn't help, try restoring from iTunes using a USB cable.
    If this is a new Apple TV, in addition to trying the above, it may also be that your network router is not allowing access to the timeserver, check that your router allows access over port 123.

  • How to access network drive in mac app ?

    Hi All,
    How to get the access to the file system of a networkdrive in mac app ? Let the shared path is
    \\192.168.2.57\JPEG .
    What are the apis use to connect to a networkdrive ?
    I am using Lion OS and the server is a Windows Server running with smb services.
    Please guide me.
    <Email Edited by Host>

    Thanks for your quick response.
    I am using NSTask to execute the script
    _localMountPath = @"/Users/pacs/Documents/Temp";
       NSTask* task = [NSTask new];
        [task setLaunchPath:@"/sbin/mount_smbfs"];
    str = [NSString stringWithFormat:@"//Demo;Administrator:Password@[email protected]/0BF045A8"];
    [task setArguments:[NSArray arrayWithObjects:str,_localMountPath, nil]];
        NSPipe *outputPipe = [NSPipe pipe];
        [task setStandardError:outputPipe];
        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(mountCompleted:) name:NSFileHandleReadToEndOfFileCompletionNotification object:[outputPipe fileHandleForReading]];
        [[outputPipe fileHandleForReading] readToEndOfFileInBackgroundAndNotify];
    [task launch];
    The problem here is password is having @ symbol inbetween .
    The format is @"//Domain;User:Password@servershaedpath"
    So the compiler is taking the path as "@[email protected]/0BF045A8" and not able to connect.
    How to solve the problem of Passwordhaving "@" symbol inbetween.
    Thanks

  • How do set network date & time on appletv

    tried unplugging everything 3 times for minutes at a time - using comcast - no change, ideas?

    Welcome to the Apple Community.
    Have you tried restarting the router.

  • How to set up new SSD drives

    I just ordered an SSD drive that looks to be very fast.  It is called Revodrive X2.  I also just got an SSD drive a month ago.  It is a Crucial C300.
    I have read the article on how to set up drives, but my setup is a bit different and I would like to know where to put things based on two of the drives being very fast drives.  I have (or will have shortly) the Revodrive (160GB) as my boot drive.  The C300 (256GB) drive will be for programs and a few frequently used storage-type files.
    I also have 2 WD black 1TB drives.  This gives me a total of 4 drives (2 SSD drives and 2HD's).  What would be the best setup for my drives?
    Asus P6T M/B
    12 GB of memory
    GTX 470
    4 Drives all attached to ICH10 motherboard connections

    JumpCat4 wrote:
    I just ordered an SSD drive that looks to be very fast.  It is called Revodrive X2.
    I also have 2 WD black 1TB drives.  This gives me a total of 4 drives (2 SSD drives and 2HD's).  What would be the best setup for my drives?
    Asus P6T M/B
    12 GB of memory
    GTX 470
    4 Drives all attached to ICH10 motherboard connections
    I guess you do not know that your Revodrive does not connect to a SATA port. It simply plugs into the PCIe bus.  Many times trying to put applications on a different drive than the boot drive can be complicated.

Maybe you are looking for

  • How do I get my Macbook Air to display on TV. I have the Apple TV

    How do I get my Macbook Air to display on TV ( i have Appple TV divice)?

  • Emergency: problem with update statement!

    hello guys, i have a very serious problem with an update statement in pl/sql. i had an application written in sybase, where i had the following update statement: update mis_dik_adeia set trexon_etos_days = days_per_year from mis_dik_adeia, mis_plafon

  • SecurityException while using Signature object in processToolkit

    Hello, I'm stuck on problem when trying to sign some data with RSA algorithm. following code initializes RSA keys and Signature object in class constructor: public class cryptoTest extends javacard.framework.Applet implements ToolkitInterface, Toolki

  • Editing rule in separate panel in CC like in CS5

    In Dreamweaver CS5 when I wanted to edit a style on a style sheet, I would highlight the style in the css panel and there was a little pencil icon which when clicked would open the whole rule in a separate window. This panel listed all the options yo

  • Multiple failure during exporting and recording

    Hello everyone, I'm currently helping a friend to create a slideshow to be used on their wedding banquet that talks about their childhood and love story. It's a combination of photographs, with 1 short video clip. As well as 1 personally remixed soun