Questions tagged [ipv4]

IPv4 is the "old style" IP protocol currently used in most circumstances.

IPv4 is the protocol which has been in use since the early 1980s, described in IETF publication RFC791. It gets gradually replaced with nowadays as the IPv4 addresses become exhausted.

More information at http://en.wikipedia.org/wiki/Ipv4

1045 questions
0
votes
1 answer

Discovering and RECONFIGURING devices on an IPv4 network

[Warning: network programming newbie here] We manufacture embedded devices that get connected to customers networks we know nothing about. They might or might not have DHCP enabled (but usually, they haven't). What would be the easiest way…
David Brabant
  • 41,623
  • 16
  • 83
  • 111
0
votes
1 answer

Limitation of IP_ADD_SOURCE_MEMBERSHIP on a Windows 2008 Server

I want to build an application which wants to recive data from several multicast groups (up to 1.000!) Is this possible with the setsockopt function (IP_ADD_SOURCE_MEMBERSHIP)? Or is there a system limit? Is there another way to do it? Or do I have…
0
votes
0 answers

htaccess global ip address, ipv4, default gateway confusion

forgive the trivial question but I don't understand how to use ip addresses properly to deny access to my site. Let's say i have got the web site www.mywebsite.com. Suppose I have the following 3 ip addresses from my office machine: ipv4:…
user1536396
  • 489
  • 2
  • 7
  • 22
0
votes
1 answer

AAAA DNS query on ipv4 interface

We use RH5.8 with ipv6 disabled. named(bind) service is in forward mode (cache enabled) options { directory "/var/named"; listen-on { 127.0.0.1; }; forwarders {10.10.12.1;}; forward only; }; It appears that some commands (like telnet)…
Gregory Danenberg
  • 519
  • 2
  • 9
  • 15
0
votes
1 answer

How to directly deliver packets to the L4 layer in the NF_IP_PRE_ROUTING hook

I want to directly deliver some packets to the L4 layer when the packets get to the hook of NF_IP_PRE_ROUTING. I use the use ip_local_deliver() function. However, it does not work. May I know how I can make it work. Thank you! Best…
user2232764
  • 1
  • 1
  • 4
0
votes
1 answer

Get exact size of IPv6 header including the extenstion headers

If IPv4 is in question and I want to extract IP and ICMP header out of std::istream, first I get the initial 20 bytes, then check if the header lenght provided in the IPv4 header is larger than 20 bytes in order to extract any options. The next…
Marcus Frenkel
  • 691
  • 10
  • 19
0
votes
1 answer

How to get the IPv6 addreess according to the netmask prefix?

My IPv6 knowledge is very limited, could help me solve this question? As known, for IPv4, if the netmask is 25, the mapping address should be 255.255.255.128. Codes of arithmetic is like: public static String getNetmaskFromBits( int bits ) { …
etianQQ
  • 167
  • 2
  • 9
0
votes
2 answers

Is it possible to set getaddrinfo() to only retrieve IPV4 addresses by default?

Php curl uses getaddrinfo() to resolve hostnames to IP addresses. By setting an option it is easy to make it lookup IPV4 addresses but that will take quite some doing and will be quite difficult to undo when we get IPv6 up and running properly on…
Wayne
  • 149
  • 3
  • 14
0
votes
1 answer

Total length in IPv4 header

I am trying to learn about IPV4 headers and used Wireshark to take a look at some packets. The total length (header length + data length) is 76 bytes. The header length is 20 bytes and the data length is 24 bytes. Were is the other 32 bytes in the…
Carlj901
  • 1,329
  • 4
  • 24
  • 39
0
votes
1 answer

Netlink error while using IP queue

I seem to have an issue with IP queue. I have a linux machine that I am using to run some experiments. The linux machine is configured to be a router, having two NICs, connecting two other computers, and managing their network traffic. All incoming…
summerbulb
  • 5,709
  • 8
  • 37
  • 83
0
votes
1 answer

Regular Expression - Valid IPv4 excluding multicast addresses and broadcast addresses

Im trying to create a regular expression that will check if an IP is valid & usable. We want to exclude those that match multicast address e.g 224.0.0.2 and address such as 0.0.0.0. The code at present checks anything between a range 0-255 but I…
Oli
  • 999
  • 2
  • 9
  • 16
0
votes
3 answers

Number of hosts in a subnet

Does anyone know how many host bits are needed to guarantee that a subnet could have 9 usable hosts? I was thinking about around 4, but I'm not sure. Can some shed some light on this?
dave s
0
votes
0 answers

Format ip address range

I did not know how to start on this, so i would appreciate a point in the right direction. say i have a an iprange in ipv4 or ipv6. 1.0.32.0 - 1.0.63.255 2620:0:860:: - 2620:0:860:ffff:ffff:ffff:ffff:ffff I want to format that to …
user1584241
  • 25
  • 2
  • 7
0
votes
0 answers

get jsvc to listen to ipv4

I am setting up email archiving and it requires jsvc. I have set this up but running the following command shows it is not listening to ipv4. How can i change this? netstat -pan --tcp | grep jsvc tcp 0 0 :::8888 :::* …
shorif2000
  • 2,582
  • 12
  • 65
  • 137
0
votes
1 answer

IP Changing Program

So, my work has several networks and small business locations all with an internet blocking server. The managers all rotate and want freedom from the server, AKA static IP addresses outside the range of DHCP. my problem is that they all need access…
ChrisW
  • 15
  • 6