Bug 2406 - Option TCP_NODELAY not working on HPUX 11
Option TCP_NODELAY not working on HPUX 11
Status: NEW
Product: Samba 3.0
Classification: Unclassified
Component: Config Files
Other HP-UX
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2005-03-02 02:16 UTC by Torsten Werner
Modified: 2005-03-02 02:33 UTC (History)
0 users

See Also:

Fix for TCP_NODELAY at HPUX 11i (1.32 KB, patch)
2005-03-02 02:20 UTC, Torsten Werner
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Torsten Werner 2005-03-02 02:16:04 UTC
Symptom: A error message appears, that the option TCP_NODELAY is unknown

Problem: in include.h is a special handling for HP-UX 11 defined. TCP_NODELAY
and TCP_MAXSEG will be undefined before shadow.h, rpc/rpc.h and rpcsvc/yp_prot.h
will be included. This is done to suppress compiler warnings about redefined

But shadow.h is the only one file which redefines TCP_MAXSEG and TCP_NODELAY.

The other undef statements are "finally" samba is compiled without this socket

A patch is attached. But unfortunately I can test it at HPUX 11i only. In any
case it would be better to have a compiler warning then to undef the option.
Comment 1 Torsten Werner 2005-03-02 02:20:22 UTC
Created attachment 1002 [details]
Fix for TCP_NODELAY at HPUX 11i

Apply the patch to include/includes.h
It will do the following:
- remove the undef statements for HPUX at wrong places
- create a compiler warning if TCP_NODELAY and TCP_MAXSEG is not redefined by

It is tested at HP-UX 11i with gcc 3.3.1