Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Changing IP Address in Kernel after changing in application
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  5 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
kracks  
View profile  
 More options Oct 29, 12:13 pm
Newsgroups: comp.os.linux.development.system
From: kracks <kirthikai...@gmail.com>
Date: Wed, 28 Oct 2009 18:13:28 -0700 (PDT)
Local: Thurs, Oct 29 2009 12:13 pm
Subject: Changing IP Address in Kernel after changing in application
Hi,
 I have a web application for camera for which i change the IP address
of camera in web application.
When i change the IP address and when i re run the application i want
Kernel IP to be same as configured in application level.
 Is it possible.

What are the ways i can do?

Regards
Kirthika


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Schwartz  
View profile  
 More options Oct 29, 3:23 pm
Newsgroups: comp.os.linux.development.system
From: David Schwartz <dav...@webmaster.com>
Date: Wed, 28 Oct 2009 21:23:45 -0700 (PDT)
Local: Thurs, Oct 29 2009 3:23 pm
Subject: Re: Changing IP Address in Kernel after changing in application
On Oct 28, 6:13 pm, kracks <kirthikai...@gmail.com> wrote:

> Hi,
>  I have a web application for camera for which i change the IP address
> of camera in web application.

What does "IP address of camera" mean? Is the camera a network-
connected device with its own IP address or not?

> When i change the IP address and when i re run the application i want
> Kernel IP to be same as configured in application level.

What do you mean by "kernel IP"? It's not clear what you're asking at
all.

>  Is it possible.

> What are the ways i can do?

You haven't explained things clearly. By "camera", do you mean the
computer? Or a separate camera with its own IP address? If you are
changing the IP address of some other device, why do you need to
change anything in the kernel?

Is your question just a convoluted version of "how can I change my
computer's IP address from my program"? If so, the depends on whether
you mean to change it just for now or to change it forever on. If you
just want to change it for now, just call 'ipconfig', 'route', and/or
'ip' with the appropriate parameters or look at the source code to
these programs and replicate their functionality.

If you want to change the system's configured IP address, the process
is platform-specific. Under Fedora, for example, you can change the
configuration in /etc/sysconfig/network-scripts and then 'ifdown' and
then 'ifup' to make the configuration change or use restart the
network (either the 'NetworkManager' or the 'network' service,
depending).

If this is for something appliance-like, you can make your own
configuration that holds the IP address, gateway, netmask, DNS
servers, and so on. Then just change the configuration files your own
network startup logic uses. Then either restart your network logic or
reboot your appliance.

We need a lot more details to help you.

DS


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Rainer Weikusat  
View profile  
 More options Oct 29, 11:16 pm
Newsgroups: comp.os.linux.development.system
From: Rainer Weikusat <rweiku...@mssgmbh.com>
Date: Thu, 29 Oct 2009 13:16:11 +0100
Local: Thurs, Oct 29 2009 11:16 pm
Subject: Re: Changing IP Address in Kernel after changing in application

David Schwartz <dav...@webmaster.com> writes:
> On Oct 28, 6:13 pm, kracks <kirthikai...@gmail.com> wrote:

[...]

>> When i change the IP address and when i re run the application i want
>> Kernel IP to be same as configured in application level.

[...]

> Is your question just a convoluted version of "how can I change my
> computer's IP address from my program"? If so, the depends on whether
> you mean to change it just for now or to change it forever on. If you
> just want to change it for now, just call 'ipconfig', 'route', and/or
> 'ip' with the appropriate parameters or look at the source code to
> these programs and replicate their functionality.

The short answer is 'use the SIOCSIFADDR-ioctl on a suitable socket,
passing a struct ifreq * as argument whose ifr_addr member contains
the binary representation of a the socket address you want to
configure' (interface selected by name, same struct).

    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
kracks  
View profile  
 More options Oct 29, 11:20 pm
Newsgroups: comp.os.linux.development.system
From: kracks <kirthikai...@gmail.com>
Date: Thu, 29 Oct 2009 05:20:47 -0700 (PDT)
Local: Thurs, Oct 29 2009 11:20 pm
Subject: Re: Changing IP Address in Kernel after changing in application
On Oct 29, 1:23 pm, David Schwartz <dav...@webmaster.com> wrote:

Sorry.I understand that i didnt post properly.

We are developing our own network camera(IP).

I have a separate web application only for network(IP) camera
configuration.
I can change the configuration like IP address,Subnetmask,gateway etc
of network camera from web application.

Whenever camera user change the network setting in webpage i am saving
the change in configuration in a file.

(1)in the bootcode of IP camera i set one IP address.First time IP
Camera boots with that IP address

(ii)When the user changes the IP address of camera in webapplication i
have to update the same IP address to the camera system having
Embedded Linux OS.
(iii)So when the IP camera boots for the next time it has to boot with
the recent IP address set by the user.
(iv)How can i make the network module to pick the updated IP Address.

 ifup and ifdown are all in the application framework.

Suggest me the way


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
David Schwartz  
View profile  
 More options Oct 30, 9:03 am
Newsgroups: comp.os.linux.development.system
From: David Schwartz <dav...@webmaster.com>
Date: Thu, 29 Oct 2009 15:03:08 -0700 (PDT)
Local: Fri, Oct 30 2009 9:03 am
Subject: Re: Changing IP Address in Kernel after changing in application
On Oct 29, 5:20 am, kracks <kirthikai...@gmail.com> wrote:

> (ii)When the user changes the IP address of camera in webapplication i
> have to update the same IP address to the camera system having
> Embedded Linux OS.
> (iii)So when the IP camera boots for the next time it has to boot with
> the recent IP address set by the user.
> (iv)How can i make the network module to pick the updated IP Address.

>  ifup and ifdown are all in the application framework.

> Suggest me the way

Are you designing the camera or working with an existing camera? If
you're working with an existing camera, you have to do it however the
manufacturer says to do it. If you're designing a new camera, I would
just have a command that changes the saved IP address and send that
command.

When you say "the network module", do you mean in the camera or in the
server?

DS


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google