HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- streams example driver needs double ifconfig reque...
Operating System - HP-UX
1826402
Members
4082
Online
109692
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2002 08:19 AM
12-04-2002 08:19 AM
streams example driver needs double ifconfig request
I've integrated the UX 11.0 example enet network device driver into my B180 and replaced the backend lower driver with another packet source.
My rather stange problem is that after running ifconfig for the first time after a reboot (or doing it via netconf) to enable the interface, when messages are passed upstream via streams_put(), the messages are seen in the driver and STREAMS nettl trace but never get any further into the network stack. Pings etc seem to be passed into the driver fine.
However, when ifconfig is run a second time (with just the IP address) everything works fine with 2-way traffic.
I've tried ifconfig plumb and then ifconfig IP but it seems to need the second ifconfig IP for the streams plumbing to be fully enabled.
The only error I can detect is when ifconfig plumb is run, the example DLPI IOCTL function gets a command of 0x20006b33 which it rejects as the stream is not attached (bound) at the time it is issued.
Any ideas or should I just run ifconfig twice!?
My rather stange problem is that after running ifconfig for the first time after a reboot (or doing it via netconf) to enable the interface, when messages are passed upstream via streams_put(), the messages are seen in the driver and STREAMS nettl trace but never get any further into the network stack. Pings etc seem to be passed into the driver fine.
However, when ifconfig is run a second time (with just the IP address) everything works fine with 2-way traffic.
I've tried ifconfig plumb and then ifconfig IP but it seems to need the second ifconfig IP for the streams plumbing to be fully enabled.
The only error I can detect is when ifconfig plumb is run, the example DLPI IOCTL function gets a command of 0x20006b33 which it rejects as the stream is not attached (bound) at the time it is issued.
Any ideas or should I just run ifconfig twice!?
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2002 11:13 AM
12-05-2002 11:13 AM
Re: streams example driver needs double ifconfig request
A double ifconfig should not be required.
A couple things to do:
1) try the example driver with no changes and see if it requires a double ifconfig.
if not, then take a tusc trace of an ifconfig against a driver that does not require double ifconfig and compare that with the tusc trace of the ifconfig of your driver.
i do not think there should be any errors in the DLPI IOCTLs
A couple things to do:
1) try the example driver with no changes and see if it requires a double ifconfig.
if not, then take a tusc trace of an ifconfig against a driver that does not require double ifconfig and compare that with the tusc trace of the ifconfig of your driver.
i do not think there should be any errors in the DLPI IOCTLs
there is no rest for the wicked yet the virtuous have no pillows
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2002 07:12 AM
12-06-2002 07:12 AM
Re: streams example driver needs double ifconfig request
Thanks Rick,
I've tried tusc on both ifconfig calls (in attachment if interested), but the only things I can see strange is that the first one does ioctls on /dev/dlpi rather than my dlpi driver and that I_PLINKs on /dev/ip appear to fail (if I'm reading it right).
The second ifconfig is similar but without the streams plumbing, however incoming traffic flows straight after using it (its a lot of bootp requests which can be seen in the STREAMS nettl trace but then seem to get lost until the second ifconfig).
I've tried tusc on both ifconfig calls (in attachment if interested), but the only things I can see strange is that the first one does ioctls on /dev/dlpi rather than my dlpi driver and that I_PLINKs on /dev/ip appear to fail (if I'm reading it right).
The second ifconfig is similar but without the streams plumbing, however incoming traffic flows straight after using it (its a lot of bootp requests which can be seen in the STREAMS nettl trace but then seem to get lost until the second ifconfig).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-09-2002 02:01 AM
12-09-2002 02:01 AM
Re: streams example driver needs double ifconfig request
Hi,
I've tracked the problem down to the SET_NOLOOPBACK IOCTL in the driver.
When ifconfig is first run it sends a SET_NOLOOPBACK IOCTL to the driver to disable the looping back of outgoing broadcast messages.
However, the messages I am trying to pass through the driver are all bootp requests from another device which are sent to the broadcast address. Therefore the driver eats all these messages due to the loopback flag being set.
When ifconfig is run again, the NOLOOPBACK flag is reset (as part of initialising the internal structures), the IOCTL is not re-sent, so all my traffic starts to work.
I think this explains what is happening. What should be the correct fix, disable the NOLOOPBACK setting operation?
I've tracked the problem down to the SET_NOLOOPBACK IOCTL in the driver.
When ifconfig is first run it sends a SET_NOLOOPBACK IOCTL to the driver to disable the looping back of outgoing broadcast messages.
However, the messages I am trying to pass through the driver are all bootp requests from another device which are sent to the broadcast address. Therefore the driver eats all these messages due to the loopback flag being set.
When ifconfig is run again, the NOLOOPBACK flag is reset (as part of initialising the internal structures), the IOCTL is not re-sent, so all my traffic starts to work.
I think this explains what is happening. What should be the correct fix, disable the NOLOOPBACK setting operation?
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP